[oe-commits] Patrick Ohly : binconfig-disabled: install config scripts in sysroot
git at git.openembedded.org
git at git.openembedded.org
Thu Jan 29 15:37:10 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 822df6d23c9c24e131c38fda9f0012c47ad7af46
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=822df6d23c9c24e131c38fda9f0012c47ad7af46
Author: Patrick Ohly <patrick.ohly at intel.com>
Date: Fri Jan 23 06:48:18 2015 -0800
binconfig-disabled: install config scripts in sysroot
The purpose of binconfig-disabled is to manipulate config scripts such that
using them causes errors. But that only works when the modified config script
really gets installed in the sysroot. That is not the case with the staging
code in binconfig.bbclass.
Only patched config files get staged. For that reason it seemed more
appropriate to change binconfig-disabled instead of binconfig.
The reason for the change was the observation that the swig recipe needs
pcre-config installed on the host system. Staging pcre-config removes that
host dependency. swig did not actually end up *using* the pcre-config from the
host, because later during do_compile the patched configure.ac is used to
re-generate configure.
Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/classes/binconfig-disabled.bbclass | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta/classes/binconfig-disabled.bbclass b/meta/classes/binconfig-disabled.bbclass
index 4c42ae2..0acc964 100644
--- a/meta/classes/binconfig-disabled.bbclass
+++ b/meta/classes/binconfig-disabled.bbclass
@@ -16,3 +16,13 @@ do_install_append () {
echo "exit 1" >> ${D}$x
done
}
+
+SYSROOT_PREPROCESS_FUNCS += "binconfig_disabled_sysroot_preprocess"
+
+binconfig_disabled_sysroot_preprocess () {
+ for x in ${BINCONFIG}; do
+ configname=`basename $x`
+ install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
+ install ${D}$x ${SYSROOT_DESTDIR}${bindir_crossscripts}
+ done
+}
More information about the Openembedded-commits
mailing list