Browse Source

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>
He Zhe 6 năm trước cách đây
mục cha
commit
fe86a79fc3

+ 1 - 0
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb

@@ -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 = "\

+ 4 - 0
meta/recipes-devtools/bison/bison_3.0.4.bb

@@ -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"