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: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-09-26 12:13:43 -04:00 committed by Carles Cufí
commit cffe98d9de
26 changed files with 37 additions and 5 deletions

View file

@ -8,6 +8,7 @@ config ZEPHYR_CANOPENNODE_MODULE
config CANOPENNODE
bool "CANopenNode support"
select CRC
depends on CAN && !CAN_FD_MODE
help
This option enables the CANopenNode library.