Updated make rules for MSPSim as submodule to Cooja
This commit is contained in:
parent
e4ae215f16
commit
21f2c22da4
|
@ -1,5 +1,7 @@
|
||||||
# $Id: Makefile.msp430,v 1.35 2011/01/19 07:30:31 adamdunkels Exp $
|
# $Id: Makefile.msp430,v 1.35 2011/01/19 07:30:31 adamdunkels Exp $
|
||||||
|
|
||||||
|
COOJA_PATH ?= $(CONTIKI)/tools/cooja
|
||||||
|
|
||||||
ifdef nodeid
|
ifdef nodeid
|
||||||
CFLAGS += -DNODEID=$(nodeid)
|
CFLAGS += -DNODEID=$(nodeid)
|
||||||
endif
|
endif
|
||||||
|
@ -215,19 +217,24 @@ else
|
||||||
$(OBJCOPY) $^ -O ihex $@
|
$(OBJCOPY) $^ -O ihex $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(CONTIKI)/tools/mspsim/build.xml:
|
$(COOJA_PATH)/build.xml:
|
||||||
@echo '----------------'
|
@echo '----------------'
|
||||||
@echo 'Could not find the MSPSim build file. Did you run "git submodule update --init"?'
|
@echo 'Could not find the COOJA build file. Did you run "git submodule update --init --recursive"?'
|
||||||
@echo '----------------'
|
@echo '----------------'
|
||||||
|
|
||||||
$(CONTIKI)/tools/mspsim/mspsim.jar: $(CONTIKI)/tools/mspsim/build.xml
|
$(COOJA_PATH)/mspsim/build.xml: $(COOJA_PATH)/build.xml
|
||||||
(cd $(CONTIKI)/tools/mspsim && ant jar)
|
@echo '----------------'
|
||||||
|
@echo 'Could not find the MSPSim build file. Did you run "git submodule update --init --recursive"?'
|
||||||
|
@echo '----------------'
|
||||||
|
|
||||||
%.mspsim: %.${TARGET} ${CONTIKI}/tools/mspsim/mspsim.jar
|
$(COOJA_PATH)/mspsim/mspsim.jar: $(COOJA_PATH)/mspsim/build.xml
|
||||||
java -jar ${CONTIKI}/tools/mspsim/mspsim.jar -platform=${TARGET} $<
|
(cd $(COOJA_PATH)/mspsim && ant jar)
|
||||||
|
|
||||||
|
%.mspsim: %.${TARGET} ${COOJA_PATH}/mspsim/mspsim.jar
|
||||||
|
java -jar ${COOJA_PATH}/mspsim/mspsim.jar -platform=${TARGET} $<
|
||||||
|
|
||||||
mspsim-maptable: contiki-${TARGET}.map
|
mspsim-maptable: contiki-${TARGET}.map
|
||||||
java -classpath ${CONTIKI}/tools/mspsim/mspsim.jar se.sics.mspsim.util.MapTable $<
|
java -classpath ${COOJA_PATH}/mspsim/mspsim.jar se.sics.mspsim.util.MapTable $<
|
||||||
|
|
||||||
core-labels.o: core.${TARGET}
|
core-labels.o: core.${TARGET}
|
||||||
${CONTIKI}/tools/msp430-make-labels core.${TARGET} > core-labels.S
|
${CONTIKI}/tools/msp430-make-labels core.${TARGET} > core-labels.S
|
||||||
|
|
Loading…
Reference in New Issue