diff options
| author | Joel Challis <git@zvecr.com> | 2024-03-30 10:43:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-30 10:43:15 +0000 |
| commit | 426bb9c651a292dce6ae01e7ed9d41d94dbba99f (patch) | |
| tree | fbee5244f85aada3c7c17d52cd3dace080f7e06f /keyboards/preonic | |
| parent | 86e7df0c2a75baa00238f5350a912d5a4f8b622d (diff) | |
Migrate features and LTO from rules.mk to data driven (#23302)
Diffstat (limited to 'keyboards/preonic')
| -rw-r--r-- | keyboards/preonic/rev1/keyboard.json (renamed from keyboards/preonic/rev1/info.json) | 13 | ||||
| -rw-r--r-- | keyboards/preonic/rev1/rules.mk | 14 | ||||
| -rw-r--r-- | keyboards/preonic/rev2/keyboard.json (renamed from keyboards/preonic/rev2/info.json) | 13 | ||||
| -rw-r--r-- | keyboards/preonic/rev2/rules.mk | 14 |
4 files changed, 26 insertions, 28 deletions
diff --git a/keyboards/preonic/rev1/info.json b/keyboards/preonic/rev1/keyboard.json index e25c41d9b0..aa43fe2c47 100644 --- a/keyboards/preonic/rev1/info.json +++ b/keyboards/preonic/rev1/keyboard.json | |||
| @@ -6,6 +6,19 @@ | |||
| 6 | "pid": "0x67F3", | 6 | "pid": "0x67F3", |
| 7 | "device_version": "0.0.1" | 7 | "device_version": "0.0.1" |
| 8 | }, | 8 | }, |
| 9 | "build": { | ||
| 10 | "lto": true | ||
| 11 | }, | ||
| 12 | "features": { | ||
| 13 | "audio": true, | ||
| 14 | "backlight": true, | ||
| 15 | "bootmagic": true, | ||
| 16 | "command": false, | ||
| 17 | "console": false, | ||
| 18 | "extrakey": true, | ||
| 19 | "mousekey": false, | ||
| 20 | "nkro": false | ||
| 21 | }, | ||
| 9 | "matrix_pins": { | 22 | "matrix_pins": { |
| 10 | "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"], | 23 | "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"], |
| 11 | "rows": ["D2", "D5", "B5", "B6", "D3"] | 24 | "rows": ["D2", "D5", "B5", "B6", "D3"] |
diff --git a/keyboards/preonic/rev1/rules.mk b/keyboards/preonic/rev1/rules.mk deleted file mode 100644 index 5700acd66c..0000000000 --- a/keyboards/preonic/rev1/rules.mk +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | # Build Options | ||
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 5 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 7 | CONSOLE_ENABLE = no # Console for debug | ||
| 8 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 9 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 10 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 11 | AUDIO_ENABLE = yes # Audio output | ||
| 12 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 13 | |||
| 14 | LTO_ENABLE = yes | ||
diff --git a/keyboards/preonic/rev2/info.json b/keyboards/preonic/rev2/keyboard.json index 8f644f8f6c..3a6cab1e17 100644 --- a/keyboards/preonic/rev2/info.json +++ b/keyboards/preonic/rev2/keyboard.json | |||
| @@ -6,6 +6,19 @@ | |||
| 6 | "pid": "0x67F3", | 6 | "pid": "0x67F3", |
| 7 | "device_version": "0.0.2" | 7 | "device_version": "0.0.2" |
| 8 | }, | 8 | }, |
| 9 | "build": { | ||
| 10 | "lto": true | ||
| 11 | }, | ||
| 12 | "features": { | ||
| 13 | "audio": true, | ||
| 14 | "backlight": true, | ||
| 15 | "bootmagic": true, | ||
| 16 | "command": false, | ||
| 17 | "console": true, | ||
| 18 | "extrakey": true, | ||
| 19 | "mousekey": false, | ||
| 20 | "nkro": false | ||
| 21 | }, | ||
| 9 | "matrix_pins": { | 22 | "matrix_pins": { |
| 10 | "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"], | 23 | "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"], |
| 11 | "rows": ["D2", "D5", "B5", "B6", "D3"] | 24 | "rows": ["D2", "D5", "B5", "B6", "D3"] |
diff --git a/keyboards/preonic/rev2/rules.mk b/keyboards/preonic/rev2/rules.mk deleted file mode 100644 index 0404fb325a..0000000000 --- a/keyboards/preonic/rev2/rules.mk +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | # Build Options | ||
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 5 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 7 | CONSOLE_ENABLE = yes # Console for debug | ||
| 8 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 9 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 10 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 11 | AUDIO_ENABLE = yes # Audio output | ||
| 12 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 13 | |||
| 14 | LTO_ENABLE = yes | ||
