Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 58e3343

Browse files
authored
Merge pull request #227 from mythi/esdk
computervision eSDK
2 parents d4ff859 + 6c123f7 commit 58e3343

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

doc/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ when building distributable eSDKs. For more documentation on how to customize an
3535
re-configure the eSDK, see the "Appendig B. Customizing the Extensible SDK"
3636
in the `Yocto Project extensible software development kit`_ manual.
3737

38-
.. _`Yocto Project extensive software development kit`: http://www.yoctoproject.org/docs/latest/sdk-manual/sdk-manual.html
38+
.. _`Yocto Project extensible software development kit`: http://www.yoctoproject.org/docs/latest/sdk-manual/sdk-manual.html
3939
.. _`Yocto Project release cadence`: https://wiki.yoctoproject.org/wiki/Planning#Roadmaps_and_Schedules
4040
.. _`Yocto Project Bugzilla`: https://bugzilla.yoctoproject.org/
4141
.. _`Yocto Project git`: http://git.yoctoproject.org/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Recipe for compiling beignet-native
2+
inherit native
3+
4+
require beignet.inc

meta-refkit-computervision/recipes-opencl/beignet/beignet.inc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,20 @@ SRC_URI = "git://anongit.freedesktop.org/beignet;nobranch=1 \
88
SRC_URI_append_class-native = " file://0001-reduced-native-for-1.3.1.patch"
99
SRC_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.
1412
PV = "1.3.1.${@ 'git${SRCPV}'.replace('+', '.')}"
1513
SRCREV = "6804cca263edd11fd03b2d7f5b7ba034d9a013c3"
1614
S = "${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"
2019
DEPENDS_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

2726
inherit 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

5556
do_install_class-native() {

meta-refkit/conf/distro/include/refkit-ci.inc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,17 @@ REFKIT_CI_BUILD_TARGETS=" \
7474
# Following targets would be executed with do_populate_sdk task
7575
REFKIT_CI_SDK_TARGETS=""
7676
# Following targets would be executed with do_populate_sdk_ext task.
77-
REFKIT_CI_ESDK_TARGETS="refkit-image-common refkit-image-gateway"
77+
REFKIT_CI_ESDK_TARGETS=" \
78+
refkit-image-common \
79+
refkit-image-gateway \
80+
refkit-image-computervision \
81+
"
7882
# Following targets would be executed with do_testsdkext task.
79-
REFKIT_CI_ESDK_TEST_TARGETS="refkit-image-common refkit-image-gateway"
83+
REFKIT_CI_ESDK_TEST_TARGETS=" \
84+
refkit-image-common \
85+
refkit-image-gateway \
86+
refkit-image-computervision \
87+
"
8088
# Following targets would be executed with do_test_iot_export task
8189
REFKIT_CI_TEST_EXPORT_TARGETS="refkit-image-common refkit-image-computervision refkit-image-gateway refkit-image-industrial \
8290
"

0 commit comments

Comments
 (0)