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"; \ rm -rf "$$BINDIRBASE"; \
for BOARD in $${BOARDS}; do \ 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 \ LOG=$$(env -i \
HOME=$${HOME} \ HOME=$${HOME} \
PATH=$${PATH} \ PATH=$${PATH} \
@ -51,6 +54,7 @@ buildtest:
RIOTBOARD=$${RIOTBOARD} \ RIOTBOARD=$${RIOTBOARD} \
RIOTCPU=$${RIOTCPU} \ RIOTCPU=$${RIOTCPU} \
BINDIRBASE=$${BINDIRBASE} \ BINDIRBASE=$${BINDIRBASE} \
RIOTNOLINK=$${RIOTNOLINK} \
$(MAKE) -j$(NPROC) 2>&1 >/dev/null) ; \ $(MAKE) -j$(NPROC) 2>&1 >/dev/null) ; \
if [ "$${?}" = "0" ]; then \ if [ "$${?}" = "0" ]; then \
$${ECHO} "$${GREEN}success$${RESET}"; \ $${ECHO} "$${GREEN}success$${RESET}"; \

View File

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

View File

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

View File

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

View File

@ -1,17 +1,8 @@
export PROJECT = test_bloom export PROJECT = test_bloom
include ../Makefile.tests_common 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 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 += hashes
USEMODULE += bloom USEMODULE += bloom

View File

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

View File

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

View File

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

View File

@ -1,12 +1,7 @@
export PROJECT = test_thread_cooperation export PROJECT = test_thread_cooperation
include ../Makefile.tests_common include ../Makefile.tests_common
BOARD_BLACKLIST := chronos msb-430 msb-430h mbed_lpc1768 redbee-econotag BOARD_INSUFFICIENT_RAM := 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
DISABLE_MODULE += auto_init DISABLE_MODULE += auto_init