-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marek Belisko <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
From a349edef5358194b626f92f7dbe1f6ec342ed91f Mon Sep 17 00:00:00 2001 | ||
From: Alexander Sack <asac@pantacor.com> | ||
Date: Thu, 3 Oct 2024 10:27:52 +0000 | ||
From e70e8ed4429dcb046ae4241a8af613bee20d8970 Mon Sep 17 00:00:00 2001 | ||
From: Marek Belisko <marek.belisko@gmail.com> | ||
Date: Fri, 25 Oct 2024 09:10:45 +0200 | ||
Subject: [PATCH] kernel-fitimage.bbclass: support multiconfig | ||
|
||
Signed-off-by: Marek Belisko <[email protected]> | ||
--- | ||
meta/classes-recipe/kernel-fitimage.bbclass | 8 ++++++-- | ||
1 file changed, 6 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass | ||
index 18ab17bd2c..5c93a1cebb 100644 | ||
index 4b74ddc201..eaa8f02b5d 100644 | ||
--- a/meta/classes-recipe/kernel-fitimage.bbclass | ||
+++ b/meta/classes-recipe/kernel-fitimage.bbclass | ||
@@ -6,6 +6,9 @@ | ||
|
@@ -21,25 +22,25 @@ index 18ab17bd2c..5c93a1cebb 100644 | |
def get_fit_replacement_type(d): | ||
kerneltypes = d.getVar('KERNEL_IMAGETYPES') or "" | ||
replacementtype = "" | ||
@@ -38,7 +41,8 @@ python __anonymous () { | ||
@@ -42,7 +45,8 @@ python __anonymous () { | ||
|
||
image = d.getVar('INITRAMFS_IMAGE') | ||
if image: | ||
- d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') | ||
+ d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', '${@oe.utils.conditional("INITRAMFS_MULTICONFIG", "", "${INITRAMFS_IMAGE}:do_image_complete", "", d) }') | ||
+ d.appendVarFlag('do_assemble_fitimage_initramfs', 'mcdepends', '${@oe.utils.conditional("INITRAMFS_MULTICONFIG", "", "", "mc:${BB_CURRENT_MC}:${INITRAMFS_MULTICONFIG}:${INITRAMFS_IMAGE}:do_image_complete", d) }') | ||
ubootenv = d.getVar('UBOOT_ENV') | ||
if ubootenv: | ||
- d.appendVarFlag('do_assemble_fitimage', 'depends', ' virtual/bootloader:do_populate_sysroot') | ||
+ d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', '${@oe.utils.conditional("INITRAMFS_MULTICONFIG", "", "${INITRAMFS_IMAGE}:do_image_complete", "", d) }') | ||
+ d.appendVarFlag('do_assemble_fitimage_initramfs', 'mcdepends', '${@oe.utils.conditional("INITRAMFS_MULTICONFIG", "", "", "mc:${BB_CURRENT_MC}:${INITRAMFS_MULTICONFIG}:${INITRAMFS_IMAGE}:do_image_complete", d) }') | ||
|
||
ubootenv = d.getVar('UBOOT_ENV') | ||
if ubootenv: | ||
#check if there are any dtb providers | ||
providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") | ||
@@ -683,7 +687,7 @@ fitimage_assemble() { | ||
# Find and use the first initramfs image archive type we find | ||
found= | ||
for img in ${FIT_SUPPORTED_INITRAMFS_FSTYPES}; do | ||
- initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img" | ||
+ initramfs_path="${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img" | ||
+ initramfs_path="${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img" | ||
if [ -e "$initramfs_path" ]; then | ||
bbnote "Found initramfs image: $initramfs_path" | ||
found=true | ||
-- | ||
2.34.1 | ||
2.25.1 | ||
|