aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/Makefile
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-02-15 13:58:21 -0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-15 14:43:59 -0800
commit7d0493d191abc0bb20c0746fe687b7e8ba8a696a (patch)
treea008c8872b7f0510e9d1dcae1b095b9bfb023b6b /drivers/staging/greybus/Makefile
parentgreybus: arche-platform: Control usb3613 from arche-platform (diff)
downloadlinux-dev-7d0493d191abc0bb20c0746fe687b7e8ba8a696a.tar.xz
linux-dev-7d0493d191abc0bb20c0746fe687b7e8ba8a696a.zip
greybus: only build arche platform driver if usb3613 is enabled
The build is broken if you try to build the arche platform driver without the usb3163 driver enabled at the same time, so specify that dependency in the greybus Makefile. Testing done: built inside and outside of the build system against many different kernel versions. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Reviewed-by: Michael Scott <michael.scott@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/Makefile')
-rw-r--r--drivers/staging/greybus/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile
index 870a7bb22d9e..6e276d82fdec 100644
--- a/drivers/staging/greybus/Makefile
+++ b/drivers/staging/greybus/Makefile
@@ -47,7 +47,9 @@ obj-m += gb-light.o
obj-m += gb-hid.o
obj-m += gb-raw.o
obj-m += gb-es2.o
-obj-m += gb-arche.o
+ifeq ($(CONFIG_USB_HSIC_USB3613),y)
+ obj-m += gb-arche.o
+endif
ifeq ($(CONFIG_SND_SOC_DYNAMIC_DAILINK),y)
obj-m += gb-audio-codec.o
endif