Merge pull request #1039 from Kijewski/buildtest-insufficient-ram

make: add `BOARD_INSUFFICIENT_RAM` blacklisting
This commit is contained in:
Oleg Hahm 2014-05-24 14:49:09 +02:00
commit f2ee98c285
10 changed files with 22 additions and 66 deletions

View File

@ -42,7 +42,10 @@ buildtest:
\
rm -rf "$$BINDIRBASE"; \
for BOARD in $${BOARDS}; do \
$${ECHO} -n "Building for $${BOARD} .. "; \
RIOTNOLINK=$$(case ' $(BOARD_INSUFFICIENT_RAM) ' in *" $${BOARD} "*) echo 1; esac); \
$${ECHO} -n "Building for $${BOARD} "; \
[ -n "$${RIOTNOLINK}" ] && $${ECHO} -n "(no linking) "; \
$${ECHO} -n ".. "; \
LOG=$$(env -i \
HOME=$${HOME} \
PATH=$${PATH} \
@ -51,6 +54,7 @@ buildtest:
RIOTBOARD=$${RIOTBOARD} \
RIOTCPU=$${RIOTCPU} \
BINDIRBASE=$${BINDIRBASE} \
RIOTNOLINK=$${RIOTNOLINK} \
$(MAKE) -j$(NPROC) 2>&1 >/dev/null) ; \
if [ "$${?}" = "0" ]; then \
$${ECHO} "$${GREEN}success$${RESET}"; \

View File

@ -60,7 +60,7 @@ endif
# Feature test default CFLAGS and LINKFLAGS for the set compiled.
include $(RIOTBASE)/Makefile.cflags
# your binaries to link
# the binaries to link
BASELIBS += $(BINDIR)$(BOARD)_base.a
BASELIBS += $(BINDIR)${PROJECT}.a
BASELIBS += $(USEPKG:%=${BINDIR}%.a)
@ -70,11 +70,12 @@ BASELIBS += $(USEPKG:%=${BINDIR}%.a)
export ELFFILE ?= $(BINDIR)$(PROJECT).elf
export HEXFILE ?= $(ELFFILE:.elf=.hex)
## make script for your application. Build RIOT-base here!
## make script for the application
all: $(BINDIR)$(PROJECT).a
@echo "Building application $(PROJECT) for $(BOARD) w/ MCU $(MCU)."
"$(MAKE)" -C $(RIOTBOARD)/$(BOARD)
"$(MAKE)" -C $(RIOTBASE)
ifeq (,$(RIOTNOLINK))
ifeq ($(BUILDOSXNATIVE),1)
$(AD)$(LINK) $(UNDEF) -o $(ELFFILE) $(BASELIBS) $(LINKFLAGS) -Wl,-no_pie
else
@ -82,11 +83,7 @@ else
endif
$(AD)$(SIZE) $(ELFFILE)
$(AD)$(OBJCOPY) $(OFLAGS) $(ELFFILE) $(HEXFILE)
## your make rules
## Only basic example - modify it for larger applications!!
#$(BINDIR)/$(PROJECT).a: $(BINDIR)/$(PROJECT).o
# $(AR) -rc $(BINDIR)/project.a $(BINDIR)/$(PROJECT).o
endif
# string array of all names of c files in dir
SRC = $(wildcard *.c)

View File

@ -27,17 +27,12 @@ export RIOTBASE ?= $(CURDIR)/../..
# Change this to 0 show compiler invocation lines by default:
export QUIET ?= 1
BOARD_BLACKLIST := arduino-due chronos mbed_lpc1768 msb-430 msb-430h pttu \
redbee-econotag telosb udoo wsn430-v1_3b wsn430-v1_4 z1
# chronos: not enough RAM
BOARD_INSUFFICIENT_RAM := chronos msb-430h telosb wsn430-v1_3b wsn430-v1_4
BOARD_BLACKLIST := arduino-due mbed_lpc1768 msb-430 pttu redbee-econotag udoo z1
# mbed_lpc1768: see https://github.com/RIOT-OS/RIOT/issues/675
# msb-430: see https://github.com/RIOT-OS/RIOT/issues/658
# msb-430h: not enough RAM
# pttu: see https://github.com/RIOT-OS/RIOT/issues/659
# redbee-econotag: see https://github.com/RIOT-OS/RIOT/issues/676
# telosb: not enough RAM
# wsn430-v1_3b: not enough RAM
# wsn430-v1_4: not enough RAM
# z1: lacks RTC features
# Modules to include:

View File

@ -27,17 +27,12 @@ export RIOTBASE ?= $(CURDIR)/../..
# Change this to 0 show compiler invocation lines by default:
export QUIET ?= 1
BOARD_BLACKLIST := arduino-due chronos mbed_lpc1768 msb-430 msb-430h \
pttu redbee-econotag telosb udoo wsn430-v1_3b wsn430-v1_4 z1
# chronos: not enough RAM
BOARD_INSUFFICIENT_RAM := chronos msb-430h telosb wsn430-v1_3b wsn430-v1_4
BOARD_BLACKLIST := arduino-due mbed_lpc1768 msb-430 pttu redbee-econotag udoo z1
# mbed_lpc1768: see https://github.com/RIOT-OS/RIOT/issues/675
# msb-430: see https://github.com/RIOT-OS/RIOT/issues/658
# msb-430h: not enough RAM
# pttu: see https://github.com/RIOT-OS/RIOT/issues/659
# redbee-econotag: see https://github.com/RIOT-OS/RIOT/issues/676
# telosb: not enough RAM
# wsn430-v1_3b: not enough RAM
# wsn430-v1_4: not enough RAM
# z1: lacks RTC features
# Modules to include:

View File

@ -34,18 +34,11 @@ ifeq ($(shell $(CC) -Wno-cpp -E - 2>/dev/null >/dev/null dev/null ; echo $$?),0)
endif
endif
BOARD_BLACKLIST := arduino-due chronos mbed_lpc1768 msb-430 msb-430h \
pttu redbee-econotag telosb udoo wsn430-v1_3b wsn430-v1_4 z1
# chronos: not enough RAM
BOARD_INSUFFICIENT_RAM := chronos msb-430h redbee-econotag telosb wsn430-v1_3b wsn430-v1_4 z1
BOARD_BLACKLIST := arduino-due mbed_lpc1768 msb-430 pttu udoo
# mbed_lpc1768: see https://github.com/RIOT-OS/RIOT/issues/675
# msb-430: see https://github.com/RIOT-OS/RIOT/issues/658
# msb-430h: not enough RAM
# pttu: see https://github.com/RIOT-OS/RIOT/issues/659
# redbee-econotag: not enough RAM
# telosb: not enough RAM
# wsn430-v1_3b: not enough RAM
# wsn430-v1_4: not enough RAM
# z1: not enough RAM
# Modules to include:

View File

@ -1,17 +1,8 @@
export PROJECT = test_bloom
include ../Makefile.tests_common
BOARD_BLACKLIST := chronos mbed_lpc1768 msb-430 msb-430h redbee-econotag \
BOARD_INSUFFICIENT_RAM := chronos mbed_lpc1768 msb-430 msb-430h redbee-econotag \
telosb wsn430-v1_3b wsn430-v1_4 z1
# chronos: not enough RAM
# mbed_lpc1768: not enough RAM
# msb-430: not enough RAM
# msb-430h: not enough RAM
# redbee-econotag: not enough RAM
# telosb: not enough RAM
# wsn430-v1_3b: not enough RAM
# wsn430-v1_4: not enough RAM
# z1: not enough RAM
USEMODULE += hashes
USEMODULE += bloom

View File

@ -1,17 +1,10 @@
export PROJECT = test_pnet
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-due chronos mbed_lpc1768 msb-430 msb-430h \
redbee-econotag telosb udoo wsn430-v1_3b wsn430-v1_4 z1
# chronos: not enough RAM
BOARD_INSUFFICIENT_RAM := chronos msb-430h redbee-econotag telosb wsn430-v1_3b wsn430-v1_4 z1
BOARD_BLACKLIST := arduino-due mbed_lpc1768 msb-430 udoo
# mbed_lpc1768: see https://github.com/RIOT-OS/RIOT/issues/675
# msb-430: see https://github.com/RIOT-OS/RIOT/issues/658
# msb-430h: not enough RAM
# redbee-econotag: not enough RAM
# telosb: not enough RAM
# wsn430-v1_3b: not enough RAM
# wsn430-v1_4: not enough RAM
# z1: not enough RAM
USEMODULE += posix
USEMODULE += pnet

View File

@ -1,10 +1,7 @@
export PROJECT = test_posix_semaphore
include ../Makefile.tests_common
BOARD_BLACKLIST := mbed_lpc1768 redbee-econotag chronos
# mbed_lpc1768: not enough RAM
# redbee-econotag: not enough RAM
# chronos: not enough RAM
BOARD_INSUFFICIENT_RAM := mbed_lpc1768 redbee-econotag chronos
USEMODULE += posix

View File

@ -9,10 +9,6 @@ DISABLE_MODULE += auto_init
CFLAGS += -DNATIVE_AUTO_EXIT
# these boards provide too little RAM for the example to run
BOARD_BLACKLIST += chronos
BOARD_BLACKLIST += mbed_lpc1768
BOARD_BLACKLIST += msb-430
BOARD_BLACKLIST += msb-430h
BOARD_INSUFFICIENT_RAM += chronos mbed_lpc1768 msb-430 msb-430h
include $(RIOTBASE)/Makefile.include

View File

@ -1,12 +1,7 @@
export PROJECT = test_thread_cooperation
include ../Makefile.tests_common
BOARD_BLACKLIST := chronos msb-430 msb-430h mbed_lpc1768 redbee-econotag
# chronos: not enough RAM
# mbed_lpc1768: not enough RAM
# msb-430: not enough RAM
# msb-430h: not enough RAM
# redbee-econotag: not enough RAM
BOARD_INSUFFICIENT_RAM := chronos msb-430 msb-430h mbed_lpc1768 redbee-econotag
DISABLE_MODULE += auto_init