From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pragnesh Patel Date: Fri, 24 Jan 2020 08:06:23 +0000 Subject: [PATCH v3 03/10] lib: Makefile: build crc7.c when CONFIG_MMC_SPI In-Reply-To: References: <20200124055026.30787-1-pragnesh.patel@sifive.com> <20200124055026.30787-4-pragnesh.patel@sifive.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de >-----Original Message----- >From: Jagan Teki >Sent: 24 January 2020 11:58 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; palmerdabbelt at google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Troy Benjegerdes ( Sifive) >; Anup Patel ; Sagar >Kadam ; Simon Glass ; >AKASHI Takahiro ; Marek Beh=C3=BAn >; Philippe Reynes ; >Alexander Graf ; Peng Fan >Subject: Re: [PATCH v3 03/10] lib: Makefile: build crc7.c when >CONFIG_MMC_SPI > >On Fri, Jan 24, 2020 at 11:21 AM Pragnesh Patel >wrote: >> >> When build U-boot SPL, meet an issue of undefined reference to 'crc7' >> for drivers/mmc/mmc_spi.c, so let's compile crc7.c when CONFIG_MMC_SPI >> selected. >> >> Signed-off-by: Pragnesh Patel >> Reviewed-by: Anup Patel >> --- >> lib/Makefile | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/lib/Makefile b/lib/Makefile index 51eba80b89..d21e0a6b3a >> 100644 >> --- a/lib/Makefile >> +++ b/lib/Makefile >> @@ -78,6 +78,7 @@ endif >> >> ifdef CONFIG_SPL_BUILD >> obj-$(CONFIG_SPL_YMODEM_SUPPORT) +=3D crc16.o >> +obj-$(CONFIG_MMC_SPI) +=3D crc7.o > >It is invalid to mark crc7 to MMC_SPI, try to add Kconfig option for CRC7.= like >this. >https://paste.ubuntu.com/p/kSnkDWpTgS/ Thanks for pointing me. How about if I will add like this: config SPL_CRC7_SUPPORT bool "Support CRC7 hashing drivers" default y if MMC_SPI help Enable CRC7 hashing for drivers which are using in SPL. Any comments?