diff options
author | tomaszduda23 <[email protected]> | 2022-07-14 09:45:01 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-14 03:45:01 +0300 |
commit | 6772d3425dc7c8d853eb3e437f02042de9947340 (patch) | |
tree | 32f7401c7c3a4c9cdf8178f3615fe155d5cf5e79 /hid/Makefile | |
parent | 1973a1e6e0b7962d0c6e9ad54f41d078923e43d3 (diff) |
move platformio.ini -> platformio-avr.ini (#105)
Diffstat (limited to 'hid/Makefile')
-rw-r--r-- | hid/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/hid/Makefile b/hid/Makefile index 5a4888c0..deb2e367 100644 --- a/hid/Makefile +++ b/hid/Makefile @@ -1,21 +1,23 @@ serial: - make _build E=serial + make _build E=serial C=avr spi: - make _build E=spi + make _build E=spi C=avr aum: - make _build E=aum + make _build E=aum C=avr _build: - rm -f .current - platformio run --environment $(E) + rm -f .current .config + platformio run --environment $(E) --project-conf platformio-$(C).ini echo -n $(E) > .current + echo -n $(C) > .config # Added to easy test all builds _build_all: aum spi serial - rm -f .current + rm -f .current .config install: upload upload: $(eval $@_CURRENT := $(shell cat .current)) + $(eval $@_CONFIG := $(shell cat .config)) bash -ex -c " \ current=`cat .current`; \ if [ '$($@_CURRENT)' == 'spi' ] || [ '$($@_CURRENT)' == 'aum' ]; then \ @@ -23,13 +25,13 @@ upload: gpioset 0 25=0; \ fi \ " - platformio run --environment '$($@_CURRENT)' --target upload + platformio run --environment '$($@_CURRENT)' --project-conf '$($@_CONFIG)' --target upload bootloader-spi: install-bootloader-spi install-bootloader-spi: upload-bootloader-spi upload-bootloader-spi: - platformio run --environment bootloader_spi --target bootloader + platformio run --environment bootloader_spi --project-conf platformio-avr.ini --target bootloader update: @@ -39,7 +41,7 @@ update: clean-all: clean rm -rf .platformio clean: - rm -rf .pio .current + rm -rf .pio .current .config help: |