summaryrefslogtreecommitdiffstats
path: root/DuetPkg/CreateBootDisk.sh
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-18 02:36:52 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-18 02:36:52 +0000
commitab9cb4b1fd901170cc03b134066066b064909244 (patch)
treeda654f36c528d109dc36aacc61dce678dfe2a544 /DuetPkg/CreateBootDisk.sh
parent18e78927637dade4139729bed721ad7b4aae25ed (diff)
downloadedk2-ab9cb4b1fd901170cc03b134066066b064909244.tar.gz
edk2-ab9cb4b1fd901170cc03b134066066b064909244.tar.bz2
edk2-ab9cb4b1fd901170cc03b134066066b064909244.zip
Separate IA32/X64 architecture into two DSC file to avoid the their output mixup.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10272 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/CreateBootDisk.sh')
-rwxr-xr-xDuetPkg/CreateBootDisk.sh47
1 files changed, 31 insertions, 16 deletions
diff --git a/DuetPkg/CreateBootDisk.sh b/DuetPkg/CreateBootDisk.sh
index 0903805576..ba71bc17c1 100755
--- a/DuetPkg/CreateBootDisk.sh
+++ b/DuetPkg/CreateBootDisk.sh
@@ -1,21 +1,21 @@
-#! /bin/sh
-
-## @file
-#
-# Copyright (c) 2010 Intel Corporation. All rights reserved.<BR>
-#
-# This program and the accompanying materials
-# are licensed and made available under the terms and conditions of the BSD License
-# which accompanies this distribution. The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-#
-#
-##
+#! /bin/sh
+
+## @file
+#
+# Copyright (c) 2010 Intel Corporation. All rights reserved.<BR>
+#
+# This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+#
+##
# Set up environment at fisrt.
-export BUILD_DIR=$WORKSPACE/Build/DuetPkg/DEBUG_UNIXGCC
+
export BASETOOLS_DIR=$WORKSPACE/Conf/BaseToolsSource/Source/C/bin
export BOOTSECTOR_BIN_DIR=$WORKSPACE/DuetPkg/BootSector/bin
export DISK_LABEL=DUET
@@ -33,6 +33,21 @@ then
PROCESS_MARK=FALSE
fi
+case "$5" in
+ IA32)
+ export PROCESSOR=IA32
+ ;;
+ X64)
+ export PROCESSOR=X64
+ ;;
+ *)
+ echo Invalid Architecture string, should be only IA32 or X64
+ return 1
+esac
+
+export BUILD_DIR=$WORKSPACE/Build/DuetPkg$PROCESSOR/DEBUG_UNIXGCC
+
+
export EFI_BOOT_MEDIA=$2
export EFI_BOOT_DEVICE=$3