]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/build64.sh
Add an option to build the GccShell. './build.sh shell' or './build64.sh' will buid...
[mirror_edk2.git] / UnixPkg / build64.sh
index 6fc9f0c8674f84ffa53e12948b38490ad417eba0..f2a6927d5723092347bbdf92207dfd0c46a62abb 100755 (executable)
@@ -53,7 +53,7 @@ case `uname` in
     
 esac
 
-BUILD_ROOT_ARCH=$WORKSPACE/Build/Unix/DEBUG_"$TARGET_TOOLS"/X64
+BUILD_ROOT_ARCH=$WORKSPACE/Build/UnixX64/DEBUG_"$TARGET_TOOLS"/X64
 
 if  [[ ! -f `which build` || ! -f `which GenFv` ]];
 then
@@ -80,7 +80,7 @@ do
         # This .gdbinit script sets a breakpoint that loads symbols for the PE/COFFEE
         # images that get loaded in SecMain
         #
-        cp $WORKSPACE/UnixPkg/.gdbinit $WORKSPACE/Build/Unix/DEBUG_"$TARGET_TOOLS"/X64
+        cp $WORKSPACE/UnixPkg/.gdbinit $WORKSPACE/Build/UnixX64/DEBUG_"$TARGET_TOOLS"/X64
         ;;
     esac 
 
@@ -91,6 +91,12 @@ do
   if [[ $arg == cleanall ]]; then
     make -C $WORKSPACE/BaseTools clean  
   fi
+  if [[ $arg == shell ]]; then
+    build -p $WORKSPACE/GccShellPkg/GccShellPkg.dsc -a X64 -t $TARGET_TOOLS -n 3  $2 $3 $4 $5 $6 $7 $8
+    exit $?
+  fi
+  
+  
 done
 
 
@@ -99,8 +105,6 @@ done
 #
 echo $PATH
 echo `which build`
-# Uncomment this if you want to build the shell. 
-#build -p $WORKSPACE/EdkShellPkg/EdkShellPkg.dsc -a X64 -t $TARGET_TOOLS $1 $2 $3 $4 $5 $6 $7 $8
-build -p $WORKSPACE/UnixPkg/UnixPkg.dsc         -a X64 -t $TARGET_TOOLS $1 $2 $3 $4 $5 $6 $7 $8
+build -p $WORKSPACE/UnixPkg/UnixPkgX64.dsc      -a X64 -t $TARGET_TOOLS -n 3 $1 $2 $3 $4 $5 $6 $7 $8
 exit $?