rules: flash target helpers had broken script paths
This commit is contained in:
committed by
Karl Palsson
parent
fc60651b6a
commit
1f322c1cef
@@ -92,7 +92,8 @@ endif
|
|||||||
include $(OPENCM3_DIR)/mk/genlink-config.mk
|
include $(OPENCM3_DIR)/mk/genlink-config.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SCRIPT_DIR = $(OPENCM3_DIR)/scripts
|
OPENCM3_SCRIPT_DIR = $(OPENCM3_DIR)/scripts
|
||||||
|
EXAMPLES_SCRIPT_DIR = $(OPENCM3_DIR)/../scripts
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# C flags
|
# C flags
|
||||||
@@ -215,7 +216,7 @@ styleclean: $(STYLECHECKFILES:=.styleclean)
|
|||||||
|
|
||||||
# the cat is due to multithreaded nature - we like to have consistent chunks of text on the output
|
# the cat is due to multithreaded nature - we like to have consistent chunks of text on the output
|
||||||
%.stylecheck: %
|
%.stylecheck: %
|
||||||
$(Q)$(SCRIPT_DIR)$(STYLECHECK) $(STYLECHECKFLAGS) $* > $*.stylecheck; \
|
$(Q)$(OPENCM3_SCRIPT_DIR)$(STYLECHECK) $(STYLECHECKFLAGS) $* > $*.stylecheck; \
|
||||||
if [ -s $*.stylecheck ]; then \
|
if [ -s $*.stylecheck ]; then \
|
||||||
cat $*.stylecheck; \
|
cat $*.stylecheck; \
|
||||||
else \
|
else \
|
||||||
@@ -253,7 +254,7 @@ else
|
|||||||
@printf " GDB $(*).elf (flash)\n"
|
@printf " GDB $(*).elf (flash)\n"
|
||||||
$(GDB) --batch \
|
$(GDB) --batch \
|
||||||
-ex 'target extended-remote $(BMP_PORT)' \
|
-ex 'target extended-remote $(BMP_PORT)' \
|
||||||
-x $(SCRIPT_DIR)/black_magic_probe_flash.scr \
|
-x $(EXAMPLES_SCRIPT_DIR)/black_magic_probe_flash.scr \
|
||||||
$(*).elf
|
$(*).elf
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
@@ -261,7 +262,7 @@ else
|
|||||||
@printf " GDB $(*).elf (flash)\n"
|
@printf " GDB $(*).elf (flash)\n"
|
||||||
$(GDB) --batch \
|
$(GDB) --batch \
|
||||||
-ex 'target extended-remote $(STLINK_PORT)' \
|
-ex 'target extended-remote $(STLINK_PORT)' \
|
||||||
-x $(SCRIPT_DIR)/stlink_flash.scr \
|
-x $(EXAMPLES_SCRIPT_DIR)/stlink_flash.scr \
|
||||||
$(*).elf
|
$(*).elf
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user