group esp32s2 board into its group
This commit is contained in:
@@ -7,7 +7,7 @@ set(TOP "../../..")
|
||||
get_filename_component(TOP "${TOP}" REALPATH)
|
||||
|
||||
# Add example src and bsp directories
|
||||
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/${BOARD}")
|
||||
set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2/boards" "${TOP}/hw/bsp/esp32s2/components")
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(SUPPORTED_TARGETS esp32s2)
|
||||
|
@@ -11,12 +11,26 @@ ifeq ($(CROSS_COMPILE),xtensa-esp32s2-elf-)
|
||||
all:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) build
|
||||
|
||||
build: all
|
||||
|
||||
clean:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) clean
|
||||
|
||||
flash:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) flash
|
||||
|
||||
bootloader-flash:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) bootloader-flash
|
||||
|
||||
app-flash:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) app-flash
|
||||
|
||||
erase:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) erase_flash
|
||||
|
||||
monitor:
|
||||
idf.py -B$(BUILD) -DBOARD=$(BOARD) monitor
|
||||
|
||||
else
|
||||
# GNU Make build system
|
||||
|
||||
|
Reference in New Issue
Block a user