move esp32s2 and rp2040 target rule to its family.mk

This commit is contained in:
hathach
2021-03-17 17:09:25 +07:00
parent ed8f117dd1
commit 2307fc3023
4 changed files with 65 additions and 68 deletions
+17
View File
@@ -1,4 +1,21 @@
DEPS_SUBMODULES = hw/mcu/raspberrypi/pico-sdk
ifeq ($(DEBUG), 1)
CMAKE_DEFSYM += -DCMAKE_BUILD_TYPE=Debug
endif
$(BUILD):
cmake -S . -B $(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) -DPICO_BUILD_DOCS=0 $(CMAKE_DEFSYM)
all: $(BUILD)
$(MAKE) -C $(BUILD)
clean:
$(RM) -rf $(BUILD)
#flash: flash-pyocd
flash:
@$(CP) $(BUILD)/$(PROJECT).uf2 /media/$(USER)/RPI-RP2
JLINK_DEVICE = rp2040_m0_0
PYOCD_TARGET = rp2040