diff options
author | Kevin Tian <kevin.tian@intel.com> | 2011-01-05 10:26:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-07 11:09:48 +0000 |
commit | d835488c526aa61163ade503c6586eaa59509a07 (patch) | |
tree | f0c792136c1bd1e529349aaddad5cc87d32a0885 | |
parent | 16fa641f991a0ea44833b7c133c5863bf1476889 (diff) | |
download | poky-d835488c526aa61163ade503c6586eaa59509a07.tar.gz |
flex-native: create a wrapper script for sstate installation
flex-native encodes M4 staging path in its binary, which breaks sstate
installation in a new build environment. Use create_wrapper to create
a wrapper script which explicitly set M4 environmental variable to the
new path
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
-rw-r--r-- | meta/recipes-devtools/flex/flex.inc | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/flex/flex_2.5.35.bb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc index 93fa7e81a4..54c400c044 100644 --- a/meta/recipes-devtools/flex/flex.inc +++ b/meta/recipes-devtools/flex/flex.inc | |||
@@ -11,3 +11,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 " | |||
11 | 11 | ||
12 | inherit autotools | 12 | inherit autotools |
13 | 13 | ||
14 | do_install_append_virtclass-native() { | ||
15 | create_wrapper ${D}/${bindir}/flex M4=${STAGING_BINDIR_NATIVE}/m4 | ||
16 | } | ||
diff --git a/meta/recipes-devtools/flex/flex_2.5.35.bb b/meta/recipes-devtools/flex/flex_2.5.35.bb index 4fdce33ccf..28a4f1f06b 100644 --- a/meta/recipes-devtools/flex/flex_2.5.35.bb +++ b/meta/recipes-devtools/flex/flex_2.5.35.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | require flex.inc | 1 | require flex.inc |
2 | PR = "r1" | 2 | PR = "r2" |
3 | LICENSE="BSD" | 3 | LICENSE="BSD" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067" |
5 | BBCLASSEXTEND = "native" | 5 | BBCLASSEXTEND = "native" |