summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-06 14:33:36 +0700
committerhathach <[email protected]>2020-04-06 14:33:36 +0700
commit5963ace5ab2ea208c89335636ecef77d83491b1a (patch)
tree4c2f97ec7e47c2c122908e451633113f37c19f55 /examples
parent1e7c3cf95eb4c1e078a9083277b2abbbda5e19bf (diff)
add -B for clean and flash
Diffstat (limited to 'examples')
-rw-r--r--examples/rules.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rules.mk b/examples/rules.mk
index 92204cf72..9e5226aca 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -12,11 +12,11 @@ all:
idf.py -B$(BUILD) -DBOARD=$(BOARD) build
clean:
- idf.py clean
+ idf.py -B$(BUILD) clean
flash:
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyUSB0)
- idf.py -p $(SERIAL) flash
+ idf.py -B$(BUILD) -p $(SERIAL) flash
else
# GNU Make build system