mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
f5e02e72ed
`hw\bsp` separate one family folder to esp32s2, esp32s3 add board specific board.cmake file to override board specific options(features) fix examples and test scripts to use new family approach
27 lines
762 B
Makefile
27 lines
762 B
Makefile
#DEPS_SUBMODULES +=
|
|
|
|
.PHONY: all clean flash bootloader-flash app-flash erase monitor dfu-flash dfu
|
|
|
|
all:
|
|
idf.py -B$(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) $(CMAKE_DEFSYM) -DIDF_TARGET=esp32s3 build
|
|
|
|
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 = 0xc47e5767
|
|
$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin
|
|
@echo CREATE $@
|
|
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^
|
|
|