- 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