From: "Ross Burton" <ross@burtonini.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v2 4/7] image-uefi.conf: add EFI arch variable
Date: Mon, 14 Dec 2020 18:31:45 +0000 [thread overview]
Message-ID: <20201214183148.2673069-4-ross.burton@arm.com> (raw)
In-Reply-To: <20201214183148.2673069-1-ross.burton@arm.com>
Refactor EFI_BOOT_IMAGE so that the EFI name for the architecture
is exposed as EFI_ARCH, so that other recipes (such as bootloaders)
can reuse it.
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta/conf/image-uefi.conf | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/meta/conf/image-uefi.conf b/meta/conf/image-uefi.conf
index aaeff12ccb..882a0e720c 100644
--- a/meta/conf/image-uefi.conf
+++ b/meta/conf/image-uefi.conf
@@ -8,9 +8,12 @@ EFI_PREFIX ?= "/boot"
# Location inside rootfs.
EFI_FILES_PATH = "${EFI_PREFIX}${EFIDIR}"
+# The EFI name for the architecture
+EFI_ARCH ?= "INVALID"
+EFI_ARCH_x86 = "ia32"
+EFI_ARCH_x86-64 = "x64"
+EFI_ARCH_aarch64 = "aa64"
+EFI_ARCH_arm = "arm"
+
# Determine name of bootloader image
-EFI_BOOT_IMAGE ?= "bootINVALID.efi"
-EFI_BOOT_IMAGE_x86-64 = "bootx64.efi"
-EFI_BOOT_IMAGE_x86 = "bootia32.efi"
-EFI_BOOT_IMAGE_aarch64 = "bootaa64.efi"
-EFI_BOOT_IMAGE_arm = "bootarm.efi"
+EFI_BOOT_IMAGE ?= "boot${EFI_ARCH}.efi"
--
2.25.1
next prev parent reply other threads:[~2020-12-14 18:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 18:31 [PATCH v2 1/7] syslinux: rewrite recipe so only target code is x86-specific Ross Burton
2020-12-14 18:31 ` [PATCH v2 2/7] wic-image-minimal: only depend on syslinux on x86 targets Ross Burton
2020-12-14 18:31 ` [PATCH v2 3/7] wic-tools: don't build syslinux-native for targets without syslinux Ross Burton
2020-12-14 18:31 ` Ross Burton [this message]
2020-12-14 18:31 ` [PATCH v2 5/7] systemd-boot: build the EFI stub Ross Burton
2020-12-14 18:31 ` [PATCH v2 6/7] systemd-boot: allow building for Arm targets Ross Burton
2020-12-14 18:31 ` [PATCH v2 7/7] wic-tools: add grub-efi and systemd-boot on arm64 Ross Burton
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=20201214183148.2673069-4-ross.burton@arm.com \
--to=ross@burtonini.com \
--cc=openembedded-core@lists.openembedded.org \
/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