Skip to content

Commit 060f438

Browse files
authored
Merge pull request #1680 from cesanta/esp8266
Expanded Makefile
2 parents 9c3c4a6 + e47f713 commit 060f438

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/esp8266/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,24 @@ flash: CMD = python /esp/components/esptool_py/esptool/esptool.py \
2020
flash: DA = --device $(PORT)
2121
flash: build
2222

23+
buildall:
24+
buildall: CMD = make -C src all
25+
buildall: build
26+
27+
flashall:
28+
flashall: CMD = python /esp/components/esptool_py/esptool/esptool.py \
29+
--chip esp8266 --port $(PORT) --baud 115200 --before default_reset \
30+
--after hard_reset write_flash -z --flash_mode dio --flash_freq 40m \
31+
--flash_size 2MB 0x0 $(THISDIR)/src/build/bootloader/bootloader.bin \
32+
0x10000 $(THISDIR)/src/build/mongoose-example.bin \
33+
0x8000 $(THISDIR)/src/build/partitions_singleapp.bin
34+
flashall: DA = --device $(PORT)
35+
flashall: build
36+
37+
monitor:
38+
monitor: CMD = /esp/tools/idf_monitor.py --port $(PORT) $(THISDIR)/src/build/mongoose-example.elf
39+
monitor: build
40+
2341
.PHONY: build
2442

2543
clean:

0 commit comments

Comments
 (0)