2021-03-09 11:29:07 +01:00
|
|
|
#DEPS_SUBMODULES +=
|
|
|
|
|
|
|
|
.PHONY: all clean flash bootloader-flash app-flash erase monitor dfu-flash dfu
|
|
|
|
|
|
|
|
all:
|
2021-04-16 13:37:14 +02:00
|
|
|
idf.py -B$(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) $(CMAKE_DEFSYM) -DIDF_TARGET=esp32s2 build
|
2021-03-09 11:29:07 +01:00
|
|
|
|
|
|
|
build: all
|
|
|
|
|
|
|
|
clean:
|
|
|
|
idf.py -B$(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) $(CMAKE_DEFSYM) clean
|
|
|
|
|
|
|
|
fullclean:
|
|
|
|
if test -f sdkconfig; then $(RM) -f sdkconfig ; fi
|
|
|
|
if test -d $(BUILD); then $(RM) -rf $(BUILD) ; fi
|
|
|
|
|
|
|
|
flash bootloader-flash app-flash erase monitor dfu-flash dfu:
|
|
|
|
idf.py -B$(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) $(CMAKE_DEFSYM) $@
|
|
|
|
|
|
|
|
uf2: $(BUILD)/$(PROJECT).uf2
|
|
|
|
|
|
|
|
UF2_FAMILY_ID = 0xbfdd4eee
|
|
|
|
$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin
|
|
|
|
@echo CREATE $@
|
|
|
|
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^
|
|
|
|
|