Skip to content

Commit

Permalink
Merge pull request #190 from mihalicyn/drop_edk2_2mb_version
Browse files Browse the repository at this point in the history
snapcraft: drop edk2 2MB image
  • Loading branch information
tomponline authored Nov 20, 2023
2 parents 11ebc46 + 58c4896 commit 1603fe6
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 @@ -408,14 +408,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 @@ -957,16 +949,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 1603fe6

Please sign in to comment.