packagegroups-*-sdk*: require dsp, gpu machine and opencl, opencv, opengl distro features for qt-opencv-opencl-opengl-multithreaded
PATCH 1/10 packagegroups-*-sdk*: require dsp, gpu machine and opencl, opencv, opengl distro features for qt-opencv-opencl-opengl-multithreaded
From: Denys Dmytriyenko <[email protected]>
--- .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb | 2 +- .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb +1 -1
@@ -27,7 +27,7 @@ MULTIMEDIA_append_omap-a15 = " \ MULTIMEDIA_append_am65xx = " ${BARCODE_PKG}" MULTIMEDIA_append_dra7xx = " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'qt-opencv-opencl-opengl-multithreaded-src', '', d)} \ + ${@['','qt-opencv-opencl-opengl-multithreaded-src'][oe.utils.all_distro_features(d, 'opencv opencl opengl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'gpu dsp', True, False, d)]} \ " MULTIMEDIA_append_keystone = " ${BARCODE_PKG}"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb +1 -1
@@ -13,7 +13,7 @@ MULTIMEDIA = "" MULTIMEDIA_append_dra7xx = " \ hevc-arm-decoder-dev \ hevc-arm-decoder-staticdev \ - ${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'qt-opencv-opencl-opengl-multithreaded-dev', '', d)} \ + ${@['','qt-opencv-opencl-opengl-multithreaded-dev'][oe.utils.all_distro_features(d, 'opencv opencl opengl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'gpu dsp', True, False, d)]} \ " MULTIMEDIA_append_ti33x = " ${BARCODE_PKG}"
Signature · 1 line
2.7.4
PATCH 2/10 packagegroups-*-sdk*: require dsp machine and opencv distro features for barcode-roi
From: Denys Dmytriyenko <[email protected]>
--- .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb | 4 +++- .../packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-host.bb +3 -1
@@ -6,7 +6,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit packagegroup -BARCODE_PKG = "${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'barcode-roi-src', '', d)}" +BARCODE_PKG = " \ + ${@['','barcode-roi-src'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ +" MULTIMEDIA = ""
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb +3 -1
@@ -6,7 +6,9 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" inherit packagegroup -BARCODE_PKG = "${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'barcode-roi-dev', '', d)}" +BARCODE_PKG = " \ + ${@['','barcode-roi-dev'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ +" MULTIMEDIA = ""
Signature · 1 line
2.7.4
PATCH 3/10 packagegroup-*-opencl-sdk*: require opencl distro feature, plus openmp for openmpacc, linalg
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- .../packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb | 10 ++++++---- .../packagegroup-arago-tisdk-opencl-sdk-target.bb | 11 ++++++----- 2 files changed, 12 insertions(+), 9 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-host.bb +6 -4
@@ -4,19 +4,21 @@ PR = "r1" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup +inherit packagegroup features_check + +REQUIRED_DISTRO_FEATURES = "opencl" UTILS = " \ opencl-examples-src \ - openmpacc-examples-src \ + ${@oe.utils.all_distro_features(d, 'openmp', 'openmpacc-examples-src')} \ " UTILS_append_k2hk = " \ - linalg-examples-src \ + ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples-src')} \ " UTILS_append_dra7xx = " \ - linalg-examples-src \ + ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-examples-src')} \ " RDEPENDS_${PN} = "\
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb +6 -5
@@ -4,20 +4,21 @@ PR = "r2" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit packagegroup +inherit packagegroup features_check + +REQUIRED_DISTRO_FEATURES = "opencl" UTILS = " \ opencl-staticdev \ - openmpacc-dev \ - python-pyopencl-dev \ + ${@oe.utils.all_distro_features(d, 'openmp', 'openmpacc-dev')} \ " UTILS_append_k2hk = " \ - linalg-dev \ + ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-dev')} \ " UTILS_append_dra7xx = " \ - linalg-dev \ + ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-dev')} \ " RDEPENDS_${PN} = "\
Signature · 1 line
2.7.4
PATCH 4/10 nativesdk-packagegroup*: require opencl, opencv for tidl nativesdk tools
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Require opencl,openmp for clacc nativesdk tool. Also switch distutils in devkit from Python2 to Python3.
--- .../nativesdk-packagegroup-arago-tisdk-host.bb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb +9 -5
@@ -6,22 +6,26 @@ inherit packagegroup nativesdk PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" +TIDL_TOOLS = " \ + nativesdk-tidl-import \ + nativesdk-tidl-viewer \ + nativesdk-tidl-utils \ +" + # nativesdk-open62541-examples # nativesdk-open62541-tests EXTRA_TI_TOOLS = " \ nativesdk-ti-cgt6x \ nativesdk-ti-cgt-pru \ nativesdk-clocl \ - nativesdk-clacc \ - nativesdk-tidl-import \ - nativesdk-tidl-viewer \ - nativesdk-tidl-utils \ + ${@oe.utils.all_distro_features(d, "opencl openmp", "nativesdk-clacc")} \ nativesdk-gcc-arm-none-eabi \ + ${@oe.utils.all_distro_features(d, "opencl opencv", "${TIDL_TOOLS}")} \ " RDEPENDS_${PN} = "\ nativesdk-packagegroup-sdk-host \ - nativesdk-python-distutils \ + nativesdk-python3-distutils \ nativesdk-git \ nativesdk-mtd-utils-ubifs \ ${EXTRA_TI_TOOLS} \
Signature · 1 line
2.7.4
PATCH 5/10 openmpacc: do not require dsp machine feature for native and nativesdk packages
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc +2 -0
@@ -5,6 +5,8 @@ LICENSE = "BSD" inherit features_check REQUIRED_MACHINE_FEATURES = "dsp" +REQUIRED_MACHINE_FEATURES_class-native = "" +REQUIRED_MACHINE_FEATURES_class-nativesdk = "" REQUIRED_DISTRO_FEATURES = "opencl openmp" PV = "1.5.6.0"
Signature · 1 line
2.7.4
PATCH 6/10 tidl: do not require dsp machine feature for native and nativesdk packages
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-arago-extras/recipes-ti/tidl-api/tidl-api.inc +2 -0
@@ -16,4 +16,6 @@ S = "${WORKDIR}/git" inherit features_check REQUIRED_MACHINE_FEATURES = "dsp" +REQUIRED_MACHINE_FEATURES_class-native = "" +REQUIRED_MACHINE_FEATURES_class-nativesdk = "" REQUIRED_DISTRO_FEATURES = "opencl opencv"
Signature · 1 line
2.7.4
PATCH 7/10 meta-toolchain-arago: use SDK_XZ_OPTIONS and SDKDEPLOYDIR
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
1. SDK_XZ_OPTIONS is now standard set of xz options set by oe-core
2. SDKDEPLYDIR used to play nice with shared state
--- .../recipes-core/meta/meta-toolchain-arago.bb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +5 -9
@@ -14,10 +14,6 @@ require recipes-core/meta/meta-toolchain.bb PR = "r35" -XZ_COMPRESSION_LEVEL ?= "-e -6" -XZ_INTEGRITY_CHECK ?= "crc32" -XZ_THREADS ?= "-T 0" - # This function creates an environment-setup-script for use in a deployable SDK toolchain_create_sdk_env_script () { # Create environment setup script
@@ -145,13 +141,13 @@ cleanup_toolchain_packages() { fakeroot archive_sdk() { # Package it up - mkdir -p ${SDK_DEPLOY} + mkdir -p ${SDKDEPLOYDIR} cd ${SDK_OUTPUT}/${SDKPATH} - tar --owner=root --group=root -c . | xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} - > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz + tar --owner=root --group=root -c . | xz ${SDK_XZ_OPTIONS} > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} } fakeroot create_shar() { - cat << "EOF" > ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh + cat << "EOF" > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.sh #!/bin/bash INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
@@ -340,8 +336,8 @@ exit 0 MARKER: EOF # append the SDK tarball - cat ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz >> ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.sh + cat ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} >> ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.sh # delete the old tarball, we don't need it anymore - rm ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.xz + rm ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} }
Signature · 1 line
2.7.4
PATCH 8/10 packagegroup-*-gst-sdk-target: require opencl distro feature for dsp66 gst plugin
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- .../recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb +1 -1
@@ -15,7 +15,7 @@ GSTREAMER_DEPS = " \ " GSTREAMER_DSP = " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'dsp', 'gstreamer1.0-plugins-dsp66-dev', '', d)} \ + ${@['','gstreamer1.0-plugins-dsp66-dev'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ " GSTREAMER_DEPS_append_dra7xx = " \
Signature · 1 line
2.7.4
PATCH 9/10 arago-core-tisdk-bundle, packagegroup-*-toolchain-tisdk-target: require opencl feature for opencl packages
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/recipes-core/images/arago-core-tisdk-bundle.inc | 2 +- .../packagegroups/packagegroup-arago-toolchain-tisdk-target.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/images/arago-core-tisdk-bundle.inc +1 -1
@@ -54,7 +54,7 @@ IMAGE_INSTALL_QT_omapl138 = "" IMAGE_INSTALL = "\ packagegroup-arago-tisdk-addons-sdk-host \ - ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-sdk-host','',d)} \ + ${@['','packagegroup-arago-tisdk-opencl-sdk-host'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ packagegroup-arago-tisdk-crypto-sdk-host \ ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics-sdk-host','',d)} \ packagegroup-arago-tisdk-matrix-sdk-host \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb +1 -1
@@ -32,6 +32,6 @@ RDEPENDS_${PN} = "\ ${TISDK_TOOLCHAIN_BASE_TARGET} \ ${TISDK_TOOLCHAIN_EXTRA_TARGET} \ ${@bb.utils.contains('MACHINE_FEATURES','gpu','packagegroup-arago-tisdk-graphics-sdk-target','',d)} \ - ${@bb.utils.contains('MACHINE_FEATURES','dsp','packagegroup-arago-tisdk-opencl-sdk-target','',d)} \ + ${@['','packagegroup-arago-tisdk-opencl-sdk-target'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ packagegroup-arago-tisdk-addons-sdk-target \ "
Signature · 1 line
2.7.4
PATCH 10/10 arago.conf: add support for opencl, opencv, openmp distro features
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Disable opencv for now, due to breakage with external arm toolchain.
--- meta-arago-distro/conf/distro/arago.conf | 8 ++++++++ 1 file changed, 8 insertions(+)
meta-arago-distro/conf/distro/arago.conf +8 -0
@@ -80,6 +80,14 @@ DISTRO_FEATURES_remove = "x11" # Add additional distro features DISTRO_FEATURES_append = " pam wayland opengl" +DISTRO_FEATURES_append = " opencl" +#DISTRO_FEATURES_append = " opencv" +DISTRO_FEATURES_append = " openmp" + +# Normally target distro features will not be applied to native builds: +# Native distro features on this list will use the target feature value +DISTRO_FEATURES_FILTER_NATIVE_append = " opencl opencv openmp" +DISTRO_FEATURES_FILTER_NATIVESDK_append = " opencl opencv openmp" # Set global runtime providers for major components ARAGO_SYSVINIT ?= "0"
Signature · 1 line
2.7.4