diff options
author | Ross Burton <ross@burtonini.com> | 2020-12-14 18:31:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-18 22:52:24 +0000 |
commit | df50c8308b58d4ee8e9aea523f92ae7512ef0e77 (patch) | |
tree | 529d116080657b1598687663e436e954030e0998 /meta/conf | |
parent | 8bac787b8f9dbd0a07c95980212ced6baaa6a2ff (diff) | |
download | poky-df50c8308b58d4ee8e9aea523f92ae7512ef0e77.tar.gz |
image-uefi.conf: add EFI arch variable
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.
(From OE-Core rev: d3bf2d0fbd50309d7cf8f066c258ba1ebdb05f47)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/image-uefi.conf | 13 |
1 files 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" | |||
8 | # Location inside rootfs. | 8 | # Location inside rootfs. |
9 | EFI_FILES_PATH = "${EFI_PREFIX}${EFIDIR}" | 9 | EFI_FILES_PATH = "${EFI_PREFIX}${EFIDIR}" |
10 | 10 | ||
11 | # The EFI name for the architecture | ||
12 | EFI_ARCH ?= "INVALID" | ||
13 | EFI_ARCH_x86 = "ia32" | ||
14 | EFI_ARCH_x86-64 = "x64" | ||
15 | EFI_ARCH_aarch64 = "aa64" | ||
16 | EFI_ARCH_arm = "arm" | ||
17 | |||
11 | # Determine name of bootloader image | 18 | # Determine name of bootloader image |
12 | EFI_BOOT_IMAGE ?= "bootINVALID.efi" | 19 | EFI_BOOT_IMAGE ?= "boot${EFI_ARCH}.efi" |
13 | EFI_BOOT_IMAGE_x86-64 = "bootx64.efi" | ||
14 | EFI_BOOT_IMAGE_x86 = "bootia32.efi" | ||
15 | EFI_BOOT_IMAGE_aarch64 = "bootaa64.efi" | ||
16 | EFI_BOOT_IMAGE_arm = "bootarm.efi" | ||