summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/Makefile b/driver/Makefile
index e77a4b6..6aca827 100644
--- a/driver/Makefile
+++ b/driver/Makefile
@@ -26,9 +26,11 @@ obj-m += hdm_i2c.o
hdm_i2c-y := hdm-i2c/hdm_i2c.o
CFLAGS_hdm_i2c.o := -I$(src)/include/
+ifdef CONFIG_OF
obj-m += hdm_dim2.o
hdm_dim2-y := hdm-dim2/dim2_hdm.o hdm-dim2/dim2_hal.o hdm-dim2/dim2_sysfs.o
CFLAGS_dim2_hdm.o := -I$(src)/include/
+endif
obj-m += hdm_usb.o
hdm_usb-y := hdm-usb/hdm_usb.o