mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
vm_image_util: Update to use edk2 package
Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
8a84488da9
commit
1761d9d071
@ -713,16 +713,17 @@ _write_qemu_uefi_conf() {
|
|||||||
|
|
||||||
case $BOARD in
|
case $BOARD in
|
||||||
amd64-usr)
|
amd64-usr)
|
||||||
cp "/usr/share/edk2-ovmf/OVMF_CODE.fd" "$(_dst_dir)/${flash_ro}"
|
cp "/usr/share/edk2/OVMF_CODE.fd" "$(_dst_dir)/${flash_ro}"
|
||||||
cp "/usr/share/edk2-ovmf/OVMF_VARS.fd" "$(_dst_dir)/${flash_rw}"
|
cp "/usr/share/edk2/OVMF_VARS.fd" "$(_dst_dir)/${flash_rw}"
|
||||||
;;
|
;;
|
||||||
arm64-usr)
|
arm64-usr)
|
||||||
info "Updating edk2-armvirt in /build/${BOARD}"
|
# Get edk2 files into local build workspace.
|
||||||
emerge-${BOARD} --nodeps --select -qugKN sys-firmware/edk2-armvirt
|
info "Updating edk2 in /build/${BOARD}"
|
||||||
# this bit of magic comes from http://tech.donghao.org/2014/12/18/running-fedora-21-on-qemu-system-aarch64/
|
emerge-${BOARD} --nodeps --select -qugKN sys-firmware/edk2
|
||||||
cat "/build/${BOARD}/usr/share/edk2-armvirt/QEMU_EFI.fd" /dev/zero | \
|
# Create 64MiB flash device image files.
|
||||||
|
cat "/build/${BOARD}/usr/share/edk2/QEMU_EFI.fd" /dev/zero | \
|
||||||
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}" \
|
dd iflag=fullblock bs=1M count=64 of="$(_dst_dir)/${flash_ro}" \
|
||||||
status=none
|
status=none
|
||||||
dd if=/dev/zero bs=1M count=64 of="$(_dst_dir)/${flash_rw}" \
|
dd if=/dev/zero bs=1M count=64 of="$(_dst_dir)/${flash_rw}" \
|
||||||
status=none
|
status=none
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user