1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-12 03:10:15 +00:00

arm/generic-arm64: use a custom EFI wic file

Instead of using the pre-canned Wic kickstart file, provide our own.
This lets us specify that UUIDs should be used in the fstab, meaning
that the image is agnostic to the device type.

Change-Id: If9c0083c16f8bd2ad7d573a0d356383553aa8936
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2021-07-20 15:16:17 +01:00
committed by Jon Mason
parent ee1b109e36
commit 2d7af5f9d7
2 changed files with 13 additions and 2 deletions

View File

@@ -10,12 +10,12 @@ PREFERRED_VERSION_linux-yocto ?= "5.10%"
KERNEL_IMAGETYPE = "Image"
IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPE}"
IMAGE_FSTYPES ?= "wic"
WKS_FILE ?= "mkefidisk.wks"
WKS_FILE ?= "efi-disk.wks.in"
MACHINE_FEATURES += "efi"
EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
KBUILD_DEFCONFIG = "defconfig"
KCONFIG_MODE = "--alldefconfig"

View File

@@ -0,0 +1,11 @@
# short-description: Create an EFI disk image
# long-description: Creates a partitioned EFI disk image that the user
# can directly dd to boot media.
part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --label boot --active --align 1024 --use-uuid
part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
part swap --size 44 --label swap --fstype=swap --use-uuid
bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4"