summaryrefslogtreecommitdiff
path: root/examples/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rules.mk')
-rw-r--r--examples/rules.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 2274d1cd2..fb1fe76c2 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -11,12 +11,26 @@ ifeq ($(CROSS_COMPILE),xtensa-esp32s2-elf-)
all:
idf.py -B$(BUILD) -DBOARD=$(BOARD) build
+build: all
+
clean:
idf.py -B$(BUILD) -DBOARD=$(BOARD) clean
flash:
idf.py -B$(BUILD) -DBOARD=$(BOARD) flash
+bootloader-flash:
+ idf.py -B$(BUILD) -DBOARD=$(BOARD) bootloader-flash
+
+app-flash:
+ idf.py -B$(BUILD) -DBOARD=$(BOARD) app-flash
+
+erase:
+ idf.py -B$(BUILD) -DBOARD=$(BOARD) erase_flash
+
+monitor:
+ idf.py -B$(BUILD) -DBOARD=$(BOARD) monitor
+
else
# GNU Make build system