[U-Boot] [PATCH] lib: disable hashtable and display options code in SPL
Anatolij Gustschin
agust at denx.de
Mon Aug 28 15:53:08 UTC 2017
We do not need hashtable code in SPL when building
without environment support. Also display options
code is not used in current SPL configuration and
can be disabled.
Signed-off-by: Anatolij Gustschin <agust at denx.de>
---
lib/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/Makefile b/lib/Makefile
index 2eef1eb..1ffa455 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -43,6 +43,7 @@ obj-$(CONFIG_TPM) += tpm.o
obj-$(CONFIG_RBTREE) += rbtree.o
obj-$(CONFIG_BITREVERSE) += bitrev.o
obj-y += list_sort.o
+obj-y += hashtable.o
endif
obj-$(CONFIG_RSA) += rsa/
@@ -61,10 +62,14 @@ obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o
obj-$(CONFIG_SPL_NET_SUPPORT) += net_utils.o
endif
obj-$(CONFIG_ADDR_MAP) += addr_map.o
-obj-y += hashtable.o
obj-y += errno.o
+ifdef CONFIG_SPL_BUILD
+obj-$(CONFIG_SPL_ENV_SUPPORT) += hashtable.o
+endif
+ifndef CONFIG_SPL_BUILD
obj-y += display_options.o
CFLAGS_display_options.o := $(if $(BUILD_TAG),-DBUILD_TAG='"$(BUILD_TAG)"')
+endif
obj-$(CONFIG_BCH) += bch.o
obj-y += crc32.o
obj-y += ctype.o
--
2.7.4
More information about the U-Boot
mailing list