diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2021-02-14 23:21:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-14 23:21:45 -0800 |
commit | fa740f81298dc0965970a4dc7b0b67285bd1985c (patch) | |
tree | 7617e178431b7325c974c000a6e70667ba6bdfcd /keyboards/amj40/keymaps/default/build.sh | |
parent | e768fb83bdf1bc292cefc9f3f70cb1597c3108fc (diff) |
AMJ40 Refactor (#11854)
* update keyboard source files
- add license headers (attributed to original keyboard submitter)
- #pragma once include guards
- file template matching
- readme update and template matching
* set sensible default keyboard settings
- enable Bootmagic Lite and Mouse Keys
- disable Console and Command
- remove default keymap's rules.mk file
* remove unnecessary files from default keymap
* refactor default keymap
* add additional layouts/keymaps
* update keyboard readme
- add images and bootloader instructions
- reformat link list
* convert tabs to spaces in default keymap
Diffstat (limited to 'keyboards/amj40/keymaps/default/build.sh')
-rwxr-xr-x | keyboards/amj40/keymaps/default/build.sh | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/keyboards/amj40/keymaps/default/build.sh b/keyboards/amj40/keymaps/default/build.sh deleted file mode 100755 index 6b4b4568f5..0000000000 --- a/keyboards/amj40/keymaps/default/build.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# adjust for cpu -# -j 16 gave best result on a hyperthreaded quad core core i7 - -LIMIT=10 -THREADS="-j 16" -KMAP=iso_split_rshift - -echo "We need sudo later" -sudo ls 2>&1 /dev/null - -function wait_bootloader { - echo "Waiting for Bootloader..." - local STARTTIME=$(date +"%s") - local REMIND=0 - local EXEC=dfu-programmer - local TARGET=atmega32u4 - while true - do - sudo $EXEC $TARGET get > /dev/null 2>&1 - [ $? -eq 0 ] && break - ENDTIME=$(date +"%s") - DURATION=$(($ENDTIME-$STARTTIME)) - if [ $REMIND -eq 0 -a $DURATION -gt $LIMIT ] - then - echo "Did you forget to press the reset button?" - REMIND=1 - fi - sleep 1 - done -} -make clean -make KEYMAP=${KMAP} ${THREADS} -if [[ $? -eq 0 ]] -then - echo "please trigger flashing!" - wait_bootloader - sudo make KEYMAP=${KMAP} dfu ${THREADS} -else - echo "make failed" - exit 77 -fi |