build: Fix testbuild.sh artifact copy on macOS

xargs for macOS does not support the '-a/--file-arg' flag so
build artifacts were not getting stored.  This change passes it in
via stdin which is more portable.

Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
Brennan Ashton 2020-10-28 20:06:40 -07:00 committed by Xiang Xiao
parent 13c0debec7
commit e56a7146c2

View File

@ -258,7 +258,7 @@ function build {
if [ ${SAVEARTIFACTS} -eq 1 ]; then
artifactconfigdir=$ARTIFACTDIR/$(echo $config | sed "s/:/\//")/
mkdir -p $artifactconfigdir
xargs -a $nuttx/nuttx.manifest cp -t $artifactconfigdir
xargs -I "{}" cp "{}" $artifactconfigdir < $nuttx/nuttx.manifest
fi
# Ensure defconfig in the canonical form