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 b30b87ba1..f3b76f7ed 100644 --- a/.gitignore +++ b/.gitignore | |||
@@ -20,7 +20,6 @@ | |||
20 | api_data/v1 | 20 | api_data/v1 |
21 | doxygen/ | 21 | doxygen/ |
22 | quantum/version.h | 22 | quantum/version.h |
23 | !quantum/tools/eeprom_reset.hex | ||
24 | *.bin | 23 | *.bin |
25 | *.eep | 24 | *.eep |
26 | *.hex | 25 | *.hex |
diff --git a/quantum/template/avr/config.h b/data/templates/avr/config.h index 4192bbcfa..4192bbcfa 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 b099ed726..b099ed726 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 62fbb3434..62fbb3434 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 af14d8799..af14d8799 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 f69ae16ed..f69ae16ed 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 bd2e88d12..bd2e88d12 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 d8020ab3e..d8020ab3e 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 e052ed80f..e052ed80f 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 6150bcce6..6150bcce6 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 94063f9eb..94063f9eb 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 6c0b7cc23..6c0b7cc23 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 b7263e19f..0160e6036 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 | |||
12 | 12 | ||
13 | c_file_suffixes = ('c', 'h', 'cpp') | 13 | c_file_suffixes = ('c', 'h', 'cpp') |
14 | core_dirs = ('drivers', 'quantum', 'tests', 'tmk_core', 'platforms') | 14 | core_dirs = ('drivers', 'quantum', 'tests', 'tmk_core', 'platforms') |
15 | ignored = ('tmk_core/protocol/usb_hid', 'quantum/template', 'platforms/chibios') | 15 | ignored = ('tmk_core/protocol/usb_hid', 'platforms/chibios/boards') |
16 | 16 | ||
17 | 17 | ||
18 | def find_clang_format(): | 18 | def find_clang_format(): |
diff --git a/lib/python/qmk/cli/new/keyboard.py b/lib/python/qmk/cli/new/keyboard.py index 9e4232679..369d2bd7d 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(): | |||
115 | 115 | ||
116 | 116 | ||
117 | def copy_templates(keyboard_type, keyboard_path): | 117 | def copy_templates(keyboard_type, keyboard_path): |
118 | """Copies the template files from quantum/template to the new keyboard directory. | 118 | """Copies the template files from data/templates to the new keyboard directory. |
119 | """ | 119 | """ |
120 | template_base_path = Path('quantum/template') | 120 | template_base_path = Path('data/templates') |
121 | keyboard_basename = keyboard_path.name | 121 | keyboard_basename = keyboard_path.name |
122 | 122 | ||
123 | cli.log.info('Copying base template files...') | 123 | cli.log.info('Copying base template files...') |
diff --git a/quantum/tools/readme.md b/quantum/tools/readme.md deleted file mode 100644 index 5f355256d..000000000 --- a/quantum/tools/readme.md +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | `eeprom_reset.hex` is to reset the eeprom on the Atmega32u4, like this: | ||
2 | |||
3 | dfu-programmer atmega32u4 erase | ||
4 | dfu-programmer atmega32u4 flash --eeprom eeprom_reset.hex | ||
5 | |||
6 | 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 87b7cde0c..62e8cb9e1 100755 --- a/util/new_keyboard.sh +++ b/util/new_keyboard.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # This script generates a new keyboard directory under keyboards/, | 3 | # This script generates a new keyboard directory under keyboards/, |
4 | # and copies the template files from quantum/template/ into it. | 4 | # and copies the template files from data/templates/ into it. |
5 | 5 | ||
6 | # Print an error message with the word "ERROR" in red. | 6 | # Print an error message with the word "ERROR" in red. |
7 | echo_error() { | 7 | echo_error() { |
@@ -35,11 +35,11 @@ copy_templates() { | |||
35 | mkdir -p "$keyboard_dir" | 35 | mkdir -p "$keyboard_dir" |
36 | 36 | ||
37 | echo -n "Copying base template files..." | 37 | echo -n "Copying base template files..." |
38 | cp -r "quantum/template/base/." "${keyboard_dir}" | 38 | cp -r "data/templates/base/." "${keyboard_dir}" |
39 | echo " done" | 39 | echo " done" |
40 | 40 | ||
41 | echo -n "Copying $keyboard_type template files..." | 41 | echo -n "Copying $keyboard_type template files..." |
42 | cp -r "quantum/template/${keyboard_type}/." "${keyboard_dir}" | 42 | cp -r "data/templates/${keyboard_type}/." "${keyboard_dir}" |
43 | echo " done" | 43 | echo " done" |
44 | 44 | ||
45 | echo -n "Renaming keyboard files..." | 45 | echo -n "Renaming keyboard files..." |
diff --git a/quantum/tools/eeprom_reset.hex b/util/reset.eep index a8a75389f..a8a75389f 100644 --- a/quantum/tools/eeprom_reset.hex +++ b/util/reset.eep | |||