mirror of https://github.com/acidanthera/audk.git
DuetPkg: Update create boot disk script to not modify bootsect.com
Previously the script would modify DuetPkg/BootSector/bin/bootsect.com. Now a temporary file is used in place of bootsect.com. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11122 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dccf78f0a2
commit
8df0bd287c
|
@ -125,9 +125,10 @@ then
|
||||||
|
|
||||||
## Linux version of GenBootSector has not pass build yet.
|
## Linux version of GenBootSector has not pass build yet.
|
||||||
$BASETOOLS_DIR/GnuGenBootSector -i $EFI_BOOT_MEDIA -o $EFI_BOOT_MEDIA.bs0
|
$BASETOOLS_DIR/GnuGenBootSector -i $EFI_BOOT_MEDIA -o $EFI_BOOT_MEDIA.bs0
|
||||||
cp $EFI_BOOT_MEDIA.bs0 $EFI_BOOT_MEDIA.bs1
|
cp $BOOTSECTOR_BIN_DIR/bootsect.com $EFI_BOOT_MEDIA.bs1
|
||||||
$BASETOOLS_DIR/BootSectImage -g $EFI_BOOT_MEDIA.bs1 $BOOTSECTOR_BIN_DIR/bootsect.com
|
$BASETOOLS_DIR/BootSectImage -g $EFI_BOOT_MEDIA.bs0 $EFI_BOOT_MEDIA.bs1
|
||||||
$BASETOOLS_DIR/GnuGenBootSector -o $EFI_BOOT_MEDIA -i $BOOTSECTOR_BIN_DIR/bootsect.com
|
$BASETOOLS_DIR/GnuGenBootSector -o $EFI_BOOT_MEDIA -i $EFI_BOOT_MEDIA.bs1
|
||||||
|
rm $EFI_BOOT_MEDIA.bs[0-1]
|
||||||
echo Done.
|
echo Done.
|
||||||
else
|
else
|
||||||
echo "Wrong FAT type" $4 "for floppy!"
|
echo "Wrong FAT type" $4 "for floppy!"
|
||||||
|
|
Loading…
Reference in New Issue