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:
@@ -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"
|
||||
|
||||
11
meta-arm/wic/efi-disk.wks.in
Normal file
11
meta-arm/wic/efi-disk.wks.in
Normal 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"
|
||||
Reference in New Issue
Block a user