aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/build_ppc64el.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/build_ppc64el.sh')
-rwxr-xr-xscripts/ci/build_ppc64el.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/ci/build_ppc64el.sh b/scripts/ci/build_ppc64el.sh
new file mode 100755
index 000000000..ca094c901
--- /dev/null
+++ b/scripts/ci/build_ppc64el.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+
+export TARGET_ARCH=powerpc64le-linux-gnu
+if [ "${CC#clang}" != "${CC}" ] ; then
+ export CC="clang --target=${TARGET_ARCH}"
+ export CXX="clang++ --target=${TARGET_ARCH}"
+ # DPDK clang build broken
+ export CONF="${CONF} --disable-dpdk"
+else
+ export CC="${TARGET_ARCH}-gcc"
+ export CXX="${TARGET_ARCH}-g++"
+fi
+export CPPFLAGS="-I/usr/include/${TARGET_ARCH}/dpdk"
+
+exec "$(dirname "$0")"/build.sh