lib: don't build regex support into SPL when not using environment
PATCH 1/1 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 <[email protected]>
--- lib/Makefile | 3 +++ 1 file changed, 3 insertions(+)
lib/Makefile +3 -0
@@ -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
Signature · 1 line
2.7.4