From: "nicusor.huhulea@siemens.com" <nicusor.huhulea@siemens.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: [isar-cip-core][PATCH] efibootguard-boot.py: update dtbs based on their deploydir subdir paths
Date: Thu, 28 Mar 2024 07:54:18 +0000 [thread overview]
Message-ID: <DB3PR10MB6908BF491311D0AB428DFF79E63B2@DB3PR10MB6908.EURPRD10.PROD.OUTLOOK.COM> (raw)
This needs to be in sync with the isar image.bbclass changes where the dtbs are placed in
their corresponded image name subdirectories.
Signed-off-by: Nicusor Huhulea <nicusor.huhulea@siemens.com>
diff --git a/scripts/lib/wic/plugins/source/efibootguard-boot.py b/scripts/lib/wic/plugins/source/efibootguard-boot.py
index 4e3aefb..86e342c 100644
--- a/scripts/lib/wic/plugins/source/efibootguard-boot.py
+++ b/scripts/lib/wic/plugins/source/efibootguard-boot.py
@@ -181,6 +181,8 @@ class EfibootguardBootPlugin(SourcePlugin):
deploy_dir, kernel_image, initrd_image,
dtb_files, source_params):
rootfs_path = rootfs_dir.get('ROOTFS_DIR')
+ image_basename = get_bitbake_var("IMAGE_BASENAME")
+ machine = get_bitbake_var("MACHINE")
efiarch = get_bitbake_var("EFI_ARCH")
if not efiarch:
msger.error("Bitbake variable 'EFI_ARCH' not set, exiting\n")
@@ -210,8 +212,10 @@ class EfibootguardBootPlugin(SourcePlugin):
uefi_kernel_file=uefi_kernel_file)
if dtb_files:
for dtb in dtb_files:
- cmd += ' -d {deploy_dir}/{dtb_file}'.format(
+ cmd += ' -d {deploy_dir}/{image_basename}-{machine}.dtbs/{dtb_file}'.format(
deploy_dir=deploy_dir,
+ image_basename=image_basename,
+ machine=machine,
dtb_file=os.path.basename(dtb))
exec_cmd(cmd, as_shell=True)
next reply other threads:[~2024-03-28 7:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 7:54 nicusor.huhulea [this message]
2024-03-28 16:33 ` Gylstorff Quirin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB3PR10MB6908BF491311D0AB428DFF79E63B2@DB3PR10MB6908.EURPRD10.PROD.OUTLOOK.COM \
--to=nicusor.huhulea@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox