Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
54f6ff3bd5
@ -97,7 +97,7 @@ MAIN_KEYMAP_PATH_4 := $(KEYBOARD_PATH_4)/keymaps/$(KEYMAP)
|
|||||||
MAIN_KEYMAP_PATH_5 := $(KEYBOARD_PATH_5)/keymaps/$(KEYMAP)
|
MAIN_KEYMAP_PATH_5 := $(KEYBOARD_PATH_5)/keymaps/$(KEYMAP)
|
||||||
|
|
||||||
# Pull in rules from info.json
|
# Pull in rules from info.json
|
||||||
INFO_RULES_MK = $(shell bin/qmk generate-rules-mk --quiet --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/rules.mk)
|
INFO_RULES_MK = $(shell bin/qmk generate-rules-mk --quiet --escape --keyboard $(KEYBOARD) --output $(KEYBOARD_OUTPUT)/src/rules.mk)
|
||||||
include $(INFO_RULES_MK)
|
include $(INFO_RULES_MK)
|
||||||
|
|
||||||
# Check for keymap.json first, so we can regenerate keymap.c
|
# Check for keymap.json first, so we can regenerate keymap.c
|
||||||
|
@ -36,6 +36,7 @@ def process_mapping_rule(kb_info_json, rules_key, info_dict):
|
|||||||
|
|
||||||
@cli.argument('-o', '--output', arg_only=True, type=normpath, help='File to write to')
|
@cli.argument('-o', '--output', arg_only=True, type=normpath, help='File to write to')
|
||||||
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
|
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
|
||||||
|
@cli.argument('-e', '--escape', arg_only=True, action='store_true', help="Escape spaces in quiet mode")
|
||||||
@cli.argument('-kb', '--keyboard', help='Keyboard to generate config.h for.')
|
@cli.argument('-kb', '--keyboard', help='Keyboard to generate config.h for.')
|
||||||
@cli.subcommand('Used by the make system to generate info_config.h from info.json', hidden=True)
|
@cli.subcommand('Used by the make system to generate info_config.h from info.json', hidden=True)
|
||||||
@automagic_keyboard
|
@automagic_keyboard
|
||||||
@ -83,7 +84,10 @@ def generate_rules_mk(cli):
|
|||||||
cli.args.output.write_text(rules_mk)
|
cli.args.output.write_text(rules_mk)
|
||||||
|
|
||||||
if cli.args.quiet:
|
if cli.args.quiet:
|
||||||
print(cli.args.output)
|
if cli.args.escape:
|
||||||
|
print(cli.args.output.as_posix().replace(' ', '\\ '))
|
||||||
|
else:
|
||||||
|
print(cli.args.output)
|
||||||
else:
|
else:
|
||||||
cli.log.info('Wrote rules.mk to %s.', cli.args.output)
|
cli.log.info('Wrote rules.mk to %s.', cli.args.output)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user