summaryrefslogtreecommitdiff
path: root/DuetPkg
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-06 06:06:54 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-06 06:06:54 +0000
commit8df0bd287cba15b61f7aee52522a922799bb9efc (patch)
tree5750556641c6806f23c8e565b7eafbace556ee5b /DuetPkg
parentdccf78f0a29c44485f2bd5eef4398b6be93ee81b (diff)
downloadedk2-8df0bd287cba15b61f7aee52522a922799bb9efc.zip
edk2-8df0bd287cba15b61f7aee52522a922799bb9efc.tar.gz
edk2-8df0bd287cba15b61f7aee52522a922799bb9efc.tar.bz2
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
Diffstat (limited to 'DuetPkg')
-rwxr-xr-xDuetPkg/CreateBootDisk.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/DuetPkg/CreateBootDisk.sh b/DuetPkg/CreateBootDisk.sh
index 69a6420..8d8543f 100755
--- a/DuetPkg/CreateBootDisk.sh
+++ b/DuetPkg/CreateBootDisk.sh
@@ -125,9 +125,10 @@ then
## Linux version of GenBootSector has not pass build yet.
$BASETOOLS_DIR/GnuGenBootSector -i $EFI_BOOT_MEDIA -o $EFI_BOOT_MEDIA.bs0
- cp $EFI_BOOT_MEDIA.bs0 $EFI_BOOT_MEDIA.bs1
- $BASETOOLS_DIR/BootSectImage -g $EFI_BOOT_MEDIA.bs1 $BOOTSECTOR_BIN_DIR/bootsect.com
- $BASETOOLS_DIR/GnuGenBootSector -o $EFI_BOOT_MEDIA -i $BOOTSECTOR_BIN_DIR/bootsect.com
+ cp $BOOTSECTOR_BIN_DIR/bootsect.com $EFI_BOOT_MEDIA.bs1
+ $BASETOOLS_DIR/BootSectImage -g $EFI_BOOT_MEDIA.bs0 $EFI_BOOT_MEDIA.bs1
+ $BASETOOLS_DIR/GnuGenBootSector -o $EFI_BOOT_MEDIA -i $EFI_BOOT_MEDIA.bs1
+ rm $EFI_BOOT_MEDIA.bs[0-1]
echo Done.
else
echo "Wrong FAT type" $4 "for floppy!"