summaryrefslogtreecommitdiffstats
path: root/drivers/hid/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/Makefile')
-rw-r--r--drivers/hid/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
index 6432392110bf..84c823eb5ad5 100644
--- a/drivers/hid/Makefile
+++ b/drivers/hid/Makefile
@@ -6,10 +6,14 @@
hid-objs := hid-core.o hid-input.o
# Optional parts of multipart objects.
-
-obj-$(CONFIG_HID) += hid.o
+ifeq ($(CONFIG_HID_DEBUG),y)
+hid-objs += hid-debug.o
+endif
ifeq ($(CONFIG_INPUT_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
+
+obj-$(CONFIG_HID) += hid.o
+