zephyr/tests/kernel/test_mem_safe/Makefile
Benjamin Walsh 0e6aebf2c9 tests/mem_safe: place test buffers at the edges of RAM
This test checks if it can write at the edges of RAM within the kernel
image. The problem is that this memory is not meant to be trampled on.

With the help of custom linker scripts, place 32-byte buffers at those
edges.

Only linker scripts for QEMU on x86 and Cortex-M3 are provided, to avoid
having to maintain too many of them, in case the reference linker
scripts in the kernel change.

JIRA: ZEP-707

Change-Id: Icd5d680ce2cf064cce083c3d244a196e292bd453
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-09-15 09:42:24 -04:00

15 lines
386 B
Makefile

KERNEL_TYPE = nano
BOARD ?= qemu_x86
CONF_FILE = prj_$(BOARD).conf
# This testcase requires a special linker script, from the testcase itself.
# The only boards that have one are the ones listed below.
valid_board_qemu_x86 = y
valid_board_qemu_cortex_m3 = y
ifneq ($(valid_board_$(BOARD)),y)
$(error not a supported board for this testcase)
endif
include $(ZEPHYR_BASE)/Makefile.inc