]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/214ff2a7c990 |
2 | # HG changeset patch | |
3 | # User Keir Fraser <keir.fraser@citrix.com> | |
4 | # Date 1245146770 -3600 | |
5 | # Node ID 214ff2a7c9900f5d8bac55a569224a0029173a0f | |
6 | # Parent ca12928cdafe3fcb024520c4fe2479448f2c5f46 | |
7 | Subject: Fix Makefile.xen generation when building external modules | |
8 | Patch-mainline: obsolete | |
9 | ||
10 | Otherwise, the file will be (attempted to be) put in the (possibly | |
11 | read-only) source tree. | |
12 | ||
13 | Signed-off-by: Jan Beulich <jbeulich@novell.com> | |
14 | ||
15 | --- sle11-2009-06-29.orig/scripts/Makefile.build 2009-02-16 15:58:14.000000000 +0100 | |
16 | +++ sle11-2009-06-29/scripts/Makefile.build 2009-06-29 15:27:22.000000000 +0200 | |
17 | @@ -74,7 +74,8 @@ $(warning kbuild: Makefile.build is incl | |
18 | endif | |
19 | ||
20 | ifeq ($(CONFIG_XEN),y) | |
21 | -$(objtree)/scripts/Makefile.xen: $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build | |
22 | +Makefile.xen := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD),$(objtree)/scripts)/Makefile.xen | |
23 | +$(Makefile.xen): $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build | |
24 | @echo ' Updating $@' | |
25 | $(if $(shell echo a | $(AWK) '{ print gensub(/a/, "AA", "g"); }'),\ | |
26 | ,$(error 'Your awk program does not define gensub. Use gawk or another awk with gensub')) | |
27 | @@ -84,7 +85,7 @@ xen-src-single-used-m := $(patsubst $(sr | |
28 | xen-single-used-m := $(xen-src-single-used-m:-xen.c=.o) | |
29 | single-used-m := $(filter-out $(xen-single-used-m),$(single-used-m)) | |
30 | ||
31 | --include $(objtree)/scripts/Makefile.xen | |
32 | +-include $(Makefile.xen) | |
33 | endif | |
34 | ||
35 | # =========================================================================== |