Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snapcraft: drop edk2 2MB image #190

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading