]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lib: add crc16.o if CONFIG_MMC_SPI_CRC_ON for SPL build
authorAndreas Schwab <schwab@suse.de>
Tue, 17 Aug 2021 10:51:34 +0000 (12:51 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 2 Sep 2021 14:17:45 +0000 (10:17 -0400)
CONFIG_MMC_SPI_CRC_ON needs the crc16 functions, but it was not included
in an SPL build.  For non-SPL builds, crc16.o is already added
unconditionally.  This also removes CONFIG_SPL_YMODEM_SUPPORT from the
sifive board configs, which is only relevant for some ARM boards and was
only set for its side effect of adding crc16.o.

configs/sifive_unleashed_defconfig
configs/sifive_unmatched_defconfig
lib/Makefile

index cf501012815f46f132eed7cd92a1eb62e3c1cb6f..be947be9a0af693a570c0520588d73c1bf4dd9eb 100644 (file)
@@ -24,7 +24,6 @@ CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DM_SPI_FLASH=y
 CONFIG_SPL_DM_RESET=y
 CONFIG_SPL_SPI_LOAD=y
-CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_SPL_CLK=y
index 890d3a01b0c6577fff0192f6e0931827c752014e..3d478ad3b93b5acb46edf9ee365de2dd574288a4 100644 (file)
@@ -23,7 +23,6 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_ID_EEPROM=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DM_RESET=y
-CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_CMD_EEPROM=y
 CONFIG_CMD_MEMINFO=y
 CONFIG_CMD_PWM=y
index 8ba745faa084a732959591fbf81d6aae84ca5b48..2d29cdad1ef1346e2ab1ab21b2120c1ed9835062 100644 (file)
@@ -88,6 +88,7 @@ endif
 ifdef CONFIG_SPL_BUILD
 obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
 obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o
+obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16.o
 obj-y += net_utils.o
 endif
 obj-$(CONFIG_ADDR_MAP) += addr_map.o