summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/companion_libs.in20
-rw-r--r--config/companion_libs/expat.in19
-rw-r--r--config/debug/gdb.in.native1
3 files changed, 37 insertions, 3 deletions
diff --git a/config/companion_libs.in b/config/companion_libs.in
index 0b0177c..2847f17 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 0000000..1dff4a7
--- /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 8d2159a..4f7e96a 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.