diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2018-06-07 15:17:21 +0200 |
---|---|---|
committer | Christian Gromm <christian.gromm@microchip.com> | 2018-06-07 15:52:24 +0200 |
commit | dcc04c5efe2058a5796f45b7a99f1c53082dd2ca (patch) | |
tree | 2470463ae1ab76afdd7f4da3b9d4a5832f8cd02b /driver | |
parent | 794e6dc552e626eb6dd506baf941873414d9ef73 (diff) |
src: most: add compile condition to Makefileicefish_8.99.1icefish/8.99.1halibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut_7.90.0halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.1halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy_6.90.0guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.1guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder_5.99.2flounder_5.99.1flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.3flounder/5.99.2flounder/5.99.18.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.17.90.06.99.46.99.36.99.26.99.16.90.05.99.65.99.55.99.45.99.35.99.25.99.1halibut
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/Makefile | 2 |
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 |