diff options
author | Joel Challis <git@zvecr.com> | 2021-08-24 17:07:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 17:07:11 +0100 |
commit | 2cade3a48300e0709f8aec68602faf90947b6738 (patch) | |
tree | 20d4e05ccb92ebf35c7aa3ab281590302e9befa9 | |
parent | 2827a3cf754c2eaca37a0d44a5901741f1855414 (diff) | |
download | qmk_firmware-2cade3a48300e0709f8aec68602faf90947b6738.tar.gz qmk_firmware-2cade3a48300e0709f8aec68602faf90947b6738.zip |
Align some quantum sub-directories (#14134)
* Misc folder tidy
* Review comments
* Remove redundant entry
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | data/templates/avr/config.h (renamed from quantum/template/avr/config.h) | 0 | ||||
-rw-r--r-- | data/templates/avr/readme.md (renamed from quantum/template/avr/readme.md) | 0 | ||||
-rw-r--r-- | data/templates/avr/rules.mk (renamed from quantum/template/avr/rules.mk) | 0 | ||||
-rw-r--r-- | data/templates/base/info.json (renamed from quantum/template/base/info.json) | 0 | ||||
-rw-r--r-- | data/templates/base/keyboard.c (renamed from quantum/template/base/keyboard.c) | 0 | ||||
-rw-r--r-- | data/templates/base/keyboard.h (renamed from quantum/template/base/keyboard.h) | 0 | ||||
-rw-r--r-- | data/templates/base/keymaps/default/keymap.c (renamed from quantum/template/base/keymaps/default/keymap.c) | 0 | ||||
-rw-r--r-- | data/templates/base/keymaps/default/readme.md (renamed from quantum/template/base/keymaps/default/readme.md) | 0 | ||||
-rw-r--r-- | data/templates/ps2avrgb/config.h (renamed from quantum/template/ps2avrgb/config.h) | 0 | ||||
-rw-r--r-- | data/templates/ps2avrgb/readme.md (renamed from quantum/template/ps2avrgb/readme.md) | 0 | ||||
-rw-r--r-- | data/templates/ps2avrgb/rules.mk (renamed from quantum/template/ps2avrgb/rules.mk) | 0 | ||||
-rw-r--r-- | lib/python/qmk/cli/format/c.py | 2 | ||||
-rw-r--r-- | lib/python/qmk/cli/new/keyboard.py | 4 | ||||
-rw-r--r-- | quantum/tools/readme.md | 6 | ||||
-rwxr-xr-x | util/new_keyboard.sh | 6 | ||||
-rw-r--r-- | util/reset.eep (renamed from quantum/tools/eeprom_reset.hex) | 0 |
17 files changed, 6 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore index b30b87ba11..f3b76f7edf 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,6 @@ api_data/v1 doxygen/ quantum/version.h -!quantum/tools/eeprom_reset.hex *.bin *.eep *.hex diff --git a/quantum/template/avr/config.h b/data/templates/avr/config.h index 4192bbcfa2..4192bbcfa2 100644 --- a/quantum/template/avr/config.h +++ b/data/templates/avr/config.h diff --git a/quantum/template/avr/readme.md b/data/templates/avr/readme.md index b099ed726d..b099ed726d 100644 --- a/quantum/template/avr/readme.md +++ b/data/templates/avr/readme.md diff --git a/quantum/template/avr/rules.mk b/data/templates/avr/rules.mk index 62fbb34348..62fbb34348 100644 --- a/quantum/template/avr/rules.mk +++ b/data/templates/avr/rules.mk diff --git a/quantum/template/base/info.json b/data/templates/base/info.json index af14d87996..af14d87996 100644 --- a/quantum/template/base/info.json +++ b/data/templates/base/info.json diff --git a/quantum/template/base/keyboard.c b/data/templates/base/keyboard.c index f69ae16ede..f69ae16ede 100644 --- a/quantum/template/base/keyboard.c +++ b/data/templates/base/keyboard.c diff --git a/quantum/template/base/keyboard.h b/data/templates/base/keyboard.h index bd2e88d12b..bd2e88d12b 100644 --- a/quantum/template/base/keyboard.h +++ b/data/templates/base/keyboard.h diff --git a/quantum/template/base/keymaps/default/keymap.c b/data/templates/base/keymaps/default/keymap.c index d8020ab3e3..d8020ab3e3 100644 --- a/quantum/template/base/keymaps/default/keymap.c +++ b/data/templates/base/keymaps/default/keymap.c diff --git a/quantum/template/base/keymaps/default/readme.md b/data/templates/base/keymaps/default/readme.md index e052ed80f1..e052ed80f1 100644 --- a/quantum/template/base/keymaps/default/readme.md +++ b/data/templates/base/keymaps/default/readme.md diff --git a/quantum/template/ps2avrgb/config.h b/data/templates/ps2avrgb/config.h index 6150bcce6d..6150bcce6d 100644 --- a/quantum/template/ps2avrgb/config.h +++ b/data/templates/ps2avrgb/config.h diff --git a/quantum/template/ps2avrgb/readme.md b/data/templates/ps2avrgb/readme.md index 94063f9ebc..94063f9ebc 100644 --- a/quantum/template/ps2avrgb/readme.md +++ b/data/templates/ps2avrgb/readme.md diff --git a/quantum/template/ps2avrgb/rules.mk b/data/templates/ps2avrgb/rules.mk index 6c0b7cc231..6c0b7cc231 100644 --- a/quantum/template/ps2avrgb/rules.mk +++ b/data/templates/ps2avrgb/rules.mk diff --git a/lib/python/qmk/cli/format/c.py b/lib/python/qmk/cli/format/c.py index b7263e19f3..0160e6036f 100644 --- a/lib/python/qmk/cli/format/c.py +++ b/lib/python/qmk/cli/format/c.py @@ -12,7 +12,7 @@ from qmk.c_parse import c_source_files c_file_suffixes = ('c', 'h', 'cpp') core_dirs = ('drivers', 'quantum', 'tests', 'tmk_core', 'platforms') -ignored = ('tmk_core/protocol/usb_hid', 'quantum/template', 'platforms/chibios') +ignored = ('tmk_core/protocol/usb_hid', 'platforms/chibios/boards') def find_clang_format(): diff --git a/lib/python/qmk/cli/new/keyboard.py b/lib/python/qmk/cli/new/keyboard.py index 9e4232679d..369d2bd7da 100644 --- a/lib/python/qmk/cli/new/keyboard.py +++ b/lib/python/qmk/cli/new/keyboard.py @@ -115,9 +115,9 @@ def find_user_name(): def copy_templates(keyboard_type, keyboard_path): - """Copies the template files from quantum/template to the new keyboard directory. + """Copies the template files from data/templates to the new keyboard directory. """ - template_base_path = Path('quantum/template') + template_base_path = Path('data/templates') keyboard_basename = keyboard_path.name cli.log.info('Copying base template files...') diff --git a/quantum/tools/readme.md b/quantum/tools/readme.md deleted file mode 100644 index 5f355256de..0000000000 --- a/quantum/tools/readme.md +++ /dev/null @@ -1,6 +0,0 @@ -`eeprom_reset.hex` is to reset the eeprom on the Atmega32u4, like this: - - dfu-programmer atmega32u4 erase - dfu-programmer atmega32u4 flash --eeprom eeprom_reset.hex - - You'll need to reflash afterwards, because DFU requires the flash to be erased before messing with the eeprom. diff --git a/util/new_keyboard.sh b/util/new_keyboard.sh index 87b7cde0c9..62e8cb9e13 100755 --- a/util/new_keyboard.sh +++ b/util/new_keyboard.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # This script generates a new keyboard directory under keyboards/, -# and copies the template files from quantum/template/ into it. +# and copies the template files from data/templates/ into it. # Print an error message with the word "ERROR" in red. echo_error() { @@ -35,11 +35,11 @@ copy_templates() { mkdir -p "$keyboard_dir" echo -n "Copying base template files..." - cp -r "quantum/template/base/." "${keyboard_dir}" + cp -r "data/templates/base/." "${keyboard_dir}" echo " done" echo -n "Copying $keyboard_type template files..." - cp -r "quantum/template/${keyboard_type}/." "${keyboard_dir}" + cp -r "data/templates/${keyboard_type}/." "${keyboard_dir}" echo " done" echo -n "Renaming keyboard files..." diff --git a/quantum/tools/eeprom_reset.hex b/util/reset.eep index a8a75389fe..a8a75389fe 100644 --- a/quantum/tools/eeprom_reset.hex +++ b/util/reset.eep |