ia64/linux-2.6.18-xen.hg

changeset 899:214ff2a7c990

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@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 11:06:10 2009 +0100 (2009-06-16)
parents ca12928cdafe
children 046a6eabd4dc
files scripts/Makefile.build
line diff
     1.1 --- a/scripts/Makefile.build	Mon Jun 08 12:23:24 2009 +0100
     1.2 +++ b/scripts/Makefile.build	Tue Jun 16 11:06:10 2009 +0100
     1.3 @@ -69,7 +69,8 @@ ifndef obj
     1.4  endif
     1.5  
     1.6  ifeq ($(CONFIG_XEN),y)
     1.7 -$(objtree)/scripts/Makefile.xen: $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build
     1.8 +Makefile.xen := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD),$(objtree)/scripts)/Makefile.xen
     1.9 +$(Makefile.xen): $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build
    1.10  	@echo '  Updating $@'
    1.11  	$(if $(shell echo a | $(AWK) '{ print gensub(/a/, "AA", "g"); }'),\
    1.12          ,$(error 'Your awk program does not define gensub.  Use gawk or another awk with gensub'))
    1.13 @@ -79,7 +80,7 @@ xen-src-single-used-m	:= $(patsubst $(sr
    1.14  xen-single-used-m	:= $(xen-src-single-used-m:-xen.c=.o)
    1.15  single-used-m		:= $(filter-out $(xen-single-used-m),$(single-used-m))
    1.16  
    1.17 --include $(objtree)/scripts/Makefile.xen
    1.18 +-include $(Makefile.xen)
    1.19  endif
    1.20  
    1.21  # ===========================================================================