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.

Signed-off-by: Denys Dmytriyenko <[email protected]>
---
 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(-)

diff --git a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc 
b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
index c2e318a..c8afb0e 100644
--- a/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
+++ b/meta-arago-distro/recipes-core/images/arago-core-tisdk-image.inc
@@ -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} \
 "
diff --git 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb
 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb
index c5b7ddc..8020bb8 100644
--- 
a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb
+++ 
b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb
@@ -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}"
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to