[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] unmodified_drivers: make usbfront build conditional

commit b2625bef58b66a012df2f759a1fb7ba50d139f7d
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jan 23 10:29:12 2014 +0100
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jan 23 10:29:12 2014 +0100

    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@xxxxxxxx>
 unmodified_drivers/linux-2.6/usbfront/Kbuild |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/unmodified_drivers/linux-2.6/usbfront/Kbuild 
index f44deaa..321a35a 100644
--- a/unmodified_drivers/linux-2.6/usbfront/Kbuild
+++ b/unmodified_drivers/linux-2.6/usbfront/Kbuild
@@ -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
generated by git-patchbot for /home/xen/git/xen.git#master

Xen-changelog mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.