tests: footprint: set ARCH correctly and provide defaults
Change-Id: I57beaf70d3cf8f1ef4267f002d2e72df22b918b8 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
173902f940
commit
566b3fa0a0
5 changed files with 28 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
||||||
TEST ?= min
|
TEST ?= min
|
||||||
BOARD ?= qemu_x86
|
BOARD ?= qemu_x86
|
||||||
|
|
||||||
|
|
||||||
|
ARCH = $(notdir $(subst /$(BOARD),,$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD))))
|
||||||
|
|
||||||
MDEF_FILE = micro_${TEST}.mdef
|
MDEF_FILE = micro_${TEST}.mdef
|
||||||
CONF_FILE = $(or $(wildcard $(TEST)/$(BOARD).conf), \
|
CONF_FILE = $(or $(wildcard $(TEST)/$(BOARD).conf), \
|
||||||
$(wildcard $(TEST)/$(ARCH).conf))
|
$(wildcard $(TEST)/$(ARCH).conf))
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
# default configuration
|
# default configuration
|
||||||
TEST ?= min
|
TEST ?= min
|
||||||
|
|
||||||
|
ARCH = $(notdir $(subst /$(BOARD),,$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD))))
|
||||||
|
|
||||||
BOARD ?= qemu_x86
|
BOARD ?= qemu_x86
|
||||||
CONF_FILE = $(or $(wildcard $(TEST)/$(BOARD).conf), \
|
CONF_FILE ?= $(or $(wildcard $(TEST)/$(BOARD).conf), \
|
||||||
$(wildcard $(TEST)/$(ARCH).conf))
|
$(wildcard $(TEST)/$(ARCH).conf))
|
||||||
|
ifeq ($(CONF_FILE),)
|
||||||
|
CONF_FILE = $(TEST)/default.conf
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(TEST),float)
|
ifeq ($(TEST),float)
|
||||||
CFLAGS += -DTEST_max
|
CFLAGS += -DTEST_max
|
||||||
else
|
else
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_STDOUT_CONSOLE=y
|
||||||
|
CONFIG_IDT_NUM_VECTORS=256
|
||||||
|
CONFIG_LEGACY_KERNEL=y
|
10
tests/legacy/benchmark/footprint/nanokernel/min/default.conf
Normal file
10
tests/legacy/benchmark/footprint/nanokernel/min/default.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
CONFIG_ISR_STACK_SIZE=128
|
||||||
|
CONFIG_MAIN_STACK_SIZE=128
|
||||||
|
CONFIG_SYS_CLOCK_TICKS_PER_SEC=0
|
||||||
|
CONFIG_PRINTK=n
|
||||||
|
CONFIG_CONSOLE=n
|
||||||
|
CONFIG_SERIAL=n
|
||||||
|
CONFIG_IPM=n
|
||||||
|
CONFIG_GPIO=n
|
||||||
|
CONFIG_ERRNO=n
|
||||||
|
CONFIG_LEGACY_KERNEL=y
|
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_ISR_STACK_SIZE=512
|
||||||
|
CONFIG_MAIN_STACK_SIZE=512
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_LEGACY_KERNEL=y
|
Loading…
Add table
Add a link
Reference in a new issue