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

@ -10,5 +10,6 @@
config FCB
bool "Flash Circular Buffer support"
depends on FLASH_MAP
select CRC
help
Enable support of Flash Circular Buffer.