tools/testbuild.sh: Call makefunc with JOPTION directly
Also call configure.sh with JOPTION to enable parallel build Change-Id: I32c4e77fb30c40d8d424159cc0871b8c3e3f10b6 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
b5dc83748c
commit
102c4c25e2
@ -158,7 +158,7 @@ blacklist=`grep "^-" $testfile || true`
|
|||||||
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }
|
||||||
|
|
||||||
function makefunc {
|
function makefunc {
|
||||||
if ! ${MAKE} ${MAKE_FLAGS} "${EXTRA_FLAGS}" $@ 1>/dev/null; then
|
if ! ${MAKE} ${MAKE_FLAGS} "${EXTRA_FLAGS}" ${JOPTION} $@ 1>/dev/null; then
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -172,7 +172,7 @@ function distclean {
|
|||||||
git -C $nuttx clean -xfdq
|
git -C $nuttx clean -xfdq
|
||||||
git -C $APPSDIR clean -xfdq
|
git -C $APPSDIR clean -xfdq
|
||||||
else
|
else
|
||||||
makefunc ${JOPTION} distclean
|
makefunc distclean
|
||||||
|
|
||||||
# Remove .version manually because this file is shipped with
|
# Remove .version manually because this file is shipped with
|
||||||
# the release package and then distclean has to keep it
|
# the release package and then distclean has to keep it
|
||||||
@ -199,7 +199,7 @@ function distclean {
|
|||||||
|
|
||||||
function configure {
|
function configure {
|
||||||
echo " Configuring..."
|
echo " Configuring..."
|
||||||
if ! ./tools/configure.sh ${HOPTION} $config; then
|
if ! ./tools/configure.sh ${HOPTION} $config ${JOPTION}; then
|
||||||
fail=1
|
fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ function configure {
|
|||||||
|
|
||||||
function build {
|
function build {
|
||||||
echo " Building NuttX..."
|
echo " Building NuttX..."
|
||||||
makefunc ${JOPTION}
|
makefunc
|
||||||
|
|
||||||
# Ensure defconfig in the canonical form
|
# Ensure defconfig in the canonical form
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user