aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorGravatar Joel Challis <git@zvecr.com>2020-03-21 05:20:04 +0000
committerGravatar GitHub <noreply@github.com>2020-03-21 16:20:04 +1100
commitd96380e65496912e0f68e6531565f4b45efd1623 (patch)
tree63e903f65b4fdc44c75c7eff21e076fdb200dca7 /common_features.mk
parent7e80686f1e400010a8a800cc73c4896936f337de (diff)
downloadqmk_firmware-d96380e65496912e0f68e6531565f4b45efd1623.tar.gz
Initial arm->chibios pass - simplify some platform logic (#8450)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk12
1 files changed, 2 insertions, 10 deletions
diff --git a/common_features.mk b/common_features.mk
index b71dbc77e..64ddc85fd 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -35,11 +35,7 @@ ifeq ($(strip $(AUDIO_ENABLE)), yes)
MUSIC_ENABLE := 1
SRC += $(QUANTUM_DIR)/process_keycode/process_audio.c
SRC += $(QUANTUM_DIR)/process_keycode/process_clicky.c
- ifeq ($(PLATFORM),AVR)
- SRC += $(QUANTUM_DIR)/audio/audio.c
- else
- SRC += $(QUANTUM_DIR)/audio/audio_arm.c
- endif
+ SRC += $(QUANTUM_DIR)/audio/audio_$(PLATFORM_KEY).c
SRC += $(QUANTUM_DIR)/audio/voices.c
SRC += $(QUANTUM_DIR)/audio/luts.c
endif
@@ -315,11 +311,7 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
else
SRC += $(QUANTUM_DIR)/backlight/backlight_driver_common.c
ifeq ($(strip $(BACKLIGHT_DRIVER)), pwm)
- ifeq ($(PLATFORM),AVR)
- SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c
- else
- SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c
- endif
+ SRC += $(QUANTUM_DIR)/backlight/backlight_$(PLATFORM_KEY).c
else
SRC += $(QUANTUM_DIR)/backlight/backlight_$(strip $(BACKLIGHT_DRIVER)).c
endif