aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/build_armhf.sh
blob: 837561f83cf0eb5928d10f5643eb5fb04622c028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -e

export TARGET_ARCH=arm-linux-gnueabihf
if [ "${CC#clang}" != "${CC}" ] ; then
	export CC="clang --target=${TARGET_ARCH}"
	export CXX="clang++ --target=${TARGET_ARCH}"
else
	export CC="${TARGET_ARCH}-gcc"
	export CXX="${TARGET_ARCH}-g++"
fi
export CPPFLAGS="-I/usr/include/${TARGET_ARCH}/dpdk"
export CFLAGS="-march=armv7-a"
export CXXFLAGS="-march=armv7-a"

exec "$(dirname "$0")"/build.sh