new file mode 100755
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+cd "$(dirname "$0")"/../..
+./bootstrap
+./configure \
+ --host=${TARGET_ARCH} --build=x86_64-linux-gnu \
+ --enable-dpdk \
+ ${CONF}
+
+make -j 8
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-TARGET_ARCH=aarch64-linux-gnu
+export TARGET_ARCH=aarch64-linux-gnu
if [ "${CC#clang}" != "${CC}" ] ; then
export CC="clang --target=${TARGET_ARCH}"
export CXX="clang++ --target=${TARGET_ARCH}"
@@ -11,11 +11,4 @@ else
fi
export CPPFLAGS="-I/usr/include/${TARGET_ARCH}/dpdk"
-cd "$(dirname "$0")"/../..
-./bootstrap
-./configure \
- --host=${TARGET_ARCH} --build=x86_64-linux-gnu \
- --enable-dpdk \
- ${CONF}
-
-make -j 8
+exec "$(dirname "$0")"/build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-TARGET_ARCH=arm-linux-gnueabihf
+export TARGET_ARCH=arm-linux-gnueabihf
if [ "${CC#clang}" != "${CC}" ] ; then
export CC="clang --target=${TARGET_ARCH}"
export CXX="clang++ --target=${TARGET_ARCH}"
@@ -13,11 +13,4 @@ export CPPFLAGS="-I/usr/include/${TARGET_ARCH}/dpdk"
export CFLAGS="-march=armv7-a"
export CXXFLAGS="-march=armv7-a"
-cd "$(dirname "$0")"/../..
-./bootstrap
-./configure \
- --host=${TARGET_ARCH} --build=x86_64-linux-gnu \
- --enable-dpdk \
- ${CONF}
-
-make -j 8
+exec "$(dirname "$0")"/build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-TARGET_ARCH=i686-linux-gnu
+export TARGET_ARCH=i686-linux-gnu
if [ "${CC#clang}" != "${CC}" ] ; then
export CC="clang --target=${TARGET_ARCH}"
export CXX="clang++ --target=${TARGET_ARCH}"
@@ -12,11 +12,4 @@ else
fi
export CPPFLAGS="-I/usr/include/i386-linux-gnu/dpdk"
-cd "$(dirname "$0")"/../..
-./bootstrap
-./configure \
- --host=${TARGET_ARCH} --build=x86_64-linux-gnu \
- --enable-dpdk \
- ${CONF}
-
-make -j 8
+exec "$(dirname "$0")"/build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-TARGET_ARCH=powerpc-linux-gnu
+export TARGET_ARCH=powerpc-linux-gnu
if [ "${CC#clang}" != "${CC}" ] ; then
export CC="clang --target=${TARGET_ARCH}"
export CXX="clang++ --target=${TARGET_ARCH}"
@@ -9,11 +9,7 @@ else
export CC="${TARGET_ARCH}-gcc"
export CXX="${TARGET_ARCH}-g++"
fi
+# No DPDK on PowerPC
+export CONF="${CONF} --disable-dpdk"
-cd "$(dirname "$0")"/../..
-./bootstrap
-./configure \
- --host=${TARGET_ARCH} --build=x86_64-linux-gnu \
- ${CONF}
-
-make -j 8
+exec "$(dirname "$0")"/build.sh
@@ -5,10 +5,4 @@ if [ "${CC#clang}" != "${CC}" ] ; then
export CXX="clang++"
fi
-cd "$(dirname "$0")"/../..
-./bootstrap
-./configure \
- --enable-dpdk \
- ${CONF}
-
-make -j 8
+exec "$(dirname "$0")"/build.sh