Skip to contentSkip to conversation

packagegroup-*-amsdk-sdh-host: adjust for kerner src based on its suffix

PATCH New Denys Dmytriyenko 1 participant 1 message Jul 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 packagegroup-*-amsdk-sdh-host: adjust for kerner src based on its suffix

From: Denys Dmytriyenko <[email protected]>

Kernel source packages differ between variants (production, rt, systest), due to different configs used and potentially different source branches or even trees used. Hence kernel source ipk uses the full name of corresponding kernel recipe with variant encoded in the name - e.g. linux-ti-staging-rt.

"amsdk-sdk-host" packagegroup is the one that packages kernel source ipk for the host side of the devkit. But it doesn't depend on the actual kernel itself, so sstate can't invalidate the cache when switching variants (i.e. changing PREFERRED_PROVIDER). When building from sources, this packagegroup always gets rebuilt, but when built from sstate, the packagegroup for the wrong variant can be picked up. And since kernel source ipk uses recipe name, it leads to errors like "cannot find rt kernel sources for production build".

By naming "amsdk-sdk-host" packagegroup with the variant name (conveniently provided by ARAGO_KERNEL_SUFFIX variable), we can force this packagegroup to have different output for different variant and package the correct kernel source ipk.

---
 meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc      | 2 +-
 .../packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb          | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc +1 -1
index c2e318a..c8afb0e 100644
@@ -52,6 +52,6 @@ IMAGE_INSTALL = "\
     ${@bb.utils.contains('MACHINE_FEATURES','sgx','packagegroup-arago-tisdk-graphics-sdk-host','',d)} \
     packagegroup-arago-tisdk-matrix-sdk-host \
     packagegroup-arago-tisdk-multimedia-sdk-host \
-    packagegroup-arago-tisdk-amsdk-sdk-host \
+    packagegroup-arago-tisdk-amsdk-sdk-host${ARAGO_KERNEL_SUFFIX} \
     ${IMAGE_INSTALL_QT} \
 "
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb +3 -1
index c5b7ddc..8020bb8 100644
@@ -1,6 +1,8 @@
 DESCRIPTION = "Task to install additional scripts and applications into the SDK"
 LICENSE = "MIT"
-PR = "r27"
+PR = "r28"
+
+PN = "packagegroup-arago-tisdk-amsdk-sdk-host${ARAGO_KERNEL_SUFFIX}"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
Signature · 1 line
2.7.4