From cb923096b62a22d49499fd3aa8b95f64eded5d44 Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Mon, 3 Sep 2018 13:51:04 -0700 Subject: [PATCH] Clean up NRF builds big time --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c114676..69ade93 100644 --- a/Makefile +++ b/Makefile @@ -54,15 +54,15 @@ circuitpy-flash-nrf-entrypoint: @-timeout -k 5s 10s pipenv run ampy -p ${NRF_DFU_PORT} -d ${NRF_DFU_DELAY} -b ${NRF_DFU_BAUD} put entrypoints/feather_nrf52832.py main.py @echo "===> Flashed keyboard successfully!" -build-feather-test: lint devdeps circuitpy-deps circuitpy-freeze-kmk-nrf +ifndef BOARD +build-feather-nrf52832: + @echo "===> Must provide a board (usually from boards/...) to build!" +else +build-feather-nrf52832: lint devdeps circuitpy-deps circuitpy-freeze-kmk-nrf @echo "===> Preparing keyboard script for bundling into CircuitPython" - @cp -av boards/klardotsh/twotwo_matrix_feather.py vendor/circuitpython/ports/nrf/freeze/kmk_keyboard_user.py - @$(MAKE) circuitpy-flash-nrf circuitpy-flash-nrf-entrypoint - -build-feather-noop: lint devdeps circuitpy-deps circuitpy-freeze-kmk-nrf - @echo "===> Preparing keyboard script for bundling into CircuitPython" - @cp -av boards/noop.py vendor/circuitpython/ports/nrf/freeze/kmk_keyboard_user.py + @cp -av ${BOARD} vendor/circuitpython/ports/nrf/freeze/kmk_keyboard_user.py @$(MAKE) circuitpy-flash-nrf circuitpy-flash-nrf-entrypoint +endif # Fully wipe the board with only stock CircuitPython burn-it-all-with-fire: lint devdeps