@@ -8,21 +8,20 @@ SRC_URI = "git://anongit.freedesktop.org/beignet;nobranch=1 \
88SRC_URI_append_class -native = " file://0001-reduced-native-for-1.3.1.patch"
99SRC_URI_append_class -target = " file://0001-Run-native-gbe_bin_generater-to-compile-built-in-ker.patch"
1010
11- BBCLASSEXTEND = "native"
12-
1311# CMake cannot digest "+" in pathes -> replace it with dots.
1412PV = "1.3.1.${@ 'git${SRCPV} ' . replace ('+' , '.' )}"
1513SRCREV = "6804cca263edd11fd03b2d7f5b7ba034d9a013c3"
1614S = "${WORKDIR} /git"
1715
1816# we need to depend on ocl-icd, so that the exported symbols go right
19- DEPENDS = "${PN} -native clang libdrm mesa ocl-icd ncurses"
17+ DEPENDS = "clang libdrm mesa ocl-icd ncurses"
18+ DEPENDS_append_class -target = " beignet-native"
2019DEPENDS_class -native = "clang-native"
2120
2221# To solve the PCI_ID problem, we use the target from filename for
2322# installing the library.
2423
25- CL_HW_TARGET ?= "${@ d . getVar ('PN' ). split ('-' )[1 ]}"
24+ CL_HW_TARGET ?= "${@ "" if d . getVar ( 'PN' ) . endswith ( '-native' ) else d . getVar ('PN' ). split ('-' )[1 ]}"
2625
2726inherit cmake pkgconfig pythonnative
2827
@@ -50,6 +49,8 @@ do_install_append_class-target () {
5049 # Remove AppStream metadata so that the packages won't conflict
5150 rm ${D}${datadir} /metainfo /com . intel . beignet . metainfo . xml
5251 rmdir --ignore -fail -on -non -empty -p ${D}${datadir} /metainfo
52+
53+ rm -r ${D}${includedir}
5354}
5455
5556do_install_class -native () {
0 commit comments