warning on empty translation units ignored, move cflags to Makefile

This commit is contained in:
kaleb-himes
2016-12-03 11:55:24 -07:00
parent d2aef9a82a
commit ddeb9da502
6 changed files with 9 additions and 16 deletions

View File

@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
CFLAGS += -DDEVELHELP
CFLAGS += -DDEVELHELP -DWOLFSSL_RIOT_OS
WERROR=0
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

View File

@ -20,9 +20,6 @@ wolf_riot_cleanup () {
}
trap wolf_riot_cleanup INT TERM
BACKUPCFLAGS=${CFLAGS}
export CFLAGS="${CFLAGS} -DWOLFSSL_RIOT_OS"
# copy the necessary files to this directory
wolf_riot_setup
@ -40,7 +37,6 @@ fi
./bin/native/wolfbenchmark.elf
# confirm success or failure
export CFLAGS="${BACKUPCFLAGS}"
RESULT=$?
[ $RESULT != 0 ] && echo "TEST FAILED" && wolf_riot_cleanup &&
echo "cleanup done" && exit 2

View File

@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
CFLAGS += -DDEVELHELP
CFLAGS += -DDEVELHELP -DNO_MAIN_DRIVER -DWOLFSSL_RIOT_OS
WERROR=0
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

View File

@ -26,9 +26,6 @@ wolf_riot_cleanup () {
}
trap wolf_riot_cleanup INT TERM
BACKUPCFLAGS=${CFLAGS}
export CFLAGS="${CFLAGS} -DNO_MAIN_DRIVER -DWOLFSSL_RIOT_OS"
# copy the necessary files to this directory
wolf_riot_setup
@ -45,7 +42,6 @@ fi
# run the test
RESULT=`./bin/native/wolftestsuite.elf`
# confirm success or failure
export CFLAGS="${BACKUPCFLAGS}"
errstring="error"
if test "${RESULT#*$errstring}" != "$RESULT"
then

View File

@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
CFLAGS += -DDEVELHELP
CFLAGS += -DDEVELHELP -DWOLFSSL_RIOT_OS
WERROR=0
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

View File

@ -18,10 +18,6 @@ wolf_riot_cleanup () {
rm Makefile
}
BACKUPCFLAGS=${CFLAGS}
export CFLAGS="${CFLAGS} -DWOLFSSL_RIOT_OS"
# copy the necessary files to this directory
wolf_riot_setup
@ -43,7 +39,6 @@ fi
RESULT=`./bin/native/testwolfcrypt.elf`
# confirm success or failure
export CFLAGS="${BACKUPCFLAGS}"
errstring="error"
if test "${RESULT#*$errstring}" != "$RESULT"
then