Skip to content

Commit

Permalink
snapcraft: drop edk2 2MB image
Browse files Browse the repository at this point in the history
canonical/lxd#12515

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
  • Loading branch information
mihalicyn committed Nov 7, 2023
1 parent 1b59972 commit 58c4896
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,6 @@ parts:
"${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.4MB.fd" \
-DFD_SIZE_4MB
# Compatibility firmware (2MB, no CSM)
build_edk2 \
"${CRAFT_PART_INSTALL}/share/qemu/OVMF_CODE.2MB.fd" \
"${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.2MB.fd" \
-DFD_SIZE_2MB
ln -s OVMF_CODE.2MB.fd "${CRAFT_PART_INSTALL}/share/qemu/OVMF_CODE.fd"
ln -s OVMF_VARS.2MB.fd "${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.fd"
# Legacy firmware (4MB, CSM)
if [ "$(uname -m)" = "x86_64" ]; then
build_edk2 \
Expand Down Expand Up @@ -958,16 +950,6 @@ parts:
-V "${CRAFT_STAGE}/share/qemu/OVMF_VARS.4MB.fd" \
-C "$(cat ubuntu-sb.crt)" \
-o "${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.4MB.ms.fd"
# 2MB variant
./edk2-vars-generator -f "${FIRMWARE}" \
-e ../../edk2/build/Build/*/*/*/EnrollDefaultKeys.efi \
-s ../../edk2/build/Build/*/*/*/Shell.efi \
-c "${CRAFT_STAGE}/share/qemu/OVMF_CODE.2MB.fd" \
-V "${CRAFT_STAGE}/share/qemu/OVMF_VARS.2MB.fd" \
-C "$(cat ubuntu-sb.crt)" \
-o "${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.2MB.ms.fd"
ln -s OVMF_VARS.2MB.ms.fd "${CRAFT_PART_INSTALL}/share/qemu/OVMF_VARS.ms.fd"
prime:
- share/qemu/*

Expand Down

0 comments on commit 58c4896

Please sign in to comment.