Allowed overriding of CMSIS_PATH
This is needed for submodules that provide their own CMSIS
+ifndef CMSIS_PATH
CMSIS_PATH = CMSIS/CMSIS
CMSIS_ROOT = $(CONTIKI)/$(CONTIKI_NG_ARM_DIR)/$(CMSIS_PATH)
@@ -6,8 +7,10 @@ ifeq (,$(wildcard $(CMSIS_ROOT)/*))
$(warning Did you run 'git submodule update --init' ?)
$(error "")
endif
+ CONTIKI_ARM_DIRS += $(CMSIS_PATH)/Core/Include
+endif
-CONTIKI_ARM_DIRS += cortex-m $(CMSIS_PATH)/Core/Include
+CONTIKI_ARM_DIRS += cortex-m
### Build syscalls for newlib
MODULES += os/lib/newlib
