Skip to content

Build Rufus compatible ISO #149

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

Merged
merged 1 commit into from
May 15, 2025
Merged
Show file tree
Hide file tree
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
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,21 @@ jobs:
name: framework.efi
path: framework_uefi/build/x86_64-unknown-uefi/boot.efi

- name: Install mtools to build ESP (Linux)
run: sudo apt-get install -y mtools
- name: Install mtools to build ESP and ISO (Linux)
run: sudo apt-get install -y mtools genisoimage

- name: Build ESP (Linux)
run: make -C framework_uefi

- name: Build ISO (Linux)
run: make -C framework_uefi iso

- name: Upload UEFI App ISO
uses: actions/upload-artifact@v4
with:
name: UEFI-Shell-fwk.iso
path: framework_uefi/build/x86_64-unknown-uefi/UEFI-Shell-fwk.iso

build-windows:
name: Build Windows
runs-on: windows-2022
Expand Down
15 changes: 15 additions & 0 deletions framework_uefi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ QEMU_FLAGS=\

all: $(BUILD)/boot.img

iso: $(BUILD)/UEFI-Shell-fwk.iso

clean:
rm -r $(BUILD)

Expand All @@ -39,6 +41,19 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi
mcopy -i $@.tmp $< ::efi/boot/bootx64.efi
mv $@.tmp $@

$(BUILD)/shellx64.efi:
wget https://github.com/pbatard/UEFI-Shell/releases/download/24H2/shellx64.efi -O $@

$(BUILD)/UEFI-Shell-fwk.iso: $(BUILD)/boot.efi $(BUILD)/shellx64.efi
mkdir -p $(BUILD)/$@.tmp/efi/boot
cp $(BUILD)/boot.efi $(BUILD)/$@.tmp/efi/boot/fwk.efi
cp $(BUILD)/shellx64.efi $(BUILD)/$@.tmp/efi/boot/bootx64.efi
genisoimage -v \
-V "UEFI SHELL with fwk.efi" \
-JR \
-o "$(BUILD)/UEFI-Shell-fwk.iso" \
$(BUILD)/$@.tmp

$(BUILD)/boot.efi: ../Cargo.lock $(SRC_DIR)/Cargo.toml $(SRC_DIR)/src/*
mkdir -p $(BUILD)
cargo rustc \
Expand Down
Loading