Browse Source

Data-Driven Keyboard Conversions: H, Part 1 (#23524)

James Young 2 years ago
parent
commit
2e01b67ecc
36 changed files with 125 additions and 196 deletions
  1. 9 1
      keyboards/hadron/ver2/keyboard.json
  2. 0 13
      keyboards/hadron/ver2/rules.mk
  3. 12 0
      keyboards/hadron/ver3/info.json
  4. 0 16
      keyboards/hadron/ver3/rules.mk
  5. 5 0
      keyboards/halfcliff/info.json
  6. 0 16
      keyboards/halfcliff/rules.mk
  7. 7 1
      keyboards/hardwareabstraction/handwire/info.json
  8. 0 6
      keyboards/hardwareabstraction/handwire/rules.mk
  9. 4 1
      keyboards/hazel/bad_wings/info.json
  10. 0 4
      keyboards/hazel/bad_wings/rules.mk
  11. 7 0
      keyboards/hhkb/jp/info.json
  12. 0 7
      keyboards/hhkb/jp/rules.mk
  13. 6 0
      keyboards/hhkb/yang/info.json
  14. 0 10
      keyboards/hhkb/yang/rules.mk
  15. 3 0
      keyboards/hillside/46/0_1/info.json
  16. 0 2
      keyboards/hillside/46/0_1/rules.mk
  17. 3 0
      keyboards/hillside/48/0_1/info.json
  18. 0 2
      keyboards/hillside/48/0_1/rules.mk
  19. 3 0
      keyboards/hillside/52/0_1/info.json
  20. 0 2
      keyboards/hillside/52/0_1/rules.mk
  21. 10 0
      keyboards/hineybush/hbcp/info.json
  22. 0 12
      keyboards/hineybush/hbcp/rules.mk
  23. 9 0
      keyboards/horrortroll/handwired_k552/info.json
  24. 0 20
      keyboards/horrortroll/handwired_k552/rules.mk
  25. 12 0
      keyboards/horrortroll/lemon40/info.json
  26. 0 20
      keyboards/horrortroll/lemon40/rules.mk
  27. 9 0
      keyboards/hotdox/info.json
  28. 0 13
      keyboards/hotdox/rules.mk
  29. 8 0
      keyboards/hs60/v1/info.json
  30. 0 14
      keyboards/hs60/v1/rules.mk
  31. 6 0
      keyboards/hs60/v2/ansi/info.json
  32. 0 12
      keyboards/hs60/v2/ansi/rules.mk
  33. 6 0
      keyboards/hs60/v2/hhkb/info.json
  34. 0 12
      keyboards/hs60/v2/hhkb/rules.mk
  35. 6 0
      keyboards/hs60/v2/iso/info.json
  36. 0 12
      keyboards/hs60/v2/iso/rules.mk

+ 9 - 1
keyboards/hadron/ver2/info.json → keyboards/hadron/ver2/keyboard.json

@@ -27,5 +27,13 @@
         "pin": "D4"
     },
     "processor": "atmega32u4",
-    "bootloader": "halfkay"
+    "bootloader": "halfkay",
+    "features": {
+        "bootmagic": true,
+        "mousekey": true,
+        "extrakey": true,
+        "nkro": true,
+        "rgblight": true,
+        "oled": true
+    }
 }

+ 0 - 13
keyboards/hadron/ver2/rules.mk

@@ -1,13 +0,0 @@
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes       # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = no         # Console for debug
-COMMAND_ENABLE = no         # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-AUDIO_ENABLE = no           # Audio output
-RGBLIGHT_ENABLE = yes       # Enable WS2812 RGB underlight
-OLED_ENABLE = yes

+ 12 - 0
keyboards/hadron/ver3/info.json

@@ -35,5 +35,17 @@
     },
     "processor": "STM32F303",
     "bootloader": "stm32-dfu",
+    "features": {
+        "bootmagic": true,
+        "mousekey": true,
+        "extrakey": true,
+        "command": true,
+        "nkro": true,
+        "audio": true,
+        "rgblight": true,
+        "haptic": true,
+        "oled": true,
+        "encoder": true
+    },
     "board": "QMK_PROTON_C"
 }

+ 0 - 16
keyboards/hadron/ver3/rules.mk

@@ -1,17 +1 @@
-# Build Options
-#   change yes to no to disable
-#
-BACKLIGHT_ENABLE = no
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes	# Mouse keys
-EXTRAKEY_ENABLE = yes	# Audio control and System control
-CONSOLE_ENABLE = no	# Console for debug
-COMMAND_ENABLE = yes    # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-AUDIO_ENABLE = yes
-RGBLIGHT_ENABLE = yes
-RGB_MATRIX_ENABLE = no # once arm_rgb is implemented
-HAPTIC_ENABLE = yes
 HAPTIC_DRIVER = drv2605l
-OLED_ENABLE = yes
-ENCODER_ENABLER = yes

+ 5 - 0
keyboards/halfcliff/info.json

@@ -29,6 +29,11 @@
     },
     "processor": "atmega32u4",
     "bootloader": "caterina",
+    "features": {
+        "bootmagic": false,
+        "mousekey": false,
+        "extrakey": false
+    },
     "layouts": {
         "LAYOUT": {
             "layout": [

+ 0 - 16
keyboards/halfcliff/rules.mk

@@ -1,18 +1,2 @@
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = no       # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no       # Mouse keys
-EXTRAKEY_ENABLE = no       # Audio control and System control
-CONSOLE_ENABLE = no        # Console for debug
-COMMAND_ENABLE = no        # Commands for debug and configuration
-NKRO_ENABLE = no            # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
-AUDIO_ENABLE = no           # Audio output
-ENCODER_ENABLE = no
-POINTING_DEVICE_ENABLE = no
 CUSTOM_MATRIX = yes
-OLED_ENABLE = no
-
 SRC += matrix.c

+ 7 - 1
keyboards/hardwareabstraction/handwire/info.json

@@ -10,7 +10,13 @@
         "console": false,
         "extrakey": true,
         "mousekey": true,
-        "nkro": true
+        "nkro": true,
+        "haptic": true,
+        "oled": true,
+        "wpm": true
+    },
+    "build": {
+        "lto": true
     },
     "matrix_pins": {
         "cols": ["F0", "F1", "F4", "F5", "F6", "F7", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4"],

+ 0 - 6
keyboards/hardwareabstraction/handwire/rules.mk

@@ -1,7 +1 @@
-LTO_ENABLE = yes
-HAPTIC_ENABLE = yes
 HAPTIC_DRIVER = solenoid
-
-OLED_ENABLE = yes
-
-WPM_ENABLE = yes

+ 4 - 1
keyboards/hazel/bad_wings/info.json

@@ -18,7 +18,10 @@
   "features": {
     "bootmagic": true,
     "deferred_exec": true,
-    "nkro": false
+    "nkro": false,
+    "pointing_device": true,
+    "tri_layer": true,
+    "caps_word": true
   },
   "community_layouts": ["split_3x5_3"],
   "layouts": {

+ 0 - 4
keyboards/hazel/bad_wings/rules.mk

@@ -1,10 +1,6 @@
-TRI_LAYER_ENABLE = yes
-CAPS_WORD_ENABLE = yes
-
 SRC += matrix.c
 
 SPI_DRIVER_REQUIRED = yes
 CUSTOM_MATRIX = lite
 
 POINTING_DEVICE_DRIVER = cirque_pinnacle_spi
-POINTING_DEVICE_ENABLE  = yes

+ 7 - 0
keyboards/hhkb/jp/info.json

@@ -10,6 +10,13 @@
   },
   "processor": "atmega32u4",
   "bootloader": "atmel-dfu",
+  "features": {
+    "bootmagic": true,
+    "mousekey": true,
+    "extrakey": true,
+    "console": true,
+    "command": true
+  },
   "layouts": {
     "LAYOUT_jp": {
       "layout": [

+ 0 - 7
keyboards/hhkb/jp/rules.mk

@@ -1,14 +1,7 @@
 # Build Options
 #   change yes to no to disable
 #
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes  # Mouse keys
-EXTRAKEY_ENABLE = yes  # Audio control and System control
-CONSOLE_ENABLE = yes   # Console for debug
-COMMAND_ENABLE = yes   # Commands for debug and configuration
 CUSTOM_MATRIX = yes    # Custom matrix file for the HHKB
-NKRO_ENABLE = no            # Enable N-Key Rollover
-# BACKLIGHT_ENABLE = yes  # Enable keyboard backlight functionality
 
 # project specific files
 SRC = matrix.c

+ 6 - 0
keyboards/hhkb/yang/info.json

@@ -16,6 +16,12 @@
   },
   "processor": "atmega32u4",
   "bootloader": "lufa-ms",
+  "features": {
+    "bootmagic": true,
+    "mousekey": true,
+    "extrakey": true,
+    "command": true
+  },
   "debounce": 0,
   "community_layouts": ["60_hhkb"],
   "layouts": {

+ 0 - 10
keyboards/hhkb/yang/rules.mk

@@ -1,16 +1,6 @@
 # MCU frequency
 F_CPU = 8000000
 
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes       # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = no         # Console for debug
-COMMAND_ENABLE = yes        # Commands for debug and configuration
-NKRO_ENABLE = no            # USB Nkey Rollover
-
 # Custom matrix file for the HHKB
 CUSTOM_MATRIX = lite
 SRC += matrix.c

+ 3 - 0
keyboards/hillside/46/0_1/info.json

@@ -16,6 +16,9 @@
             {"pin_a": "F5", "pin_b": "F4"}
         ]
     },
+    "build": {
+        "lto": true
+    },
     "features": {
         "encoder": true,
         "extrakey": true,

+ 0 - 2
keyboards/hillside/46/0_1/rules.mk

@@ -1,5 +1,3 @@
-LTO_ENABLE = yes            # Use link time optimization for smaller firmware
-
 # If you add a haptic board,
 # enable it and set its driver here or in your keymap folder
 # The Pimoroni board's driver is DRV2605L 

+ 3 - 0
keyboards/hillside/48/0_1/info.json

@@ -16,6 +16,9 @@
             {"pin_a": "F5", "pin_b": "F4"}
         ]
     },
+    "build": {
+        "lto": true
+    },
     "features": {
         "encoder": true,
         "extrakey": true,

+ 0 - 2
keyboards/hillside/48/0_1/rules.mk

@@ -1,5 +1,3 @@
-LTO_ENABLE = yes            # Use link time optimization for smaller firmware
-
 # If you add a haptic board,
 # enable it and set its driver here or in your keymap folder
 # The Pimoroni board's driver is DRV2605L 

+ 3 - 0
keyboards/hillside/52/0_1/info.json

@@ -16,6 +16,9 @@
             {"pin_a": "F5", "pin_b": "F4"}
         ]
     },
+    "build": {
+        "lto": true
+    },
     "features": {
         "encoder": true,
         "extrakey": true,

+ 0 - 2
keyboards/hillside/52/0_1/rules.mk

@@ -1,5 +1,3 @@
-LTO_ENABLE = yes            # Use link time optimization for smaller firmware
-
 # If you add a haptic board,
 # enable it and set its driver here or in your keymap folder
 # The Pimoroni board's driver is DRV2605L 

+ 10 - 0
keyboards/hineybush/hbcp/info.json

@@ -36,6 +36,16 @@
     },
     "processor": "at90usb1286",
     "bootloader": "atmel-dfu",
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": true,
+        "console": true,
+        "command": true,
+        "nkro": true,
+        "backlight": true,
+        "rgblight": true
+    },
     "layouts": {
         "LAYOUT_all": {
             "layout": [

+ 0 - 12
keyboards/hineybush/hbcp/rules.mk

@@ -1,14 +1,2 @@
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no      # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = yes        # Console for debug
-COMMAND_ENABLE = yes        # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE = yes       # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = yes        # Enable keyboard RGB underglow
-AUDIO_ENABLE = no           # Audio output
 CUSTOM_MATRIX = lite
 SRC += matrix.c

+ 9 - 0
keyboards/horrortroll/handwired_k552/info.json

@@ -48,6 +48,15 @@
             "backing_size": 2048
         }
     },
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": true,
+        "nkro": true,
+        "rgb_matrix": true,
+        "oled": true,
+        "wpm": true
+    },
     "community_layouts": ["tkl_ansi"],
     "layouts": {
         "LAYOUT_tkl_ansi": {

+ 0 - 20
keyboards/horrortroll/handwired_k552/rules.mk

@@ -12,23 +12,3 @@ BOARD = STM32_F103_STM32DUINO
 BOOTLOADER_TYPE = stm32duino
 DFU_ARGS = -d 1EAF:0003 -a 2 -R
 DFU_SUFFIX_ARGS = -v 1EAF -p 0003
-
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no        # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = no         # Console for debug
-COMMAND_ENABLE = no         # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
-AUDIO_ENABLE = no           # Audio output
-
-# RGB Matrix enabled
-RGB_MATRIX_ENABLE = yes
-
-# OLED enabled
-OLED_ENABLE = yes
-WPM_ENABLE = yes

+ 12 - 0
keyboards/horrortroll/lemon40/info.json

@@ -32,6 +32,18 @@
     "diode_direction": "COL2ROW",
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": true,
+        "nkro": true,
+        "rgblight": true,
+        "oled": true,
+        "wpm": true
+    },
+    "build": {
+        "lto": true
+    },
     "layouts": {
         "LAYOUT": {
             "layout": [

+ 0 - 20
keyboards/horrortroll/lemon40/rules.mk

@@ -1,21 +1 @@
 SRC += lib/bongocat.c
-
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no        # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = no         # Console for debug
-COMMAND_ENABLE = no         # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-RGBLIGHT_ENABLE = yes       # Enable keyboard RGB underglow
-AUDIO_ENABLE = no           # Audio output
-
-# OLED enabled
-OLED_ENABLE = yes
-WPM_ENABLE = yes
-
-# Additional thing to reduce compiled size
-LTO_ENABLE = yes

+ 9 - 0
keyboards/hotdox/info.json

@@ -12,6 +12,15 @@
     },
     "processor": "atmega32u4",
     "bootloader": "atmel-dfu",
+    "features": {
+        "bootmagic": true,
+        "mousekey": true,
+        "extrakey": true,
+        "console": true,
+        "nkro": true,
+        "backlight": true,
+        "unicode": true
+    },
     "tapping": {
       "toggle": 1
     },

+ 0 - 13
keyboards/hotdox/rules.mk

@@ -1,17 +1,4 @@
-# Build Options
-#   change yes to no to disable
-#
 CUSTOM_MATRIX           = yes # Custom matrix file for the ErgoDone
-UNICODE_ENABLE          = yes # Unicode
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE         = yes  # Mouse keys
-EXTRAKEY_ENABLE         = yes # Audio control and System control
-CONSOLE_ENABLE          = yes # Console for debug
-COMMAND_ENABLE          = no  # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE        = yes # Enable keyboard backlight functionality
-SWAP_HANDS_ENABLE       = no  # Disable Onehand
-RGBLIGHT_ENABLE         = no
 
 # project specific files
 SRC =  matrix.c     \

+ 8 - 0
keyboards/hs60/v1/info.json

@@ -68,6 +68,14 @@
   },
   "processor": "atmega32u4",
   "bootloader": "qmk-dfu",
+  "features": {
+    "bootmagic": false,
+    "mousekey": false,
+    "extrakey": true,
+    "nkro": true,
+    "rgb_matrix": true,
+    "raw": true
+  },
   "community_layouts": ["60_ansi", "60_iso"],
   "layouts": {
     "LAYOUT_60_iso": {

+ 0 - 14
keyboards/hs60/v1/rules.mk

@@ -3,20 +3,6 @@
 # backlight effects.
 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
 
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = no       # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no        # Mouse keys
-EXTRAKEY_ENABLE = yes       # Audio control and System control
-CONSOLE_ENABLE = no         # Console for debug
-COMMAND_ENABLE = no         # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no       # Enable keyboard backlight functionality
-AUDIO_ENABLE = no           # Audio output
-RGB_MATRIX_ENABLE = yes     # Use RGB matrix
-RAW_ENABLE = yes
-
 # Experimental features for zealcmd please do no enable
 #RAW_ENABLE = yes
 #USE_KEYMAPS_IN_EEPROM = yes

+ 6 - 0
keyboards/hs60/v2/ansi/info.json

@@ -15,6 +15,12 @@
   "diode_direction": "COL2ROW",
   "processor": "STM32F303",
   "bootloader": "stm32-dfu",
+  "features": {
+    "bootmagic": true,
+    "mousekey": true,
+    "extrakey": true,
+    "nkro": true
+  },
   "board": "QMK_PROTON_C",
   "community_layouts": ["60_ansi"],
   "layouts": {

+ 0 - 12
keyboards/hs60/v2/ansi/rules.mk

@@ -3,18 +3,6 @@
 # backlight effects.
 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
 
-# Build Options
-#   change yes to no to disable
-#
-BACKLIGHT_ENABLE = no              # Enable keyboard backlight functionality
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes              # Mouse keys
-EXTRAKEY_ENABLE = yes              # Audio control and System control
-CONSOLE_ENABLE = no                # Console for debug
-COMMAND_ENABLE = no                # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-AUDIO_ENABLE = no                  # Audio output
-
 CIE1931_CURVE = yes
 
 # project specific files

+ 6 - 0
keyboards/hs60/v2/hhkb/info.json

@@ -15,6 +15,12 @@
   "diode_direction": "COL2ROW",
   "processor": "STM32F303",
   "bootloader": "stm32-dfu",
+  "features": {
+    "bootmagic": true,
+    "mousekey": true,
+    "extrakey": true,
+    "nkro": true
+  },
   "board": "QMK_PROTON_C",
   "layouts": {
     "LAYOUT_60_hhkb": {

+ 0 - 12
keyboards/hs60/v2/hhkb/rules.mk

@@ -3,18 +3,6 @@
 # backlight effects.
 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
 
-# Build Options
-#   change yes to no to disable
-#
-BACKLIGHT_ENABLE = no              # Enable keyboard backlight functionality
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes              # Mouse keys
-EXTRAKEY_ENABLE = yes              # Audio control and System control
-CONSOLE_ENABLE = no                # Console for debug
-COMMAND_ENABLE = no                # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-AUDIO_ENABLE = no                  # Audio output
-
 CIE1931_CURVE = yes
 
 # project specific files

+ 6 - 0
keyboards/hs60/v2/iso/info.json

@@ -15,6 +15,12 @@
   "diode_direction": "COL2ROW",
   "processor": "STM32F303",
   "bootloader": "stm32-dfu",
+  "features": {
+    "bootmagic": true,
+    "mousekey": true,
+    "extrakey": true,
+    "nkro": true
+  },
   "board": "QMK_PROTON_C",
   "community_layouts": ["60_iso"],
   "layouts": {

+ 0 - 12
keyboards/hs60/v2/iso/rules.mk

@@ -3,18 +3,6 @@
 # backlight effects.
 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
 
-# Build Options
-#   change yes to no to disable
-#
-BACKLIGHT_ENABLE = no              # Enable keyboard backlight functionality
-BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes              # Mouse keys
-EXTRAKEY_ENABLE = yes              # Audio control and System control
-CONSOLE_ENABLE = no                # Console for debug
-COMMAND_ENABLE = no                # Commands for debug and configuration
-NKRO_ENABLE = yes           # Enable N-Key Rollover
-AUDIO_ENABLE = no                  # Audio output
-
 CIE1931_CURVE = yes
 
 # project specific files