From d02c4c5241b92396c883b9efa6f140236e74fa2d Mon Sep 17 00:00:00 2001 From: Zach White Date: Sat, 30 Jan 2021 13:08:58 -0800 Subject: [PATCH] Add a _SUPPORTED flag (#9058) * Initial attempt at allowing keyboards to indicate what features they do not support * try to use a for loop instead * Update disable_features.mk Co-authored-by: Drashna Jaelre * add a few more features * remove my test fixture * disable things that make all:all suggested" Co-authored-by: Zach White Co-authored-by: Drashna Jaelre --- build_keyboard.mk | 3 ++ disable_features.mk | 31 ++++++++++++++++++++ keyboards/40percentclub/4x4/rules.mk | 5 ++++ keyboards/40percentclub/gherkin/rules.mk | 4 +++ keyboards/40percentclub/nori/rules.mk | 3 ++ keyboards/acheron/shark/rules.mk | 5 ++++ keyboards/amjkeyboard/amj66/rules.mk | 4 +++ keyboards/boardsource/4x12/rules.mk | 5 ++++ keyboards/boardsource/5x12/rules.mk | 5 ++++ keyboards/chimera_ls/rules.mk | 5 ++++ keyboards/clueboard/66_hotswap/gen1/rules.mk | 4 ++- keyboards/contra/rules.mk | 5 ++++ keyboards/crkbd/rev1/legacy/rules.mk | 3 ++ keyboards/dm9records/plaid/rules.mk | 5 ++++ keyboards/dm9records/tartan/rules.mk | 5 ++++ keyboards/efreet/rules.mk | 4 +++ keyboards/ergodox_ez/rules.mk | 4 +++ keyboards/evyd13/eon40/rules.mk | 5 ++++ keyboards/evyd13/nt660/rules.mk | 5 ++++ keyboards/evyd13/pockettype/rules.mk | 5 ++++ keyboards/fractal/rules.mk | 5 ++++ keyboards/jj40/rules.mk | 3 ++ keyboards/jnao/rules.mk | 4 +++ keyboards/kbdfans/kbd4x/rules.mk | 3 ++ keyboards/keebio/levinson/rev3/rules.mk | 4 +++ keyboards/keebio/wavelet/rules.mk | 3 ++ keyboards/lazydesigners/dimple/rules.mk | 4 +++ keyboards/lets_split/rev2/rules.mk | 2 ++ keyboards/lets_split/sockets/rules.mk | 3 ++ keyboards/lets_split_eh/eh/rules.mk | 3 ++ keyboards/mechstudio/ud_40_ortho/rules.mk | 4 +++ keyboards/meira/promicro/rules.mk | 4 +++ keyboards/montsinger/rebound/rev4/rules.mk | 4 +++ keyboards/niu_mini/rules.mk | 4 +++ keyboards/quark/rules.mk | 4 +++ keyboards/redox/rules.mk | 4 +++ keyboards/rgbkb/zygomorph/rules.mk | 4 +++ keyboards/signum/3_0/elitec/rules.mk | 5 ++++ keyboards/spaceman/pancake/feather/rules.mk | 5 ++++ keyboards/spaceman/pancake/promicro/rules.mk | 5 ++++ keyboards/telophase/rules.mk | 5 ++++ keyboards/vitamins_included/rev2/rules.mk | 3 ++ keyboards/zlant/rules.mk | 4 +++ keyboards/zvecr/split_blackpill/rules.mk | 4 +++ keyboards/zvecr/zv48/f401/rules.mk | 4 +++ 45 files changed, 211 insertions(+), 1 deletion(-) create mode 100644 disable_features.mk diff --git a/build_keyboard.mk b/build_keyboard.mk index 2b725ea68d4bf92f8977945819cd67468a6b5bc4..fdc17c907dc2b68e1f975884afd97eccb6a83482 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk @@ -283,6 +283,9 @@ ifneq ("$(wildcard $(USER_PATH)/config.h)","") CONFIG_H += $(USER_PATH)/config.h endif +# Disable features that a keyboard doesn't support +-include disable_features.mk + # Object files directory # To put object files in current directory, use a dot (.), do NOT make # this an empty or blank macro! diff --git a/disable_features.mk b/disable_features.mk new file mode 100644 index 0000000000000000000000000000000000000000..84d8316eac9c692b2b05daf52b5498fda259eca4 --- /dev/null +++ b/disable_features.mk @@ -0,0 +1,31 @@ +# Unconditionally disable features that a keyboard advertises it doesn't support + +FEATURE_NAMES := +FEATURE_NAMES += ADAFRUIT_BLE +FEATURE_NAMES += AUDIO +FEATURE_NAMES += BACKLIGHT +FEATURE_NAMES += BLUETOOTH +FEATURE_NAMES += DIP_SWITCH +FEATURE_NAMES += DYNAMIC_KEYMAP +FEATURE_NAMES += ENCODER +FEATURE_NAMES += HAPTIC +FEATURE_NAMES += HD44780 +FEATURE_NAMES += IOS_DEVICE +FEATURE_NAMES += LCD_BACKLIGHT +FEATURE_NAMES += LCD +FEATURE_NAMES += OLED +FEATURE_NAMES += POINTING_DEVICE +FEATURE_NAMES += PRINTING +FEATURE_NAMES += PS2_MOUSE +FEATURE_NAMES += RGBLIGHT +FEATURE_NAMES += RGB_MATRIX +FEATURE_NAMES += SLEEP_LED +FEATURE_NAMES += SERIAL_LINK +FEATURE_NAMES += STENO +FEATURE_NAMES += SWAP_HANDS +FEATURE_NAMES += VISUALIZER +FEATURE_NAMES += WATCHDOG +FEATURE_NAMES += XT + +$(foreach AFEATURE,$(FEATURE_NAMES),\ + $(if $(filter $($(AFEATURE)_SUPPORTED),no),$(eval $(AFEATURE)_ENABLE=no))) diff --git a/keyboards/40percentclub/4x4/rules.mk b/keyboards/40percentclub/4x4/rules.mk index 08d4b4a40c9ff0168584dc4d1581f29ed76cc33b..e092372d7d15255cd735968627cbcf4529d37a75 100644 --- a/keyboards/40percentclub/4x4/rules.mk +++ b/keyboards/40percentclub/4x4/rules.mk @@ -31,3 +31,8 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x4 ortho_4x8 ortho_4x12 ortho_4x16 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/40percentclub/gherkin/rules.mk b/keyboards/40percentclub/gherkin/rules.mk index d8c4894a85adedfa8056bbdbbd60e3686a8b5484..db971e00efc21f5ac10dab0c6be50baf8cfd9c7f 100644 --- a/keyboards/40percentclub/gherkin/rules.mk +++ b/keyboards/40percentclub/gherkin/rules.mk @@ -26,3 +26,7 @@ AUDIO_ENABLE = no RGBLIGHT_ENABLE = no LAYOUTS = ortho_3x10 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/40percentclub/nori/rules.mk b/keyboards/40percentclub/nori/rules.mk index 5fbdb3ac0b0ef40eaf16a438ada641e851617792..df09b0bdee81e960eb1f1901fe96617306cc24dc 100644 --- a/keyboards/40percentclub/nori/rules.mk +++ b/keyboards/40percentclub/nori/rules.mk @@ -32,3 +32,6 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x4 ortho_4x8 ortho_4x12 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/acheron/shark/rules.mk b/keyboards/acheron/shark/rules.mk index 1bd963c817272a7f6ab50ca8871965257ff7b3e8..71305883b500147402bc63cbec8e3bed3fbd04e4 100644 --- a/keyboards/acheron/shark/rules.mk +++ b/keyboards/acheron/shark/rules.mk @@ -22,3 +22,8 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/amjkeyboard/amj66/rules.mk b/keyboards/amjkeyboard/amj66/rules.mk index b5d3f1ee359a8ea23c9641ed87dfc0d842e52e7a..e65c6c1c73f4b0d9a6ef59b1ba16367bf268a0de 100644 --- a/keyboards/amjkeyboard/amj66/rules.mk +++ b/keyboards/amjkeyboard/amj66/rules.mk @@ -31,3 +31,7 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = 66_ansi 66_iso + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/boardsource/4x12/rules.mk b/keyboards/boardsource/4x12/rules.mk index 0999b9d62b844e652704b0c67e36be3bbbe8b840..dea0aa2a91e81acb12a52932d5cad28ba5854684 100644 --- a/keyboards/boardsource/4x12/rules.mk +++ b/keyboards/boardsource/4x12/rules.mk @@ -30,3 +30,8 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/boardsource/5x12/rules.mk b/keyboards/boardsource/5x12/rules.mk index f26c7fa800c2962bf470ff5ded65ccad9c4efd2d..de6f7bd3cfab99605b5caf502416de59805bd9cc 100644 --- a/keyboards/boardsource/5x12/rules.mk +++ b/keyboards/boardsource/5x12/rules.mk @@ -31,3 +31,8 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_5x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/chimera_ls/rules.mk b/keyboards/chimera_ls/rules.mk index ecab7133a41aa5327af2eec4f7ca1be34b7f07ca..162e06aaf756445626b0592204d8644f7380181e 100644 --- a/keyboards/chimera_ls/rules.mk +++ b/keyboards/chimera_ls/rules.mk @@ -38,3 +38,8 @@ CHIMERA_LS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \ SRC = matrix.c LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/clueboard/66_hotswap/gen1/rules.mk b/keyboards/clueboard/66_hotswap/gen1/rules.mk index 0f5f71ac6da890b8c57b91a417af6c7db7df9211..a582144d3ab8319b0ef08d22ed6f90adb7e80010 100644 --- a/keyboards/clueboard/66_hotswap/gen1/rules.mk +++ b/keyboards/clueboard/66_hotswap/gen1/rules.mk @@ -18,4 +18,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover AUDIO_ENABLE = yes # SERIAL_LINK_ENABLE = yes -LAYOUTS = 66_ansi +# project specific files +SRC = led.c +LAYOUTS += 66_ansi diff --git a/keyboards/contra/rules.mk b/keyboards/contra/rules.mk index de553f57dd49fe14439aadf819ac1549ae6f7416..5894ca13267c59e98118357bf3d2663313973525 100755 --- a/keyboards/contra/rules.mk +++ b/keyboards/contra/rules.mk @@ -29,3 +29,8 @@ AUDIO_ENABLE = no # Audio output on port C6 LAYOUTS = planck_mit ortho_4x12 LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/crkbd/rev1/legacy/rules.mk b/keyboards/crkbd/rev1/legacy/rules.mk index 2bef242977ae3792a7cac32556b8326dae94ab7a..94c5fe0242074b17a9400bf2294a170fec49d596 100644 --- a/keyboards/crkbd/rev1/legacy/rules.mk +++ b/keyboards/crkbd/rev1/legacy/rules.mk @@ -5,3 +5,6 @@ SRC += matrix.c \ split_scomm.c QUANTUM_LIB_SRC += i2c.c serial.c + +# Disable unsupported hardware +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/dm9records/plaid/rules.mk b/keyboards/dm9records/plaid/rules.mk index 84075f0f025b423e4976464fe6b04a7847d178bd..315af269304449b51a4a4c0fbb671815801543a5 100644 --- a/keyboards/dm9records/plaid/rules.mk +++ b/keyboards/dm9records/plaid/rules.mk @@ -33,3 +33,8 @@ FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x12 planck_mit LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/dm9records/tartan/rules.mk b/keyboards/dm9records/tartan/rules.mk index de2f52d421d04f4ec0ce69e19431f13aac833ca7..241f8404f645288c96d5ee7746b55de9515ea9bc 100644 --- a/keyboards/dm9records/tartan/rules.mk +++ b/keyboards/dm9records/tartan/rules.mk @@ -33,3 +33,8 @@ FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_iso 60_iso_split_bs_rshift LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/efreet/rules.mk b/keyboards/efreet/rules.mk index a9a438746e8640545017ef88d10d017319d15fff..eeacc5199b67b8c1293df3731b7778c06bf1eadc 100644 --- a/keyboards/efreet/rules.mk +++ b/keyboards/efreet/rules.mk @@ -22,3 +22,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk index b94990a96f46bf9ee9a8f0037ed700057e17afe0..1000ef78633cc100cb0b01d216d92d573903e0e7 100644 --- a/keyboards/ergodox_ez/rules.mk +++ b/keyboards/ergodox_ez/rules.mk @@ -41,3 +41,7 @@ SRC += matrix.c \ QUANTUM_LIB_SRC += i2c_master.c LAYOUTS = ergodox + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/evyd13/eon40/rules.mk b/keyboards/evyd13/eon40/rules.mk index a1a2f76d4f9bbed0e5fd17ce81c63a8e535893a3..f4ab408eb36b8942ac9ed3c04c84b90d3e77d9a1 100644 --- a/keyboards/evyd13/eon40/rules.mk +++ b/keyboards/evyd13/eon40/rules.mk @@ -34,3 +34,8 @@ ENCODER_ENABLE = yes LAYOUTS = ortho_4x12 planck_mit LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/evyd13/nt660/rules.mk b/keyboards/evyd13/nt660/rules.mk index 9f8f0cd8965edd81ef82337f8b98b31e20a56d65..9fad888855239e78ec68010e99b7f3cb7ad3c973 100644 --- a/keyboards/evyd13/nt660/rules.mk +++ b/keyboards/evyd13/nt660/rules.mk @@ -31,3 +31,8 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = 66_ansi 66_iso + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/evyd13/pockettype/rules.mk b/keyboards/evyd13/pockettype/rules.mk index 164bf9cef5367d12a763546f7150d99f04dad1f0..2b3dc6fc2221eb027273d10b2476db0c1489c75a 100644 --- a/keyboards/evyd13/pockettype/rules.mk +++ b/keyboards/evyd13/pockettype/rules.mk @@ -29,3 +29,8 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/fractal/rules.mk b/keyboards/fractal/rules.mk index e5d540e0ad7c1592b3cd30731d428f6a27933f2c..d83deb4223215c014da6886342999dd6b92c9486 100755 --- a/keyboards/fractal/rules.mk +++ b/keyboards/fractal/rules.mk @@ -29,3 +29,8 @@ AUDIO_ENABLE = no # Audio output on port C6 LAYOUTS = ortho_5x12 # preonic_mit LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/jj40/rules.mk b/keyboards/jj40/rules.mk index 0a912cfadccede061a582dfe69a5983cd037faff..579c432206cfbe8a912b53d5bf43d4fac50ca62e 100644 --- a/keyboards/jj40/rules.mk +++ b/keyboards/jj40/rules.mk @@ -33,3 +33,6 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/jnao/rules.mk b/keyboards/jnao/rules.mk index ac8bb366e3f770a1693a047afcf4c2d448191c39..6e620b56a5be15d6392cb0a49a8183bca424da55 100644 --- a/keyboards/jnao/rules.mk +++ b/keyboards/jnao/rules.mk @@ -33,3 +33,7 @@ FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_5x12 ortho_4x12 LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/kbdfans/kbd4x/rules.mk b/keyboards/kbdfans/kbd4x/rules.mk index 1e2096924195b25eb0e7b094699a9aa7ba4ca091..f4664f8f513d6b41651b7b8ea2c161eb0db44ea1 100644 --- a/keyboards/kbdfans/kbd4x/rules.mk +++ b/keyboards/kbdfans/kbd4x/rules.mk @@ -32,3 +32,6 @@ AUDIO_ENABLE = no # Audio output on port C6 FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/keebio/levinson/rev3/rules.mk b/keyboards/keebio/levinson/rev3/rules.mk index bd518d8f273fee0463a492276c1fdab7ac398bbe..176c9b97dfb102e6b6a3a985850675d45c4d376d 100644 --- a/keyboards/keebio/levinson/rev3/rules.mk +++ b/keyboards/keebio/levinson/rev3/rules.mk @@ -1 +1,5 @@ BACKLIGHT_ENABLE = yes + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/keebio/wavelet/rules.mk b/keyboards/keebio/wavelet/rules.mk index b00535b7b4bb0fabaa6a409864b7dba0e561f779..cf4cab56e4d3dbb47aded8179463cf22ddbe293a 100644 --- a/keyboards/keebio/wavelet/rules.mk +++ b/keyboards/keebio/wavelet/rules.mk @@ -32,3 +32,6 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/lazydesigners/dimple/rules.mk b/keyboards/lazydesigners/dimple/rules.mk index 395cd8e9a6e28f4576e640fdd709f5ace349406c..5460d74733d8674167d84ee6135e0786fe2e2f2d 100644 --- a/keyboards/lazydesigners/dimple/rules.mk +++ b/keyboards/lazydesigners/dimple/rules.mk @@ -20,3 +20,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control NKRO_ENABLE = yes # USB Nkey Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/lets_split/rev2/rules.mk b/keyboards/lets_split/rev2/rules.mk index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..271780b75ecdda532ff24433acfd6c3c18d2b6a4 100644 --- a/keyboards/lets_split/rev2/rules.mk +++ b/keyboards/lets_split/rev2/rules.mk @@ -0,0 +1,2 @@ +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/lets_split/sockets/rules.mk b/keyboards/lets_split/sockets/rules.mk index 7ca5886150ae8d5303f1e184dbd047f4c9f40e24..4174af2d0b80eb9bcbc87fca0b194444f6e0e2fb 100644 --- a/keyboards/lets_split/sockets/rules.mk +++ b/keyboards/lets_split/sockets/rules.mk @@ -3,3 +3,6 @@ AUDIO_ENABLE = yes RGBLIGHT_ENABLE = yes #Don't enable this along with I2C LTO_ENABLE = yes + +# Disable unsupported hardware +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/lets_split_eh/eh/rules.mk b/keyboards/lets_split_eh/eh/rules.mk index 31077066a364bc1618e1d40476b2f616d3c2ff6c..0c7e1cb04e14c40859b70d68346556507b150167 100644 --- a/keyboards/lets_split_eh/eh/rules.mk +++ b/keyboards/lets_split_eh/eh/rules.mk @@ -1,2 +1,5 @@ BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes + +# Disable unsupported hardware +AUDIO_SUPPORTED = no diff --git a/keyboards/mechstudio/ud_40_ortho/rules.mk b/keyboards/mechstudio/ud_40_ortho/rules.mk index 8ae52f196f6a8912e6f34c7f02690c4495c3bb9b..4593fbf96e391ea7dffdba3008cd839682b2fa03 100644 --- a/keyboards/mechstudio/ud_40_ortho/rules.mk +++ b/keyboards/mechstudio/ud_40_ortho/rules.mk @@ -22,3 +22,7 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth AUDIO_ENABLE = no # Audio output LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/meira/promicro/rules.mk b/keyboards/meira/promicro/rules.mk index 3c81f1b344a1023e0ccdd93b2d719b50feba178b..bbb8bda6b5942381ca90d1bad7358e5a73dcc29b 100644 --- a/keyboards/meira/promicro/rules.mk +++ b/keyboards/meira/promicro/rules.mk @@ -1 +1,5 @@ BLUETOOTH_ENABLE = no + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no diff --git a/keyboards/montsinger/rebound/rev4/rules.mk b/keyboards/montsinger/rebound/rev4/rules.mk index 0759709231e1371f872f57922906bcdab5f1a048..f51017db490602ed3607892e7533bfebfd636f56 100644 --- a/keyboards/montsinger/rebound/rev4/rules.mk +++ b/keyboards/montsinger/rebound/rev4/rules.mk @@ -31,3 +31,7 @@ ENCODER_ENABLE = yes LAYOUTS = ortho_4x12 LAYOUTS_HAS_RGB = no +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/niu_mini/rules.mk b/keyboards/niu_mini/rules.mk index 67548a448c1aa0c1fc24429e84dbf9b33f76b401..1059ed2f7068bb9f796638b5daa6472eaf5ed3b0 100644 --- a/keyboards/niu_mini/rules.mk +++ b/keyboards/niu_mini/rules.mk @@ -34,3 +34,7 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend LAYOUTS = ortho_4x12 planck_mit LAYOUTS_HAS_RGB = no + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/quark/rules.mk b/keyboards/quark/rules.mk index 41e815be5f138d791cd70a8c8999993b6b9b41b7..2fd5d44f995c89538234a57a7c0d2bb240466ab3 100644 --- a/keyboards/quark/rules.mk +++ b/keyboards/quark/rules.mk @@ -23,3 +23,7 @@ AUDIO_ENABLE = no # Audio output UNICODE_ENABLE = yes # Unicode LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/redox/rules.mk b/keyboards/redox/rules.mk index 8ee269a141ab1fec22ee4bc9309f44b2749b9666..7e91f23536454d14ff548f288237349d28b12cbd 100644 --- a/keyboards/redox/rules.mk +++ b/keyboards/redox/rules.mk @@ -34,3 +34,7 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. SPLIT_KEYBOARD = yes DEFAULT_FOLDER = redox/rev1 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/rgbkb/zygomorph/rules.mk b/keyboards/rgbkb/zygomorph/rules.mk index 1b27af2ede22b7ed12da1bb05b7ec29f6789b85e..fac2e784ff7ce98a5c38ce18c67cd72051763c6e 100644 --- a/keyboards/rgbkb/zygomorph/rules.mk +++ b/keyboards/rgbkb/zygomorph/rules.mk @@ -36,3 +36,7 @@ SPLIT_KEYBOARD = yes LAYOUTS = ortho_4x12 ortho_5x12 DEFAULT_FOLDER = rgbkb/zygomorph/rev1 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/signum/3_0/elitec/rules.mk b/keyboards/signum/3_0/elitec/rules.mk index 436c5f0ce218784da1859d5372367759ec65e78c..6d7266c1a2ec70fffc6d7b1575f3f78065cd3ee0 100644 --- a/keyboards/signum/3_0/elitec/rules.mk +++ b/keyboards/signum/3_0/elitec/rules.mk @@ -28,3 +28,8 @@ RGBLIGHT_ENABLE = no UNICODEMAP_ENABLE = no LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/spaceman/pancake/feather/rules.mk b/keyboards/spaceman/pancake/feather/rules.mk index a7331959c863acf80741045b8bfecc3c19457f18..f9f17269522392d5f72c05723eaceccc808e2d83 100644 --- a/keyboards/spaceman/pancake/feather/rules.mk +++ b/keyboards/spaceman/pancake/feather/rules.mk @@ -30,3 +30,8 @@ AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expans RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/spaceman/pancake/promicro/rules.mk b/keyboards/spaceman/pancake/promicro/rules.mk index 09daaf4dafdfd75ee9ff646eb7a59816d27b4392..407ae090f0a92cbd7a877a91bb7811e0aa93b41c 100644 --- a/keyboards/spaceman/pancake/promicro/rules.mk +++ b/keyboards/spaceman/pancake/promicro/rules.mk @@ -26,3 +26,8 @@ AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expans RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/telophase/rules.mk b/keyboards/telophase/rules.mk index 240a89e85b22644bc9a82e7ac41589f6487dc43f..f2ac0adb6c7f2856a74377ed27152e84bb807965 100644 --- a/keyboards/telophase/rules.mk +++ b/keyboards/telophase/rules.mk @@ -39,3 +39,8 @@ MITOSIS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \ # # project specific files SRC = matrix.c + +# Disable unsupported hardware +RGBLIGHT_SUPPORTED = no +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/vitamins_included/rev2/rules.mk b/keyboards/vitamins_included/rev2/rules.mk index bacfbea39629945e3eb1c02aa23a196a2975a4eb..3d4caba9cae06005afdbfef6b3b7e8282c2b83f2 100644 --- a/keyboards/vitamins_included/rev2/rules.mk +++ b/keyboards/vitamins_included/rev2/rules.mk @@ -9,3 +9,6 @@ BOOTLOADER = qmk-dfu SPLIT_KEYBOARD = yes + +# Disable unsupported hardware +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/zlant/rules.mk b/keyboards/zlant/rules.mk index 5221b4e33eb26c3b0f8953d696d9b96d31bc4592..5daad3db23c6a30cf219d54e87adba52349562b7 100755 --- a/keyboards/zlant/rules.mk +++ b/keyboards/zlant/rules.mk @@ -26,3 +26,7 @@ AUDIO_ENABLE = no RGBLIGHT_ENABLE = yes LAYOUTS = ortho_4x12 planck_mit + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/zvecr/split_blackpill/rules.mk b/keyboards/zvecr/split_blackpill/rules.mk index 55bca894ef9fd6d42562cde28e16bdf5c0b7d1d6..822dd246dc6ae5a9172748185114889eeeace669 100644 --- a/keyboards/zvecr/split_blackpill/rules.mk +++ b/keyboards/zvecr/split_blackpill/rules.mk @@ -28,3 +28,7 @@ SERIAL_DRIVER = usart WS2812_DRIVER = pwm LAYOUTS = ortho_4x12 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no diff --git a/keyboards/zvecr/zv48/f401/rules.mk b/keyboards/zvecr/zv48/f401/rules.mk index 950442af96fb480293c30bf1ad43a41223c5e18e..a087a1cc785737e897d7305b30e182388cf73f1a 100644 --- a/keyboards/zvecr/zv48/f401/rules.mk +++ b/keyboards/zvecr/zv48/f401/rules.mk @@ -3,3 +3,7 @@ MCU = STM32F401 # Address of the bootloader in system memory STM32_BOOTLOADER_ADDRESS = 0x1FFF0000 + +# Disable unsupported hardware +AUDIO_SUPPORTED = no +BACKLIGHT_SUPPORTED = no