xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux pvdrv: generalize location of autoconf.h
@ 2010-05-04  9:07 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-05-04  9:07 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

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.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-04-30.orig/unmodified_drivers/linux-2.6/overrides.mk	2010-01-13 18:58:11.000000000 +0100
+++ 2010-04-30/unmodified_drivers/linux-2.6/overrides.mk	2010-04-30 13:35:54.000000000 +0200
@@ -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)




[-- Attachment #2: pvdrv-build.patch --]
[-- Type: text/plain, Size: 740 bytes --]

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.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-04-30.orig/unmodified_drivers/linux-2.6/overrides.mk	2010-01-13 18:58:11.000000000 +0100
+++ 2010-04-30/unmodified_drivers/linux-2.6/overrides.mk	2010-04-30 13:35:54.000000000 +0200
@@ -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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-04  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04  9:07 [PATCH] linux pvdrv: generalize location of autoconf.h Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).