Skip to content

Commit cd0ea84

Browse files
committed
Build Rufus compatible ISO
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 1420d6f commit cd0ea84

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ jobs:
8080
- name: Build ESP (Linux)
8181
run: make -C framework_uefi
8282

83+
- name: Build ISO (Linux)
84+
run: make -C framework_uefi iso
85+
86+
- name: Upload UEFI App ISO
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: UEFI-Shell-fwk.iso
90+
path: framework_uefi/build/x86_64-unknown-uefi/UEFI-Shell-fwk.iso
91+
8392
build-windows:
8493
name: Build Windows
8594
runs-on: windows-2022

framework_uefi/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ QEMU_FLAGS=\
1515

1616
all: $(BUILD)/boot.img
1717

18+
iso: $(BUILD)/UEFI-Shell-fwk.iso
19+
1820
clean:
1921
rm -r $(BUILD)
2022

@@ -39,6 +41,13 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi
3941
mcopy -i $@.tmp $< ::efi/boot/bootx64.efi
4042
mv $@.tmp $@
4143

44+
$(BUILD)/UEFI-Shell-fwk.iso: $(BUILD)/boot.efi
45+
wget https://github.com/pbatard/UEFI-Shell/releases/download/24H2/shellx64.efi
46+
mkdir -p $@.tmp/efi/boot
47+
cp $< $@.tmp/efi/boot/fwk.efi
48+
cp $@.tmp/efi/boot/shellx64.efi
49+
genisoimage -v -V "UEFI SHELL with fwk.efi" -JR -o "UEFI-Shell-fwk.iso" $(BUILD)/$@.tmp
50+
4251
$(BUILD)/boot.efi: ../Cargo.lock $(SRC_DIR)/Cargo.toml $(SRC_DIR)/src/*
4352
mkdir -p $(BUILD)
4453
cargo rustc \

0 commit comments

Comments
 (0)