summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2018-06-07 15:17:21 +0200
committerChristian Gromm <christian.gromm@microchip.com>2018-06-07 15:52:24 +0200
commitdcc04c5efe2058a5796f45b7a99f1c53082dd2ca (patch)
tree2470463ae1ab76afdd7f4da3b9d4a5832f8cd02b /driver
parent794e6dc552e626eb6dd506baf941873414d9ef73 (diff)
This patch adds a condition to the Makefile to compile the DIM2 module only if OF support is enabled in the kernel. It is needed to avoid build errors for x86 systems that don't make use of a device tree. Change-Id: I3246feea47160228591dee41b2f0f17cc9d492ae Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'driver')
-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