summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-13 20:29:55 -0700
committerTom Rini <trini@konsulko.com>2021-01-27 17:03:16 -0500
commitec5f101a3794396fed93e480ebcf8d389041b30e (patch)
treec8657afa1e3a718d9e6de91ce80fd547a8e7d9db /lib
parent8a8a8314ce669a5faaad4ddfdbef14551ec452b3 (diff)
downloadu-boot-ec5f101a3794396fed93e480ebcf8d389041b30e.tar.gz
u-boot-ec5f101a3794396fed93e480ebcf8d389041b30e.tar.xz
u-boot-ec5f101a3794396fed93e480ebcf8d389041b30e.zip
crc32: Exclude crc32 from TPL
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 851a80ef3b..edc1c3dd4f 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -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