[oe-commits] Olof Johansson : flex: Only use create_wrapper for native and nativesdk

git at git.openembedded.org git at git.openembedded.org
Wed Sep 4 13:07:22 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 2ca72d35e839a0fa24d33bf75343f187792f4e2c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2ca72d35e839a0fa24d33bf75343f187792f4e2c

Author: Olof Johansson <olof.johansson at axis.com>
Date:   Wed Sep  4 08:30:29 2013 +0200

flex: Only use create_wrapper for native and nativesdk

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 at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/flex/flex.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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}
 }



More information about the Openembedded-commits mailing list