Skip to contentSkip to conversation

lib: don't build regex support into SPL when not using environment

PATCH New Anatolij Gustschin 1 participant 1 message Aug 28, 2017 Library code

lore
Share & tools
lore
#0 lore raw

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.

---
 lib/Makefile | 3 +++
 1 file changed, 3 insertions(+)
lib/Makefile +3 -0
index 1ffa455..b0850a1 100644
@@ -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