WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] Fix Makefile.xen generation when buil

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Fix Makefile.xen generation when building external modules
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Jun 2009 09:05:04 -0700
Delivery-date: Tue, 16 Jun 2009 09:05:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245146770 -3600
# Node ID 214ff2a7c9900f5d8bac55a569224a0029173a0f
# Parent  ca12928cdafe3fcb024520c4fe2479448f2c5f46
Fix Makefile.xen generation when building external modules

Otherwise, the file will be (attempted to be) put in the (possibly
read-only) source tree.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 scripts/Makefile.build |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r ca12928cdafe -r 214ff2a7c990 scripts/Makefile.build
--- a/scripts/Makefile.build    Mon Jun 08 12:23:24 2009 +0100
+++ b/scripts/Makefile.build    Tue Jun 16 11:06:10 2009 +0100
@@ -69,7 +69,8 @@ endif
 endif
 
 ifeq ($(CONFIG_XEN),y)
-$(objtree)/scripts/Makefile.xen: $(srctree)/scripts/Makefile.xen.awk 
$(srctree)/scripts/Makefile.build
+Makefile.xen := $(if 
$(KBUILD_EXTMOD),$(KBUILD_EXTMOD),$(objtree)/scripts)/Makefile.xen
+$(Makefile.xen): $(srctree)/scripts/Makefile.xen.awk 
$(srctree)/scripts/Makefile.build
        @echo '  Updating $@'
        $(if $(shell echo a | $(AWK) '{ print gensub(/a/, "AA", "g"); }'),\
         ,$(error 'Your awk program does not define gensub.  Use gawk or 
another awk with gensub'))
@@ -79,7 +80,7 @@ xen-single-used-m     := $(xen-src-single-us
 xen-single-used-m      := $(xen-src-single-used-m:-xen.c=.o)
 single-used-m          := $(filter-out $(xen-single-used-m),$(single-used-m))
 
--include $(objtree)/scripts/Makefile.xen
+-include $(Makefile.xen)
 endif
 
 # ===========================================================================

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Fix Makefile.xen generation when building external modules, Xen patchbot-linux-2.6.18-xen <=