diff options
author | Joel Challis <git@zvecr.com> | 2023-01-11 02:13:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 02:13:32 +0000 |
commit | e11235ee14f9cd3fc45b836eec99ed312cb137dd (patch) | |
tree | 023866a25f9fe4db482a8c5f5d1c9cab24882c46 /lib/python/qmk | |
parent | 20474ae2321f0fb456731646b5b2e3090990b8df (diff) |
De-duplicate platform detection (#19545)
Diffstat (limited to 'lib/python/qmk')
-rw-r--r-- | lib/python/qmk/info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index af3b0f3091..789d05850c 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py @@ -751,6 +751,7 @@ def arm_processor_rules(info_data, rules): """ info_data['processor_type'] = 'arm' info_data['protocol'] = 'ChibiOS' + info_data['platform_key'] = 'chibios' if 'STM32' in info_data['processor']: info_data['platform'] = 'STM32' @@ -758,6 +759,7 @@ def arm_processor_rules(info_data, rules): info_data['platform'] = rules['MCU_SERIES'] elif 'ARM_ATSAM' in rules: info_data['platform'] = 'ARM_ATSAM' + info_data['platform_key'] = 'arm_atsam' return info_data @@ -767,6 +769,7 @@ def avr_processor_rules(info_data, rules): """ info_data['processor_type'] = 'avr' info_data['platform'] = rules['ARCH'] if 'ARCH' in rules else 'unknown' + info_data['platform_key'] = 'avr' info_data['protocol'] = 'V-USB' if info_data['processor'] in VUSB_PROCESSORS else 'LUFA' # FIXME(fauxpark/anyone): Eventually we should detect the protocol by looking at PROTOCOL inherited from mcu_selection.mk: |