summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorWeisser, Pascal.ext <Pascal.Weisser.ext@karlstorz.com>2025-02-06 09:26:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-11 11:44:19 +0000
commit2fb5d93afb78107047903b1aa9dd0d4a8deec6f3 (patch)
treee5089345c80797e55b0d943f735930687ae7c80e /meta/classes-recipe
parent4ed99ca9b4a9fa634bcf637fcaaacad4f0c59c0d (diff)
downloadpoky-2fb5d93afb78107047903b1aa9dd0d4a8deec6f3.tar.gz
kernel-fitImage: Take possible multiconfig into account.
When specifying the dependencies of do_assemble_fitimage_initramfs the initramfs image might be built with another multiconfig. This needs to be taken into account. The path of the initramfs image also needs to be adapted to handle the case when it's built with another multiconfig. (From OE-Core rev: 891d58e9dc00e52f17ddecd4f12fc81c8a3c1bce) Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/kernel-fitimage.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 22356fe567..5f1231fde3 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -39,7 +39,11 @@ python __anonymous () {
39 39
40 image = d.getVar('INITRAMFS_IMAGE') 40 image = d.getVar('INITRAMFS_IMAGE')
41 if image: 41 if image:
42 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') 42 if d.getVar('INITRAMFS_MULTICONFIG'):
43 mc = d.getVar('BB_CURRENT_MC')
44 d.appendVarFlag('do_assemble_fitimage_initramfs', 'mcdepends', ' mc:' + mc + ':${INITRAMFS_MULTICONFIG}:${INITRAMFS_IMAGE}:do_image_complete')
45 else:
46 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete')
43 47
44 #check if there are any dtb providers 48 #check if there are any dtb providers
45 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") 49 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb")
@@ -624,7 +628,7 @@ fitimage_assemble() {
624 # Find and use the first initramfs image archive type we find 628 # Find and use the first initramfs image archive type we find
625 found= 629 found=
626 for img in ${FIT_SUPPORTED_INITRAMFS_FSTYPES}; do 630 for img in ${FIT_SUPPORTED_INITRAMFS_FSTYPES}; do
627 initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img" 631 initramfs_path="${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img"
628 if [ -e "$initramfs_path" ]; then 632 if [ -e "$initramfs_path" ]; then
629 bbnote "Found initramfs image: $initramfs_path" 633 bbnote "Found initramfs image: $initramfs_path"
630 found=true 634 found=true