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>
This commit is contained in:
Ross Burton 2020-12-14 18:31:45 +00:00 committed by Richard Purdie
parent 8bac787b8f
commit df50c8308b

View File

@ -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"