[U-Boot] [PATCH] lib: don't build regex support into SPL when not using environment

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 agust@denx.de --- 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
participants (1)
-
Anatolij Gustschin