summaryrefslogtreecommitdiff
path: root/UnixPkg/build64.sh
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-05 08:08:47 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-03-05 08:08:47 +0000
commit692477d411ec4e489caa04308ab6ed12edb3646d (patch)
treea3650c669a7e91f9dbb07c0e7fe8edc7b9b00ce9 /UnixPkg/build64.sh
parent2dcef689963d9f975b0d792e677c2d43cf3cc995 (diff)
downloadedk2-platforms-692477d411ec4e489caa04308ab6ed12edb3646d.tar.xz
UnixPkg: Fix build for Linux
UnixPkg/UnixSnpDxe is currently BSD/OS X specific. Therefore we only build it if "-D NETWORK_SUPPORT" is used on the build command line. UnixPkg/build.sh and UnixPkg/build64.sh are updated to automatically define NETWORK_SUPPORT if building on OS X. <net/if_dl.h> and <net/bpf.h> are also only included in UnixPkg/Include/Common/UnixInclude.h if __APPLE__ is defined. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11346 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/build64.sh')
-rwxr-xr-xUnixPkg/build64.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/UnixPkg/build64.sh b/UnixPkg/build64.sh
index 24a7fe2a6e..22e9c08ead 100755
--- a/UnixPkg/build64.sh
+++ b/UnixPkg/build64.sh
@@ -42,6 +42,7 @@ fi
#
TARGET_TOOLS=MYTOOLS
UNIXPKG_TOOLS=GCC44
+NETWORK_SUPPORT=
case `uname` in
CYGWIN*) echo Cygwin not fully supported yet. ;;
Darwin*)
@@ -54,6 +55,7 @@ case `uname` in
TARGET_TOOLS=XCODE32
UNIXPKG_TOOLS=UNIXPKG
fi
+ NETWORK_SUPPORT="-D NETWORK_SUPPORT"
;;
Linux*) TARGET_TOOLS=ELFGCC ;;
@@ -120,7 +122,7 @@ done
echo $PATH
echo `which build`
build -p $WORKSPACE/UnixPkg/UnixPkgX64.dsc -a X64 -t $TARGET_TOOLS -D SEC_ONLY -n 3 $1 $2 $3 $4 $5 $6 $7 $8 modules
-build -p $WORKSPACE/UnixPkg/UnixPkgX64.dsc -a X64 -t $UNIXPKG_TOOLS -n 3 $1 $2 $3 $4 $5 $6 $7 $8
+build -p $WORKSPACE/UnixPkg/UnixPkgX64.dsc -a X64 -t $UNIXPKG_TOOLS $NETWORK_SUPPORT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
cp $WORKSPACE/Build/UnixX64/DEBUG_"$TARGET_TOOLS"/X64/SecMain $WORKSPACE/Build/UnixX64/DEBUG_"$UNIXPKG_TOOLS"/X64
exit $?