X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=DuetPkg%2FCreateBootDisk.sh;h=ba71bc17c1f1ea0b78c98e1c80b90671b2fbdc0e;hb=fbdd3fff117624a7090a0da957a8cf29e2b7659c;hp=bfe1abd83e6872ff533d3dad5126aff7bfabacd3;hpb=e843cdd7d9ed9e72e0df61f46e5a073a0797615e;p=mirror_edk2.git diff --git a/DuetPkg/CreateBootDisk.sh b/DuetPkg/CreateBootDisk.sh index bfe1abd83e..ba71bc17c1 100755 --- a/DuetPkg/CreateBootDisk.sh +++ b/DuetPkg/CreateBootDisk.sh @@ -1,7 +1,21 @@ #! /bin/sh +## @file +# +# Copyright (c) 2010 Intel Corporation. All rights reserved.
+# +# 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 @@ -19,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