From b118fb6b2689889e93bf3be2f62e4a3d4d50181c Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 4 Nov 2023 16:14:16 -0600 Subject: improved DFP setup and support: - `./make dfp` downloads and installs Atmel DFPs for each supported MCU - build.sh detects and uses attiny or avrdd, and others are simple to add - updated setup info in /README.md ... also some other small documentation updates. --- make | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'make') diff --git a/make b/make index 40fc398..d0d1a5d 100755 --- a/make +++ b/make @@ -23,10 +23,11 @@ Usage: ./make TASK (nothing) Compile all build targets flash FILE Flash firmare FILE to a hardware device clean Delete generated files - todo Show tasks noted in source code files + dfp Download and install Atmel DFPs + docs Convert all .md files to .html models Generate the MODELS file release Zip up all .hex files to prep for publishing a release - docs Convert all .md files to .html + todo Show tasks noted in source code files ... or TASK can be the partial name of a build target. @@ -56,6 +57,10 @@ function main() { echo 'rm -vf **/*.hex **/*~ **/*.elf **/*.o **/*.cpp' rm -vf **/*.hex **/*~ **/*.elf **/*.o **/*.cpp ;; + dfp) + shift + ./bin/dfp-install.sh "$@" + ;; docs) make-docs ;; @@ -87,5 +92,10 @@ function make-docs () { done } +# go to the repo root +BASEDIR=$(dirname $0) +cd "$BASEDIR" + +# do whatever the user requested main "$@" -- cgit v1.2.3