add -B for clean and flash

This commit is contained in:
hathach 2020-04-06 14:33:36 +07:00
parent 1e7c3cf95e
commit 5963ace5ab
1 changed files with 2 additions and 2 deletions

View File

@ -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