Skip to content

Commit 93e48fc

Browse files
committed
Fix debugging targets in Makefile
1 parent 3058ee8 commit 93e48fc

1 file changed

Lines changed: 10 additions & 19 deletions

File tree

Makefile

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,19 @@ monitor:
133133

134134
.PHONY: openocd
135135
openocd:
136-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) openocd
136+
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) openocd
137137

138138
.PHONY: gdb
139139
gdb:
140-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) gdb
140+
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdb
141+
142+
.PHONY: gdbgui
143+
gdbgui:
144+
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdbgui
145+
146+
.PHONY: gdbtui
147+
gdbtui:
148+
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdbtui
141149

142150
# Tools
143151

@@ -198,20 +206,3 @@ buildall:
198206
flashall:
199207
$(MAKE) flash DEVICE=tanmatsu PORT=/dev/ttyACM0
200208
$(MAKE) flash DEVICE=mch2022 PORT=/dev/ttyACM2
201-
202-
203-
# Debugging
204-
.PHONY: openocd
205-
openocd:
206-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) openocd
207-
208-
.PHONY: gdb
209-
gdb:
210-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdb
211-
.PHONY: gdbgui
212-
213-
gdbgui:
214-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdbgui
215-
216-
gdbtui:
217-
source "$(IDF_PATH)/export.sh" && idf.py -B $(BUILD) -DDEVICE=$(DEVICE) gdbtui

0 commit comments

Comments
 (0)