]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/tosboot.extra
Deluge T2 support for Epic. This includes support for at45db161d and some refactoring...
[tinyos-2.x.git] / support / make / tosboot.extra
index 2420fa9372fb992aedeaccff61e28f778b715b21..80e00688c96f2509b695620d3a519fd20752d44c 100644 (file)
@@ -10,12 +10,19 @@ ifeq ($(BOOTLOADER),tosboot)
   CFLAGS += -DDELUGE
   CFLAGS += -I$(TOSDIR)/lib/net -I$(TOSDIR)/lib/net/drip -I$(DELUGE_DIR) -I$(DELUGE_DIR)/FlashVolumeManager -I$(DELUGE_DIR)/BlockStorageManager
 
-  ifneq ($(filter telosb tmote,$(TARGETS)),)
-    CFLAGS += -I$(DELUGE_EXTRA) -I$(DELUGE_EXTRA)/msp430 -I$(DELUGE_EXTRA)/telos -I$(DELUGE_EXTRA)/telosb
+  ifneq ($(filter telosb tmote epic,$(TARGETS)),)
+    CFLAGS += -I$(DELUGE_EXTRA) -I$(DELUGE_EXTRA)/msp430 -I$(DELUGE_EXTRA)/telos
     ifeq ($(filter docs,$(GOALS)),)
       CFLAGS += -Wl,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000
     endif
-    BOOTLOADER_IMG ?= $(TOSBOOT_DIR)/telosb/main.ihex
+    ifeq ($(TARGETS),telosb)
+       CFLAGS += -I$(DELUGE_EXTRA)/telosb
+       BOOTLOADER_IMG ?= $(TOSBOOT_DIR)/telosb/main.ihex
+    endif
+    ifeq ($(TARGETS),epic)
+       CFLAGS += -I$(DELUGE_EXTRA)/epic
+       BOOTLOADER_IMG ?= $(TOSBOOT_DIR)/epic/main.ihex
+    endif
     ifeq ($(shell [ -f /bin/cygwin1.dll ] && echo cygwin),cygwin)
       BOOTLOADER_IMG := $(shell cygpath -m $(BOOTLOADER_IMG))
     endif