Commit cffe98d9 authored by Anas Nashif's avatar Anas Nashif Committed by Carles Cufi
Browse files

crc: Make the build of crc function dependent on a Kconfig



Add CONFIG_CRC for building CRC related routines.
CRC routines are now being built for each application, whether used or
not and are add in the build system unconditionally.

Keep CONFIG_CRC enabled by default for now and until all users have
converted to use the new option.

Partial fix for #50654

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent cf91f187
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ config ADC_LMP90XXX
		   DT_HAS_TI_LMP90099_ENABLED || DT_HAS_TI_LMP90100_ENABLED
	select SPI
	select ADC_CONFIGURABLE_INPUTS
	select CRC
	help
	  Enable LMP90xxx ADC driver.

+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@

config GSM_MUX
	bool "GSM 07.10 muxing protocol"
	select CRC
	help
	  Enable GSM 07.10 muxing protocol defined in
	  https://www.etsi.org/deliver/etsi_ts/101300_101399/101369/07.01.00_60/ts_101369v070100p.pdf
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@

menuconfig IEEE802154_CC13XX_CC26XX
	bool "TI CC13xx / CC26xx IEEE 802.15.4 driver support"
	select CRC
	default y
	depends on DT_HAS_TI_CC13XX_CC26XX_IEEE802154_ENABLED

+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ menuconfig NET_PPP
	depends on NET_L2_PPP
	depends on NET_NATIVE
	select RING_BUFFER
	select CRC
	select UART_MUX if GSM_MUX

if NET_PPP
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ config SPI_SDHC
	default y
	depends on DT_HAS_ZEPHYR_SDHC_SPI_SLOT_ENABLED
	select SPI
	select CRC
	select SDHC_SUPPORTS_SPI_MODE
	help
	  Enable the SPI SD host controller driver
Loading