From 279b7fd04080609c3d501b851604175fd90aa57b Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Tue, 18 Mar 2014 11:21:19 +0100 Subject: [PATCH] Added rule to autocompile mspsim if needed and show warning if submodule MSPSim has not been initialized --- cpu/msp430/Makefile.msp430 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cpu/msp430/Makefile.msp430 b/cpu/msp430/Makefile.msp430 index a1d58bf73..da64fcc85 100644 --- a/cpu/msp430/Makefile.msp430 +++ b/cpu/msp430/Makefile.msp430 @@ -188,7 +188,15 @@ else $(OBJCOPY) $^ -O ihex $@ endif -%.mspsim: %.${TARGET} +$(CONTIKI)/tools/mspsim/build.xml: + @echo '----------------' + @echo 'Could not find the MSPSim build file. Did you run "git submodule update --init"?' + @echo '----------------' + +$(CONTIKI)/tools/mspsim/mspsim.jar: $(CONTIKI)/tools/mspsim/build.xml + (cd $(CONTIKI)/tools/mspsim && ant jar) + +%.mspsim: %.${TARGET} ${CONTIKI}/tools/mspsim/mspsim.jar java -jar ${CONTIKI}/tools/mspsim/mspsim.jar -platform=${TARGET} $< mspsim-maptable: contiki-${TARGET}.map