lib: Makefile: build crc7.c when CONFIG_MMC_SPI
authorPragnesh Patel <pragnesh.patel@sifive.com>
Fri, 29 May 2020 06:03:24 +0000 (11:33 +0530)
committerAndes <uboot@andestech.com>
Thu, 4 Jun 2020 01:44:08 +0000 (09:44 +0800)
commit108604706de4546e782bcdc1dbf8b4bd61c68b6e
tree7953c3c52bc69a669ff69fa0c65b9781741abbdf
parentbbb94af981ad63c0dd9ab86e25c195c3cbc9a0e6
lib: Makefile: build crc7.c when CONFIG_MMC_SPI

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 <pragnesh.patel@sifive.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
lib/Makefile