Enable 'keyboard.json' as a build target (#22891)
This commit is contained in:
parent
c5225ab500
commit
9f4a9d5826
12 changed files with 53 additions and 45 deletions
|
@ -18,10 +18,11 @@ from qmk.path import normpath, FileType
|
|||
@cli.argument('-km', '--keymap', completer=keymap_completer, help='The keymap to build a firmware for. Ignored when a configurator export is supplied.')
|
||||
@cli.subcommand('Generates the list of dependencies associated with a keyboard build and its generated files.', hidden=True)
|
||||
def generate_make_dependencies(cli):
|
||||
"""Generates the list of dependent info.json, rules.mk, and config.h files for a keyboard.
|
||||
"""Generates the list of dependent config files for a keyboard.
|
||||
"""
|
||||
interesting_files = [
|
||||
'info.json',
|
||||
'keyboard.json',
|
||||
'rules.mk',
|
||||
'post_rules.mk',
|
||||
'config.h',
|
||||
|
|
|
@ -251,7 +251,7 @@ def new_keyboard(cli):
|
|||
|
||||
# merge in infos
|
||||
community_info = Path(COMMUNITY / f'{default_layout}/info.json')
|
||||
augment_community_info(community_info, keyboard(kb_name) / community_info.name)
|
||||
augment_community_info(community_info, keyboard(kb_name) / 'keyboard.json')
|
||||
|
||||
cli.log.info(f'{{fg_green}}Created a new keyboard called {{fg_cyan}}{kb_name}{{fg_green}}.{{fg_reset}}')
|
||||
cli.log.info(f"Build Command: {{fg_yellow}}qmk compile -kb {kb_name} -km default{{fg_reset}}.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue