Patchwork flex: Only use create_wrapper for native and nativesdk

login
register
mail settings
Submitter Olof Johansson
Date Sept. 4, 2013, 6:30 a.m.
Message ID <1378276229-19687-1-git-send-email-olofjn@axis.com>
Download mbox | patch
Permalink /patch/57321/
State Accepted
Commit 990deb3b894806b512f061759e11e9aa84b2d98a
Headers show

Comments

Olof Johansson - Sept. 4, 2013, 6:30 a.m.
The create_wrapper functions of utils.bbclass cause implicit
dependencies on bash, which may not be suitable for deployment on
target. Besides, the wrapper doesn't seem to be necessary on target.

Signed-off-by: Olof Johansson <olofjn@axis.com>
---
 meta/recipes-devtools/flex/flex.inc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc
index 517db16..43f1dda 100644
--- a/meta/recipes-devtools/flex/flex.inc
+++ b/meta/recipes-devtools/flex/flex.inc
@@ -13,6 +13,10 @@  inherit autotools gettext
 M4 = "${bindir}/m4"
 M4_class-native = "${STAGING_BINDIR_NATIVE}/m4"
 
-do_install_append() {
+do_install_append_class-native() {
+	create_wrapper ${D}/${bindir}/flex M4=${M4}
+}
+
+do_install_append_class-nativesdk() {
 	create_wrapper ${D}/${bindir}/flex M4=${M4}
 }