diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-07-07 16:21:09 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-07-07 16:21:09 -0500 |
commit | 420bc15ae16b736fbce1a4846126cd983dd3b75b (patch) | |
tree | 87067de0bae63a8eb2318d19afe00719cd5703ff /assembler/Makefile | |
parent | 996111e3043da0f7c16bad7151b99a378f6fef48 (diff) |
Fix PP and PL instructions
Diffstat (limited to 'assembler/Makefile')
-rw-r--r-- | assembler/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/assembler/Makefile b/assembler/Makefile index 96b7971..0225069 100644 --- a/assembler/Makefile +++ b/assembler/Makefile @@ -1,6 +1,4 @@ -all: build - -build: assemble.uf2 +PICO = /dev/disk/by-label/RPI-RP2 assemble.uf2: assemble.elf ../elf/elf2uf2 assemble.elf assemble.uf2 @@ -13,9 +11,19 @@ assemble.elf: $(objects) $(objects): %.o: %.s arm-none-eabi-as -o $@ $< +.PHONY: clean clean: rm assemble.elf assemble.uf2 *.o -flash: assemble.uf2 - [ -h /dev/disk/by-label/RPI-RP2 ] || sleep 2s - cat assemble.uf2 > /dev/disk/by-label/RPI-RP2 +.PHONY: flash +flash: $(PICO) assemble.uf2 + cat assemble.uf2 > $(PICO) + +.PHONY: check +check: $(PICO) + @echo Ready to flash + +$(PICO): + @echo "RPI-RP2 bootloader drive not found" + @echo Connect the pico with USB cable while holding bootsel button + @false |