diff options
Diffstat (limited to 'lib/python/qmk/cli/generate/rules_mk.py')
-rwxr-xr-x | lib/python/qmk/cli/generate/rules_mk.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/generate/rules_mk.py b/lib/python/qmk/cli/generate/rules_mk.py index 72ed3c45f..570ef5a0d 100755 --- a/lib/python/qmk/cli/generate/rules_mk.py +++ b/lib/python/qmk/cli/generate/rules_mk.py | |||
@@ -41,9 +41,12 @@ def generate_rules_mk(cli): | |||
41 | # Find features that should be enabled | 41 | # Find features that should be enabled |
42 | if 'features' in kb_info_json: | 42 | if 'features' in kb_info_json: |
43 | for feature, enabled in kb_info_json['features'].items(): | 43 | for feature, enabled in kb_info_json['features'].items(): |
44 | feature = feature.upper() | 44 | if feature == 'bootmagic_lite' and enabled: |
45 | enabled = 'yes' if enabled else 'no' | 45 | rules_mk_lines.append(f'BOOTMAGIC_ENABLE := lite') |
46 | rules_mk_lines.append(f'{feature}_ENABLE := {enabled}') | 46 | else: |
47 | feature = feature.upper() | ||
48 | enabled = 'yes' if enabled else 'no' | ||
49 | rules_mk_lines.append(f'{feature}_ENABLE := {enabled}') | ||
47 | 50 | ||
48 | # Set the LED driver | 51 | # Set the LED driver |
49 | if 'led_matrix' in kb_info_json and 'driver' in kb_info_json['led_matrix']: | 52 | if 'led_matrix' in kb_info_json and 'driver' in kb_info_json['led_matrix']: |