forked from forks/qmk_firmware
Align some quantum sub-directories (#14134)
* Misc folder tidy * Review comments * Remove redundant entry
This commit is contained in:
parent
2827a3cf75
commit
2cade3a483
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,7 +20,6 @@
|
||||||
api_data/v1
|
api_data/v1
|
||||||
doxygen/
|
doxygen/
|
||||||
quantum/version.h
|
quantum/version.h
|
||||||
!quantum/tools/eeprom_reset.hex
|
|
||||||
*.bin
|
*.bin
|
||||||
*.eep
|
*.eep
|
||||||
*.hex
|
*.hex
|
||||||
|
|
|
@ -12,7 +12,7 @@ from qmk.c_parse import c_source_files
|
||||||
|
|
||||||
c_file_suffixes = ('c', 'h', 'cpp')
|
c_file_suffixes = ('c', 'h', 'cpp')
|
||||||
core_dirs = ('drivers', 'quantum', 'tests', 'tmk_core', 'platforms')
|
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():
|
def find_clang_format():
|
||||||
|
|
|
@ -115,9 +115,9 @@ def find_user_name():
|
||||||
|
|
||||||
|
|
||||||
def copy_templates(keyboard_type, keyboard_path):
|
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
|
keyboard_basename = keyboard_path.name
|
||||||
|
|
||||||
cli.log.info('Copying base template files...')
|
cli.log.info('Copying base template files...')
|
||||||
|
|
|
@ -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.
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# This script generates a new keyboard directory under keyboards/,
|
# 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.
|
# Print an error message with the word "ERROR" in red.
|
||||||
echo_error() {
|
echo_error() {
|
||||||
|
@ -35,11 +35,11 @@ copy_templates() {
|
||||||
mkdir -p "$keyboard_dir"
|
mkdir -p "$keyboard_dir"
|
||||||
|
|
||||||
echo -n "Copying base template files..."
|
echo -n "Copying base template files..."
|
||||||
cp -r "quantum/template/base/." "${keyboard_dir}"
|
cp -r "data/templates/base/." "${keyboard_dir}"
|
||||||
echo " done"
|
echo " done"
|
||||||
|
|
||||||
echo -n "Copying $keyboard_type template files..."
|
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 " done"
|
||||||
|
|
||||||
echo -n "Renaming keyboard files..."
|
echo -n "Renaming keyboard files..."
|
||||||
|
|
Loading…
Reference in a new issue