From ac7ce3847590bd0983c581ad15c01a27c6637f18 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Fri, 6 Nov 2015 22:15:11 -0800 Subject: Convert expat for target into a companion lib. Expat-for-host to be done. Signed-off-by: Alexey Neyman --- config/companion_libs.in | 20 +++++++++++++++++--- config/companion_libs/expat.in | 19 +++++++++++++++++++ config/debug/gdb.in.native | 1 + 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 config/companion_libs/expat.in (limited to 'config') diff --git a/config/companion_libs.in b/config/companion_libs.in index 0b0177c3..2847f179 100644 --- a/config/companion_libs.in +++ b/config/companion_libs.in @@ -53,6 +53,11 @@ config LIBELF_NEEDED select LIBELF select COMPLIBS_NEEDED +config EXPAT_NEEDED + bool + select EXPAT + select COMPLIBS_NEEDED + config COMPLIBS bool @@ -101,6 +106,13 @@ config LIBELF config LIBELF_TARGET bool +config EXPAT + bool + select COMPLIBS + +config EXPAT_TARGET + bool + if LIBICONV source "config/companion_libs/libiconv.in" endif @@ -130,9 +142,11 @@ comment "libelf version needed to build for target" depends on !LIBELF source "config/companion_libs/libelf.in" endif - -config FOO - bool +if EXPAT || EXPAT_TARGET +comment "expat version needed to build for target" + depends on !EXPAT +source "config/companion_libs/expat.in" +endif if COMPLIBS diff --git a/config/companion_libs/expat.in b/config/companion_libs/expat.in new file mode 100644 index 00000000..1dff4a79 --- /dev/null +++ b/config/companion_libs/expat.in @@ -0,0 +1,19 @@ +# expat config file + +choice + bool + prompt "expat version" +# Don't remove next line +# CT_INSERT_VERSION_BELOW + +config EXPAT_V_2_1_0 + bool + prompt "2.1.0" + +endchoice + +config EXPAT_VERSION + string +# Don't remove next line +# CT_INSERT_VERSION_STRING_BELOW + default "2.1.0" if EXPAT_V_2_1_0 diff --git a/config/debug/gdb.in.native b/config/debug/gdb.in.native index 8d2159af..4f7e96a0 100644 --- a/config/debug/gdb.in.native +++ b/config/debug/gdb.in.native @@ -5,6 +5,7 @@ config GDB_NATIVE prompt "Native gdb" depends on ! BARE_METAL depends on ! BACKEND + select EXPAT_TARGET help Build and install a native gdb for the target, to run on the target. -- cgit v1.2.3