Skip to content

Commit 175e983

Browse files
committed
fixup! Build Rufus compatible ISO
1 parent f489b08 commit 175e983

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

framework_uefi/Makefile

+12-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi
4141
mcopy -i $@.tmp $< ::efi/boot/bootx64.efi
4242
mv $@.tmp $@
4343

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 shellx64.efi $@.tmp/efi/boot/bootx64.efi
49-
genisoimage -v -V "UEFI SHELL with fwk.efi" -JR -o "UEFI-Shell-fwk.iso" $(BUILD)/$@.tmp
44+
$(BUILD)/shellx64.efi:
45+
wget https://github.com/pbatard/UEFI-Shell/releases/download/24H2/shellx64.efi -O $@
46+
47+
$(BUILD)/UEFI-Shell-fwk.iso: $(BUILD)/boot.efi $(BUILD)/shellx64.efi
48+
mkdir -p $(BUILD)/$@.tmp/efi/boot
49+
cp $(BUILD)/boot.efi $(BUILD)/$@.tmp/efi/boot/fwk.efi
50+
cp $(BUILD)/shellx64.efi $(BUILD)/$@.tmp/efi/boot/bootx64.efi
51+
genisoimage -v \
52+
-V "UEFI SHELL with fwk.efi" \
53+
-JR \
54+
-o "$(BUILD)/UEFI-Shell-fwk.iso" \
55+
$(BUILD)/$@.tmp
5056

5157
$(BUILD)/boot.efi: ../Cargo.lock $(SRC_DIR)/Cargo.toml $(SRC_DIR)/src/*
5258
mkdir -p $(BUILD)

0 commit comments

Comments
 (0)