unmodified_drivers: make usbfront build conditional

Commit 0dcfb88fb8 ("unmodified_drivers: enable build of usbfront
driver") results in the PV drivers to no longer build against older
(pre-2.6.35) Linux versions. That's because usbfront.h includes
headers from drivers/usb/core/, which is generally unavailable when
building out-of-tree modules.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Jan Beulich committed 2014-01-23 10:29:12 +01:00
1 parent 09bb434748
commit b2625bef58
1 file changed
+3 -1
+3 -1
View File
@@ -1,5 +1,7 @@
include $(M)/overrides.mk
obj-m += xen-usb.o
obj-m += $(if $(shell grep '^\#include "\.\./\.\./' $(obj)/usbfront.h), \
$(warning usbfront cannot be built), \
xen-usb.o)
xen-usb-objs := usbfront-hcd.o xenbus.o
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.