export CFLAGS=$default_cflags
export LDFLAGS=$default_ldflags
unset DPDK_MESON_OPTIONS
- command -v $targetcc >/dev/null 2>&1 || return 1
- DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p')
+ if command -v $targetcc >/dev/null 2>&1 ; then
+ DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p')
+ else # toolchain not yet in PATH: its name should be enough
+ DPDK_TARGET=$targetcc
+ fi
+ # config input: $DPDK_TARGET
. $srcdir/devtools/load-devel-config
+ # config output: $DPDK_MESON_OPTIONS, $PATH, $PKG_CONFIG_PATH, etc
+ command -v $targetcc >/dev/null 2>&1 || return 1
}
config () # <dir> <builddir> <meson options>
unset CC
done
+# ppc configurations
+for f in $srcdir/config/ppc/ppc* ; do
+ build build-$(basename $f | cut -d'-' -f-2) $f $use_shared
+done
+
# Test installation of the x86-default target, to be used for checking
# the sample apps build using the pkg-config file for cflags and libs
build_path=$(readlink -f $builds_dir/build-x86-default)