From 6c3540fb4ec01afd90a507e86acea974a67cbcc6 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:11:32 -0700 Subject: [PATCH] Convert `rules.mk` to data-driven --- keyboards/yowkees/keyball39/info.json | 28 +++++++++++++++++++ keyboards/yowkees/keyball39/rules.mk | 40 --------------------------- 2 files changed, 28 insertions(+), 40 deletions(-) diff --git a/keyboards/yowkees/keyball39/info.json b/keyboards/yowkees/keyball39/info.json index 81e030ba3d4..63413db7016 100644 --- a/keyboards/yowkees/keyball39/info.json +++ b/keyboards/yowkees/keyball39/info.json @@ -6,9 +6,37 @@ "pid": "0x0200", "device_version": "1.0.0" }, + "development_board": "promicro", + "features": { + "bootmagic": false, + "mousekey": false, + "extrakey": false, + "console": false, + "command": false, + "nkro": false, + "backlight": false, + "rgblight": false, + "rgb_matrix": false, + "oled": false, + "pointing_device": true, + "audio": false, + "sleep_led": false, + "grave_esc": false, + "magic": false, + "space_cadet": false + }, + "build": { + "lto": true + }, + "split": { + "enabled": true + }, "rgblight": { "driver": "ws2812" }, + "rgb_matrix": { + "driver": "ws2812" + }, "layout_aliases": { "LAYOUT": "LAYOUT_right_ball", "LAYOUT_universal": "LAYOUT_no_ball" diff --git a/keyboards/yowkees/keyball39/rules.mk b/keyboards/yowkees/keyball39/rules.mk index 0dfde5b3dd9..ab5a7fab188 100644 --- a/keyboards/yowkees/keyball39/rules.mk +++ b/keyboards/yowkees/keyball39/rules.mk @@ -1,49 +1,9 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# Link Time Optimization required for size. -LTO_ENABLE = yes - -# Build Options -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -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 -AUDIO_ENABLE = no # Audio output - -# Keyball39 is split keyboard. -SPLIT_KEYBOARD = yes - # Optical sensor driver for trackball. -POINTING_DEVICE_ENABLE = yes POINTING_DEVICE_DRIVER = custom SRC += drivers/pmw3360/pmw3360.c QUANTUM_LIB_SRC += spi_master.c # Optical sensor use SPI to communicate -# This is unnecessary for processing KC_MS_BTN*. -MOUSEKEY_ENABLE = no - -# Enabled only one of RGBLIGHT and RGB_MATRIX if necessary. -RGBLIGHT_ENABLE = no # Enable RGBLIGHT -RGB_MATRIX_ENABLE = no # Enable RGB_MATRIX (not work yet) -RGB_MATRIX_DRIVER = ws2812 - -# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend - -# To support OLED -OLED_ENABLE = no # Please Enable this in each keymaps. SRC += lib/oledkit/oledkit.c # OLED utility for Keyball series. # Include common library SRC += lib/keyball/keyball.c - -# Disable other features to squeeze firmware size -SPACE_CADET_ENABLE = no -GRAVE_ESC_ENABLE = no -MAGIC_ENABLE = no