forked from wolfSSL/wolfssl
warning on empty translation units ignored, move cflags to Makefile
This commit is contained in:
@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
|
|||||||
# Comment this out to disable code in RIOT that does safety checking
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
CFLAGS += -DDEVELHELP
|
CFLAGS += -DDEVELHELP -DWOLFSSL_RIOT_OS
|
||||||
|
|
||||||
|
WERROR=0
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -20,9 +20,6 @@ wolf_riot_cleanup () {
|
|||||||
}
|
}
|
||||||
trap wolf_riot_cleanup INT TERM
|
trap wolf_riot_cleanup INT TERM
|
||||||
|
|
||||||
BACKUPCFLAGS=${CFLAGS}
|
|
||||||
export CFLAGS="${CFLAGS} -DWOLFSSL_RIOT_OS"
|
|
||||||
|
|
||||||
# copy the necessary files to this directory
|
# copy the necessary files to this directory
|
||||||
wolf_riot_setup
|
wolf_riot_setup
|
||||||
|
|
||||||
@ -40,7 +37,6 @@ fi
|
|||||||
./bin/native/wolfbenchmark.elf
|
./bin/native/wolfbenchmark.elf
|
||||||
|
|
||||||
# confirm success or failure
|
# confirm success or failure
|
||||||
export CFLAGS="${BACKUPCFLAGS}"
|
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT != 0 ] && echo "TEST FAILED" && wolf_riot_cleanup &&
|
[ $RESULT != 0 ] && echo "TEST FAILED" && wolf_riot_cleanup &&
|
||||||
echo "cleanup done" && exit 2
|
echo "cleanup done" && exit 2
|
||||||
|
@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
|
|||||||
# Comment this out to disable code in RIOT that does safety checking
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
CFLAGS += -DDEVELHELP
|
CFLAGS += -DDEVELHELP -DNO_MAIN_DRIVER -DWOLFSSL_RIOT_OS
|
||||||
|
|
||||||
|
WERROR=0
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -26,9 +26,6 @@ wolf_riot_cleanup () {
|
|||||||
}
|
}
|
||||||
trap wolf_riot_cleanup INT TERM
|
trap wolf_riot_cleanup INT TERM
|
||||||
|
|
||||||
BACKUPCFLAGS=${CFLAGS}
|
|
||||||
export CFLAGS="${CFLAGS} -DNO_MAIN_DRIVER -DWOLFSSL_RIOT_OS"
|
|
||||||
|
|
||||||
# copy the necessary files to this directory
|
# copy the necessary files to this directory
|
||||||
wolf_riot_setup
|
wolf_riot_setup
|
||||||
|
|
||||||
@ -45,7 +42,6 @@ fi
|
|||||||
# run the test
|
# run the test
|
||||||
RESULT=`./bin/native/wolftestsuite.elf`
|
RESULT=`./bin/native/wolftestsuite.elf`
|
||||||
# confirm success or failure
|
# confirm success or failure
|
||||||
export CFLAGS="${BACKUPCFLAGS}"
|
|
||||||
errstring="error"
|
errstring="error"
|
||||||
if test "${RESULT#*$errstring}" != "$RESULT"
|
if test "${RESULT#*$errstring}" != "$RESULT"
|
||||||
then
|
then
|
||||||
|
@ -10,7 +10,9 @@ RIOTBASE ?= $(CURDIR)/../../../../
|
|||||||
# Comment this out to disable code in RIOT that does safety checking
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
CFLAGS += -DDEVELHELP
|
CFLAGS += -DDEVELHELP -DWOLFSSL_RIOT_OS
|
||||||
|
|
||||||
|
WERROR=0
|
||||||
|
|
||||||
# Change this to 0 show compiler invocation lines by default:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
QUIET ?= 1
|
QUIET ?= 1
|
||||||
|
@ -18,10 +18,6 @@ wolf_riot_cleanup () {
|
|||||||
rm Makefile
|
rm Makefile
|
||||||
}
|
}
|
||||||
|
|
||||||
BACKUPCFLAGS=${CFLAGS}
|
|
||||||
export CFLAGS="${CFLAGS} -DWOLFSSL_RIOT_OS"
|
|
||||||
|
|
||||||
|
|
||||||
# copy the necessary files to this directory
|
# copy the necessary files to this directory
|
||||||
wolf_riot_setup
|
wolf_riot_setup
|
||||||
|
|
||||||
@ -43,7 +39,6 @@ fi
|
|||||||
RESULT=`./bin/native/testwolfcrypt.elf`
|
RESULT=`./bin/native/testwolfcrypt.elf`
|
||||||
|
|
||||||
# confirm success or failure
|
# confirm success or failure
|
||||||
export CFLAGS="${BACKUPCFLAGS}"
|
|
||||||
errstring="error"
|
errstring="error"
|
||||||
if test "${RESULT#*$errstring}" != "$RESULT"
|
if test "${RESULT#*$errstring}" != "$RESULT"
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user