mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
73774def6b
This patch adds a simple non-driver protection domain sample to serve as an example for defining other non-driver protection domains. It simply performs a ping-pong test of protection domain switching latency during boot, including optional accesses to a private metadata region, and prints out the results.
27 lines
653 B
Makefile
27 lines
653 B
Makefile
TARGET=galileo
|
|
|
|
KNOWN_EXAMPLES = gpio-input gpio-output gpio-interrupt i2c-LSM9DS0 i2c-callbacks print-imr prot-domain-switch-latency
|
|
|
|
ifeq ($(filter $(EXAMPLE),$(KNOWN_EXAMPLES)),)
|
|
$(info Set the variable EXAMPLE to one of the following Galileo-specific examples:)
|
|
$(foreach EXAMPLE,$(KNOWN_EXAMPLES),$(info - $(EXAMPLE)))
|
|
$(error Unable to proceed)
|
|
endif
|
|
|
|
ifeq ($(EXAMPLE),print-imr)
|
|
CFLAGS += -DDBG_IMRS
|
|
endif
|
|
|
|
ifeq ($(EXAMPLE),prot-domain-switch-latency)
|
|
ifeq ($(SAMPLE_METADATA),1)
|
|
CFLAGS += -DSAMPLE_METADATA=1
|
|
endif
|
|
endif
|
|
|
|
CONTIKI_PROJECT = $(EXAMPLE)
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
CONTIKI = ../..
|
|
include $(CONTIKI)/Makefile.include
|