Skip to content

Commit 027b940

Browse files
committed
Support flashing using fpt.efi without fparts.txt
1 parent 7e70d96 commit 027b940

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

res/firmware.nsh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,13 @@ if "%2" == "bios" then
7373

7474
# Flash with FPT and exit if possible
7575
if exist fpt.efi then
76-
fpt.efi -P "%1\fparts.txt" -F "%1\firmware.rom"
77-
exit %lasterror%
76+
if exist fparts.txt then
77+
fpt.efi -P "%1\fparts.txt" -F "%1\firmware.rom"
78+
exit %lasterror%
79+
else
80+
fpt.efi -F "%1\firmware.rom"
81+
exit %lasterror%
82+
endif
7883
endif
7984

8085
# Flash with efiflash and exit if possible

0 commit comments

Comments
 (0)