aboutsummaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2024-10-25 18:11:51 +0100
committerGitHub <noreply@github.com>2024-10-25 18:11:51 +0100
commitf5b495e06e257796a9be845f47bfc375fece81f8 (patch)
tree3772da6b18ad610df774269d3542c6fb660b812c /builddefs
parent5c85271e48b4f2be7da47d1728ad1ddb95364ad7 (diff)
Move pointing device driver code (#24445)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/common_features.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index cc13fbd3f7..2eb7056b6f 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -129,13 +129,13 @@ ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
MOUSE_ENABLE := yes
VPATH += $(QUANTUM_DIR)/pointing_device
SRC += $(QUANTUM_DIR)/pointing_device/pointing_device.c
- SRC += $(QUANTUM_DIR)/pointing_device/pointing_device_drivers.c
SRC += $(QUANTUM_DIR)/pointing_device/pointing_device_auto_mouse.c
ifneq ($(strip $(POINTING_DEVICE_DRIVER)), custom)
SRC += drivers/sensors/$(strip $(POINTING_DEVICE_DRIVER)).c
OPT_DEFS += -DPOINTING_DEVICE_DRIVER_$(strip $(shell echo $(POINTING_DEVICE_DRIVER) | tr '[:lower:]' '[:upper:]'))
endif
OPT_DEFS += -DPOINTING_DEVICE_DRIVER_$(strip $(POINTING_DEVICE_DRIVER))
+ OPT_DEFS += -DPOINTING_DEVICE_DRIVER_NAME=$(strip $(POINTING_DEVICE_DRIVER))
ifeq ($(strip $(POINTING_DEVICE_DRIVER)), adns9800)
SPI_DRIVER_REQUIRED = yes
else ifeq ($(strip $(POINTING_DEVICE_DRIVER)), analog_joystick)