2021-03-18 13:53:39 +01:00
|
|
|
JLINK_DEVICE = rp2040_m0_0
|
|
|
|
PYOCD_TARGET = rp2040
|
|
|
|
|
2022-07-01 12:23:14 +02:00
|
|
|
DEPS_SUBMODULES += hw/mcu/raspberry_pi/Pico-PIO-USB
|
|
|
|
|
2021-03-17 11:09:25 +01:00
|
|
|
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)
|
|
|
|
|
2021-03-18 13:53:39 +01:00
|
|
|
flash: flash-pyocd
|
|
|
|
flash-uf2:
|
2021-03-17 11:09:25 +01:00
|
|
|
@$(CP) $(BUILD)/$(PROJECT).uf2 /media/$(USER)/RPI-RP2
|