From: Anatolij Gustschin Date: Mon, 28 Aug 2017 17:53:08 +0200 Subject: [U-Boot] [PATCH] lib: disable hashtable and display options code in SPL Message-ID: <1503935588-28721-1-git-send-email-agust@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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