summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-08-26 09:24:02 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-27 11:45:22 +0200
commitc927a8882058099f7fd45ba8963839835f4a7dab (patch)
treee767a4e29a80e17233b3e3620e979af62f27d368
parent4f135ad5d1cfac9b4e44e11d3f268e4c5d28a77c (diff)
downloadOSELAS.Toolchain-c927a8882058099f7fd45ba8963839835f4a7dab.tar.gz
OSELAS.Toolchain-c927a8882058099f7fd45ba8963839835f4a7dab.tar.xz
replace host-expat with host-system-expat
This is a first step to make gcc plugins possible. The header files for plugins include the headers for several of host libraries that are currently statically compiled. Use the system versions of those libraries. This way the user can install the corresponding devel packages. Then gcc plugins can be built. libexpat is not needed for plugins but one more dependency into the system makes no difference and this makes maintaining the toolchain easier. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gdb.in2
-rw-r--r--rules/host-expat.in4
-rw-r--r--rules/host-expat.make42
-rw-r--r--rules/host-system-expat.in4
-rw-r--r--rules/host-system-expat.make27
5 files changed, 32 insertions, 47 deletions
diff --git a/rules/cross-gdb.in b/rules/cross-gdb.in
index bfe5f04..07a8f7d 100644
--- a/rules/cross-gdb.in
+++ b/rules/cross-gdb.in
@@ -1,7 +1,7 @@
menuconfig CROSS_GDB
bool "cross gdb "
select HOST_SYSTEM_PYTHON3
- select HOST_EXPAT
+ select HOST_SYSTEM_EXPAT
select HOST_SYSTEM_GMP
select HOST_ZLIB
select HOST_XZ
diff --git a/rules/host-expat.in b/rules/host-expat.in
deleted file mode 100644
index 9f4bf0a..0000000
--- a/rules/host-expat.in
+++ /dev/null
@@ -1,4 +0,0 @@
-## SECTION=hosttools_noprompt
-
-config HOST_EXPAT
- bool
diff --git a/rules/host-expat.make b/rules/host-expat.make
deleted file mode 100644
index 6c5b1d9..0000000
--- a/rules/host-expat.make
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*-makefile-*-
-#
-# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-#
-# We provide this package
-#
-HOST_PACKAGES-$(PTXCONF_HOST_EXPAT) += host-expat
-
-#
-# Paths and names
-#
-HOST_EXPAT_VERSION := 2.2.9
-HOST_EXPAT_MD5 := 875a2c2ff3e8eb9e5a5cd62db2033ab5
-HOST_EXPAT := expat-$(HOST_EXPAT_VERSION)
-HOST_EXPAT_SUFFIX := tar.bz2
-HOST_EXPAT_URL := $(call ptx/mirror, SF, expat/$(HOST_EXPAT).$(HOST_EXPAT_SUFFIX))
-HOST_EXPAT_SOURCE := $(SRCDIR)/$(HOST_EXPAT).$(HOST_EXPAT_SUFFIX)
-HOST_EXPAT_DIR := $(HOST_BUILDDIR)/$(HOST_EXPAT)
-HOST_EXPAT_LICENSE := MIT
-
-# ----------------------------------------------------------------------------
-# Prepare
-# ----------------------------------------------------------------------------
-
-#
-# autoconf
-#
-HOST_EXPAT_CONF_TOOL := autoconf
-HOST_EXPAT_CONF_OPT := \
- $(PTX_HOST_AUTOCONF) \
- --disable-shared \
- --enable-static \
- --enable-xml-context \
- --without-xmlwf \
- --without-libbsd
-
-# vim: syntax=make
diff --git a/rules/host-system-expat.in b/rules/host-system-expat.in
new file mode 100644
index 0000000..88d82c3
--- /dev/null
+++ b/rules/host-system-expat.in
@@ -0,0 +1,4 @@
+## SECTION=hosttools_noprompt
+
+config HOST_SYSTEM_EXPAT
+ tristate
diff --git a/rules/host-system-expat.make b/rules/host-system-expat.make
new file mode 100644
index 0000000..f53f129
--- /dev/null
+++ b/rules/host-system-expat.make
@@ -0,0 +1,27 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SYSTEM_EXPAT) += host-system-expat
+HOST_SYSTEM_EXPAT_LICENSE := ignore
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/host-system-expat.prepare:
+ @$(call targetinfo)
+ @echo "Checking for expat ..."
+ @pkg-config expat || \
+ ptxd_bailout "expat development files not found!" \
+ "Please install libexpat1-dev (debian)"
+ @$(call touch)
+
+# vim: syntax=make