nativesdk-bison: Add to nativesdk-packagegroup-sdk-host and set BISON_PKGDATADIR

bison is needed when building kernel. Add it to nativesdk-packagegroup-sdk-host
and set BISON_PKGDATADIR for bison to use its components.

(From OE-Core rev: 8aa27e4eb2f08281329ca1a1da421c6fc376bc8d)

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
He Zhe 2018-09-28 11:18:24 +08:00 committed by Richard Purdie
parent 205d75ddb3
commit fe86a79fc3
2 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@ RDEPENDS_${PN} = "\
nativesdk-cmake \
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'nativesdk-wayland', '', d)} \
nativesdk-sdk-provides-dummy \
nativesdk-bison \
"
RDEPENDS_${PN}_darwin = "\

View File

@ -36,4 +36,8 @@ do_install_append_class-native() {
create_wrapper ${D}/${bindir}/bison \
BISON_PKGDATADIR=${STAGING_DATADIR_NATIVE}/bison
}
do_install_append_class-nativesdk() {
create_wrapper ${D}/${bindir}/bison \
BISON_PKGDATADIR=${datadir}/bison
}
BBCLASSEXTEND = "native nativesdk"