Skip to contentSkip to conversation

linux pvdrv: generalize location of autoconf.h

PATCH New Jan Beulich 1 participant 1 message May 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux pvdrv: generalize location of autoconf.h

The location of the file in the build tree changed in recent Linux; since there can be only one such file, using a wild card instead of an explicit directory name seems the easiest solution.

unmodified_drivers/linux-2.6/overrides.mk +1 -1
@@ -11,7 +11,7 @@ ifeq ($(ARCH),ia64)
   _XEN_CPPFLAGS += -DCONFIG_VMX_GUEST
 endif
 
-_XEN_CPPFLAGS += -include $(objtree)/include/linux/autoconf.h
+_XEN_CPPFLAGS += -include $(wildcard $(objtree)/include/*/autoconf.h)
 
 EXTRA_CFLAGS += $(_XEN_CPPFLAGS)
 EXTRA_AFLAGS += $(_XEN_CPPFLAGS)

The location of the file in the build tree changed in recent Linux; since there can be only one such file, using a wild card instead of an explicit directory name seems the easiest solution.

unmodified_drivers/linux-2.6/overrides.mk +1 -1
@@ -11,7 +11,7 @@ ifeq ($(ARCH),ia64)
   _XEN_CPPFLAGS += -DCONFIG_VMX_GUEST
 endif
 
-_XEN_CPPFLAGS += -include $(objtree)/include/linux/autoconf.h
+_XEN_CPPFLAGS += -include $(wildcard $(objtree)/include/*/autoconf.h)
 
 EXTRA_CFLAGS += $(_XEN_CPPFLAGS)
 EXTRA_AFLAGS += $(_XEN_CPPFLAGS)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel