summaryrefslogtreecommitdiffstats
path: root/layouts/community/ortho_4x12/mindsound/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/ortho_4x12/mindsound/rules.mk')
-rw-r--r--layouts/community/ortho_4x12/mindsound/rules.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/community/ortho_4x12/mindsound/rules.mk b/layouts/community/ortho_4x12/mindsound/rules.mk
new file mode 100644
index 000000000..c01a1ddb5
--- /dev/null
+++ b/layouts/community/ortho_4x12/mindsound/rules.mk
@@ -0,0 +1,26 @@
+# none of my keyboards need LTO and it screws up I2C on my LSVI:
+EXTRAFLAGS:=$(filter-out -flto,$(EXTRAFLAGS))
+
+# turning off backlighting and audio for the split keebs
+ifneq (,$(findstring lets_split,$(KEYBOARD)))
+ BACKLIGHT_ENABLE = no
+ BACKLIGHT_BREATHING = no
+ AUDIO_ENABLE = no
+endif
+ifneq (,$(findstring vitamins_included,$(KEYBOARD)))
+ BACKLIGHT_ENABLE = no
+ BACKLIGHT_BREATHING = no
+ AUDIO_ENABLE = no
+endif
+
+# both my plancks use audio but only the rev4 has backlighting
+ifneq (,$(findstring planck,$(KEYBOARD)))
+ ifneq (,$(findstring rev4,$(KEYBOARD)))
+ BACKLIGHT_ENABLE = yes
+ BACKLIGHT_BREATHING = no
+ else
+ BACKLIGHT_ENABLE = no
+ BACKLIGHT_BREATHING = no
+ endif
+ AUDIO_ENABLE = yes
+endif