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>
This commit is contained in:
Kevin Tian
2011-01-05 10:26:36 +08:00
committed by Richard Purdie
parent 16fa641f99
commit d835488c52
2 changed files with 4 additions and 1 deletions

View File

@@ -11,3 +11,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 "
inherit autotools
do_install_append_virtclass-native() {
create_wrapper ${D}/${bindir}/flex M4=${STAGING_BINDIR_NATIVE}/m4
}

View File

@@ -1,5 +1,5 @@
require flex.inc
PR = "r1"
PR = "r2"
LICENSE="BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067"
BBCLASSEXTEND = "native"