mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
249852d25c
- also use boot2_generic_03h for now for itsy bitsy and qt rp2040 - change default flash target for rp2040 to flash-pyocd
22 lines
421 B
Makefile
22 lines
421 B
Makefile
DEPS_SUBMODULES += hw/mcu/raspberrypi/pico-sdk
|
|
|
|
JLINK_DEVICE = rp2040_m0_0
|
|
PYOCD_TARGET = rp2040
|
|
|
|
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-uf2:
|
|
@$(CP) $(BUILD)/$(PROJECT).uf2 /media/$(USER)/RPI-RP2
|