From: Anatolij Gustschin Date: Mon, 28 Aug 2017 17:54:18 +0200 Subject: [U-Boot] [PATCH] lib: don't build regex support into SPL when not using environment Message-ID: <1503935658-28777-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 regex code is not used in SPL when environment support is disabled, so do not include this code to reduce SPL size. Signed-off-by: Anatolij Gustschin --- lib/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Makefile b/lib/Makefile index 1ffa455..b0850a1 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -44,6 +44,7 @@ obj-$(CONFIG_RBTREE) += rbtree.o obj-$(CONFIG_BITREVERSE) += bitrev.o obj-y += list_sort.o obj-y += hashtable.o +obj-$(CONFIG_REGEX) += slre.o endif obj-$(CONFIG_RSA) += rsa/ @@ -78,7 +79,9 @@ obj-y += hang.o obj-y += linux_compat.o obj-y += linux_string.o obj-y += membuff.o +ifdef CONFIG_SPL_ENV_SUPPORT obj-$(CONFIG_REGEX) += slre.o +endif obj-y += string.o obj-y += tables_csum.o obj-y += time.o -- 2.7.4