libxml2 can be compiled in a minimum version using the --with-minimum configure flag for systems with memory constraints. This patch allows to select the minimal configuration in Kconfig.
Signed-off-by: Tobias Klauser <k...@zhaw.ch> --- lib/Kconfig | 7 +++++++ lib/libxml2/Makefile | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index b4e03c8..f425be1 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -398,6 +398,13 @@ config LIB_LIBXML2 Library to access XML files. See http://xmlsoft.org/ +config LIB_LIBXML2_MINIMUM + bool 'Build minimally sized libxml2' + depends on LIB_LIBXML2 + help + build a minimally sized libxml2 library (passes --with-minimum + flag to configure script) + comment "Library Configuration" config LIB_UC_LIBC_TIMEZONE diff --git a/lib/libxml2/Makefile b/lib/libxml2/Makefile index 9ed761c..d7f7704 100644 --- a/lib/libxml2/Makefile +++ b/lib/libxml2/Makefile @@ -2,6 +2,7 @@ VER = libxml2-2.7.4 CONF_OPTS = \ --without-python \ + $(call USE_WITH,LIB_LIBXML2_MINIMUM,minimum) \ $(call USE_WITH,LIB_ZLIB,zlib) \ $(call USE_WITH,LIB_READLINE,readline) \ $(call USE_WITH,LIB_READLINE,history) -- 1.7.0.4 _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev