]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/build.sh
UnixPkg: Fix build for Linux
[mirror_edk2.git] / UnixPkg / build.sh
index a77a5973a06cc4849aad654df8acbeaf8a5cb82f..2498914e1c8b9d3af9e5ba3d0e0c20896d637524 100755 (executable)
@@ -41,6 +41,7 @@ fi
 # Pick a default tool type for a given OS
 #
 TARGET_TOOLS=MYTOOLS
+NETWORK_SUPPORT=
 case `uname` in
   CYGWIN*) echo Cygwin not fully supported yet. ;;
   Darwin*)
@@ -52,6 +53,7 @@ case `uname` in
       else
         TARGET_TOOLS=XCODE32
       fi
+      NETWORK_SUPPORT="-D NETWORK_SUPPORT"
       ;;
   Linux*) TARGET_TOOLS=ELFGCC ;;
 
@@ -115,6 +117,6 @@ done
 #
 echo $PATH
 echo `which build`
-build -p $WORKSPACE/UnixPkg/UnixPkg.dsc         -a IA32 -t $TARGET_TOOLS -n 3 $1 $2 $3 $4 $5 $6 $7 $8
+build -p $WORKSPACE/UnixPkg/UnixPkg.dsc         -a IA32 -t $TARGET_TOOLS $NETWORK_SUPPORT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
 exit $?