Merge pull request #15320 from benpicco/tools/insufficient_memory-nodocker
tools/insufficient_memory: restore build with no docker
This commit is contained in:
commit
9222b72f8b
@ -7,6 +7,8 @@
|
|||||||
# directory for more details.
|
# directory for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
MAKE_ARGS="-j4"
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
if [ -z $1 ]; then
|
||||||
echo "usage: $0 <board>"
|
echo "usage: $0 <board>"
|
||||||
exit 1
|
exit 1
|
||||||
@ -30,21 +32,27 @@ else
|
|||||||
CRESET=
|
CRESET=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "--no-docker" ]; then
|
||||||
|
LOCAL_MAKE_ARGS=${MAKE_ARGS}
|
||||||
|
shift 1
|
||||||
|
else
|
||||||
|
# Use a standardized build within Docker and with minimal output
|
||||||
|
export DOCKER_MAKE_ARGS=${MAKE_ARGS}
|
||||||
|
export BUILD_IN_DOCKER=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
export RIOT_CI_BUILD=1
|
||||||
|
|
||||||
BOARD=$1
|
BOARD=$1
|
||||||
RIOTBASE=$(dirname $0)/../../..
|
RIOTBASE=$(dirname $0)/../../..
|
||||||
APPLICATIONS+=examples/*/Makefile
|
APPLICATIONS+=examples/*/Makefile
|
||||||
APPLICATIONS+=" "
|
APPLICATIONS+=" "
|
||||||
APPLICATIONS+=tests/*/Makefile
|
APPLICATIONS+=tests/*/Makefile
|
||||||
|
|
||||||
# Use a standardized build within Docker and with minimal output
|
|
||||||
export BUILD_IN_DOCKER=1
|
|
||||||
export DOCKER_MAKE_ARGS="-j4"
|
|
||||||
export RIOT_CI_BUILD=1
|
|
||||||
|
|
||||||
for app in ${APPLICATIONS}; do
|
for app in ${APPLICATIONS}; do
|
||||||
application=$(dirname ${app})
|
application=$(dirname ${app})
|
||||||
printf "${CNORMAL}%-40s${CRESET}" ${application}
|
printf "${CNORMAL}%-40s${CRESET}" ${application}
|
||||||
output=$(make BOARD=${BOARD} -C ${RIOTBASE}/${application} 2>&1)
|
output=$(make BOARD=${BOARD} ${LOCAL_MAKE_ARGS} -C ${RIOTBASE}/${application} 2>&1)
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
if echo ${output} | grep -e overflowed -e "not within region" > /dev/null; then
|
if echo ${output} | grep -e overflowed -e "not within region" > /dev/null; then
|
||||||
printf "${CBIG}%s${CRESET}\n" "too big"
|
printf "${CBIG}%s${CRESET}\n" "too big"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user