summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/machine/qemuarm64.conf2
-rw-r--r--meta/recipes-bsp/u-boot/files/efi.cfg6
-rw-r--r--meta/recipes-bsp/u-boot/u-boot_2021.07.bb2
3 files changed, 9 insertions, 1 deletions
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index 150a0744ebf..6d78f4281bd 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -29,3 +29,5 @@ QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio
# Virtio serial console
QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon"
QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon"
+
+WKS_FILE ?= "qemuarm64.wks"
diff --git a/meta/recipes-bsp/u-boot/files/efi.cfg b/meta/recipes-bsp/u-boot/files/efi.cfg
new file mode 100644
index 00000000000..7c81be19ad6
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/efi.cfg
@@ -0,0 +1,6 @@
+CONFIG_CMD_BOOTEFI=y
+CONFIG_EFI_LOADER=y
+CONFIG_EFI_APP=y
+CONFIG_EFI=y
+CONFIG_CMD_BOOTEFI_HELLO=y
+CONFIG_EFI_SECURE_BOOT=y
diff --git a/meta/recipes-bsp/u-boot/u-boot_2021.07.bb b/meta/recipes-bsp/u-boot/u-boot_2021.07.bb
index bbbc99bf8d1..693f7dd6e94 100644
--- a/meta/recipes-bsp/u-boot/u-boot_2021.07.bb
+++ b/meta/recipes-bsp/u-boot/u-boot_2021.07.bb
@@ -1,6 +1,6 @@
require u-boot-common.inc
require u-boot.inc
-SRC_URI_append = " file://0001-riscv32-Use-double-float-ABI-for-rv32.patch"
+SRC_URI_append = " file://0001-riscv32-Use-double-float-ABI-for-rv32.patch file://efi.cfg"
DEPENDS += "bc-native dtc-native python3-setuptools-native"