]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/PostBuild.sh
DuetPkg scripts: Support building with GCC45 - GCC49
[mirror_edk2.git] / DuetPkg / PostBuild.sh
index 9d936e661f2e794733feb4f2d7738cb97cab24fe..f032de3a9de4f092a2daaf7d2d01bbba802206c3 100755 (executable)
@@ -6,7 +6,7 @@
 #  and platform building, so just use a sh file to do post build commands.
 #  Originally, following post building command is for EfiLoader module.
 #
-#  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+#  Copyright (c) 2010 - 2016, 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
 #
 ##
 
-
-
+if [ -z "$EDK_TOOLS_PATH" ]
+then
 export BASETOOLS_DIR=$WORKSPACE/Conf/BaseToolsSource/Source/C/bin
+else
+export BASETOOLS_DIR=$EDK_TOOLS_PATH/Source/C/bin
+fi
+
 export BOOTSECTOR_BIN_DIR=$WORKSPACE/DuetPkg/BootSector/bin
 export PROCESSOR=""
 if [ \
@@ -49,11 +53,11 @@ case "$2" in
    UNIXGCC)
      export TOOLTAG=UNIXGCC
      ;;
-   GCC44)
-     export TOOLTAG=GCC44
+   GCC4*)
+     export TOOLTAG=$2
      ;;
    *)
-     echo Invalid tool tag, should be only UNIXGCC or GCC44
+     echo Invalid tool tag, should be only UNIXGCC or GCC4\*
      return 1
 esac