summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FreeRTOS/Makefile4
-rw-r--r--FreeRTOS/config.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/FreeRTOS/Makefile b/FreeRTOS/Makefile
index dc19136..63760c5 100644
--- a/FreeRTOS/Makefile
+++ b/FreeRTOS/Makefile
@@ -5,10 +5,6 @@ all: $(TARGET_LIB)
include $(ROOTDIR)/common.mk
include config.mk
-ifeq ($(USE_MPU),true)
-TARGET_CPPFLAGS += -DportUSING_MPU_WRAPPERS=1
-endif
-
TARGET_SRCS = Source/croutine.c Source/list.c Source/queue.c Source/tasks.c
ifeq ($(CPU),arm)
diff --git a/FreeRTOS/config.mk b/FreeRTOS/config.mk
index 81248d9..188050d 100644
--- a/FreeRTOS/config.mk
+++ b/FreeRTOS/config.mk
@@ -1,5 +1,9 @@
TARGET_INCLUDES = $(ROOTDIR)/FreeRTOS/Source/include
+ifeq ($(USE_MPU),true)
+TARGET_CPPFLAGS += -DportUSING_MPU_WRAPPERS=1
+endif
+
ifeq ($(CPU),arm)
ifeq ($(CPU_FLAVOR),lpc1768)
TARGET_INCLUDES += $(ROOTDIR)/config/arm/lpc1768 $(ROOTDIR)/arch/arm/lpc17xx/Core/CM3/DeviceSupport/NXP/LPC17xx $(ROOTDIR)/arch/arm/lpc17xx/Core/CM3/CoreSupport