]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
crc32: Exclude crc32 from TPL
authorSimon Glass <sjg@chromium.org>
Thu, 14 Jan 2021 03:29:55 +0000 (20:29 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 27 Jan 2021 22:03:16 +0000 (17:03 -0500)
Unfortunately the toolchain often brings in the crc32 table even if the
function is not actually used. For now, exclude it from the TPL build,
which is very sensitive to size.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/Makefile

index 851a80ef3bf86c000dd7730246ac15343a590313..edc1c3dd4f97e465f1f7770ecf1b4a76c6bd21b7 100644 (file)
@@ -92,7 +92,9 @@ obj-y += display_options.o
 CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
 obj-$(CONFIG_BCH) += bch.o
 obj-$(CONFIG_MMC_SPI) += crc7.o
+#ifndef CONFIG_TPL_BUILD
 obj-y += crc32.o
+#endif
 obj-$(CONFIG_CRC32C) += crc32c.o
 obj-y += ctype.o
 obj-y += div64.o