aboutsummaryrefslogtreecommitdiff
path: root/cc3200
diff options
context:
space:
mode:
authorDamien George2017-08-11 12:22:19 +1000
committerDamien George2017-08-11 12:22:19 +1000
commit7d4a2f773cc6ce24a91e2d210378188f3371e8a6 (patch)
treedced255f702c3b3065f519b46d21b26915de92e8 /cc3200
parentf9dfd8aa3b9030e325f382ebf51ed2627243e238 (diff)
all: Make use of $(TOP) variable in Makefiles, instead of "..".
$(TOP) is defined in py/mkenv.mk and should be used to refer to the top level of this repository.
Diffstat (limited to 'cc3200')
-rw-r--r--cc3200/Makefile4
-rw-r--r--cc3200/application.mk6
-rw-r--r--cc3200/bootmgr/bootloader.mk4
3 files changed, 7 insertions, 7 deletions
diff --git a/cc3200/Makefile b/cc3200/Makefile
index 663496435..4c8b0b832 100644
--- a/cc3200/Makefile
+++ b/cc3200/Makefile
@@ -34,7 +34,7 @@ ifeq ($(BTARGET), application)
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h
# include MicroPython make definitions
-include ../py/py.mk
+include $(TOP)/py/py.mk
include application.mk
else
ifeq ($(BTARGET), bootloader)
@@ -45,7 +45,7 @@ endif
endif
# always include MicroPython make rules
-include ../py/mkrules.mk
+include $(TOP)/py/mkrules.mk
erase:
cc3200tool -p $(PORT) format_flash --size $(FLASH_SIZE_$(BOARD))
diff --git a/cc3200/application.mk b/cc3200/application.mk
index c6b91ed0e..3ac28823a 100644
--- a/cc3200/application.mk
+++ b/cc3200/application.mk
@@ -1,5 +1,5 @@
APP_INC = -I.
-APP_INC += -I..
+APP_INC += -I$(TOP)
APP_INC += -Ifatfs/src
APP_INC += -Ifatfs/src/drivers
APP_INC += -IFreeRTOS
@@ -10,7 +10,7 @@ APP_INC += -Ihal
APP_INC += -Ihal/inc
APP_INC += -Imisc
APP_INC += -Imods
-APP_INC += -I../drivers/cc3100/inc
+APP_INC += -I$(TOP)/drivers/cc3100/inc
APP_INC += -Isimplelink
APP_INC += -Isimplelink/oslib
APP_INC += -Itelnet
@@ -18,7 +18,7 @@ APP_INC += -Iutil
APP_INC += -Ibootmgr
APP_INC += -I$(BUILD)
APP_INC += -I$(BUILD)/genhdr
-APP_INC += -I../stmhal
+APP_INC += -I$(TOP)/stmhal
APP_CPPDEFINES = -Dgcc -DTARGET_IS_CC3200 -DSL_FULL -DUSE_FREERTOS
diff --git a/cc3200/bootmgr/bootloader.mk b/cc3200/bootmgr/bootloader.mk
index ee5236913..b8aa9082c 100644
--- a/cc3200/bootmgr/bootloader.mk
+++ b/cc3200/bootmgr/bootloader.mk
@@ -4,13 +4,13 @@ BOOT_INC = -Ibootmgr
BOOT_INC += -Ibootmgr/sl
BOOT_INC += -Ihal
BOOT_INC += -Ihal/inc
-BOOT_INC += -I../drivers/cc3100/inc
+BOOT_INC += -I$(TOP)/drivers/cc3100/inc
BOOT_INC += -Imisc
BOOT_INC += -Imods
BOOT_INC += -Isimplelink
BOOT_INC += -Isimplelink/oslib
BOOT_INC += -Iutil
-BOOT_INC += -I..
+BOOT_INC += -I$(TOP)
BOOT_INC += -I.
BOOT_INC += -I$(BUILD)