]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/build.sh
ArmPlatformPkg: Introduce ArmPlatformGlobalVariableLib
[mirror_edk2.git] / BeagleBoardPkg / build.sh
index 8eaa1dbdfd14192359a1da99e72d0dacd3073090..6f48ebd78fc09dad4c571ffa7e6541b164ec50f0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
-# Copyright (c) 2008 - 2009, Apple, Inc.  All rights reserved.
-# All rights reserved. This program and the accompanying materials
+# Copyright (c) 2008 - 2009, Apple Inc. 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
@@ -59,7 +59,7 @@ case `uname` in
       ;;
   Linux*)  
       # Not tested
-      TARGET_TOOLS=ELFGCC 
+      TARGET_TOOLS=ARMGCC 
       ;;
   Darwin*) 
       Major=$(uname -r | cut -f 1 -d '.')
@@ -76,7 +76,8 @@ esac
 TARGET=DEBUG
 for arg in "$@"
 do
-  if [[ $arg == RELEASE ]]; then
+  if [[ $arg == RELEASE ]]; 
+  then
     TARGET=RELEASE
   fi
 done
@@ -97,7 +98,12 @@ fi
 #
 # Build the edk2 BeagleBoard code
 #
-build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET $1 $2 $3 $4 $5 $6 $7 $8
+if [[ $TARGET == RELEASE ]]; then
+  build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET -D DEBUG_TARGET=RELEASE $2 $3 $4 $5 $6 $7 $8
+else
+  build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET $1 $2 $3 $4 $5 $6 $7 $8
+fi
+
 
 for arg in "$@"
 do