parent
372cce8beb
commit
944d8da255
@ -185,10 +185,12 @@ $(OBJECT_DIRECTORY)/%.o: %.s
|
|||||||
$(TRACE_CC)
|
$(TRACE_CC)
|
||||||
$(Q)$(CC) $(ASMFLAGS) $(addprefix -I$(NRF52_SDK_ROOT)/, $(INC_PATHS)) -c -o $@ $<
|
$(Q)$(CC) $(ASMFLAGS) $(addprefix -I$(NRF52_SDK_ROOT)/, $(INC_PATHS)) -c -o $@ $<
|
||||||
|
|
||||||
%.jlink:
|
include $(ARCH_PATH)/cpu/arm/cortex-m/cm4/Makefile.cm4
|
||||||
sed -e 's/#OUTPUT_FILENAME#/$*.hex/' $(CONTIKI_CPU)/flash.jlink > $@
|
|
||||||
|
|
||||||
%.flash: %.hex %.jlink
|
%.jlink: $(OUT_HEX)
|
||||||
|
sed -e 's,#OUTPUT_FILENAME#,$<,' $(CONTIKI_CPU)/flash.jlink > $@
|
||||||
|
|
||||||
|
%.flash: %.jlink
|
||||||
@echo Flashing: $^
|
@echo Flashing: $^
|
||||||
$(JLINK) $(JLINK_OPTS) -CommanderScript $*.jlink
|
$(JLINK) $(JLINK_OPTS) -CommanderScript $*.jlink
|
||||||
|
|
||||||
@ -203,5 +205,3 @@ erase:
|
|||||||
$(JLINK) $(JLINK_OPTS) -CommanderScript $(CONTIKI_CPU)/erase.jlink
|
$(JLINK) $(JLINK_OPTS) -CommanderScript $(CONTIKI_CPU)/erase.jlink
|
||||||
|
|
||||||
.PHONY: softdevice.jlink
|
.PHONY: softdevice.jlink
|
||||||
|
|
||||||
include $(ARCH_PATH)/cpu/arm/cortex-m/cm4/Makefile.cm4
|
|
||||||
|
Loading…
Reference in New Issue
Block a user