ia64/xen-unstable

diff stubdom/Makefile @ 19818:415505139333

Get rid of hardcoded pathes for stubdom and hotplug scripts

- Have the buid system generate a file which exports the install paths
for the hotplug scripts and stubdom / stubdom-dm
- Move file generation code from tools/python/Makefile into a gmake
macro
in Config.mk to avoid maintenance of three duplicates each with its
own
tweaks and bugs
- Export gmake variables into ioemu as shell variables
for upcoming ioemu patches
- Do above as a gmake macro to avoid maintenance of several duplicates
- Adjust hotplug scripts to find the right xen binaries from the
install directory
- Adjust stubdom-dm to use the install directories

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 17:25:51 2009 +0100 (2009-06-23)
parents e0221531d0e5
children e94691561b48
line diff
     1.1 --- a/stubdom/Makefile	Tue Jun 23 17:24:14 2009 +0100
     1.2 +++ b/stubdom/Makefile	Tue Jun 23 17:25:51 2009 +0100
     1.3 @@ -77,8 +77,12 @@ TARGET_LDFLAGS += -nostdlib -L$(CROSS_PR
     1.4  
     1.5  TARGETS=ioemu c caml grub
     1.6  
     1.7 +STUBDOMPATH="stubdompath.sh"
     1.8 +genpath-target = $(call buildmakevars2file,$(STUBDOMPATH))
     1.9 +$(eval $(genpath-target))
    1.10 +
    1.11  .PHONY: all
    1.12 -all: build
    1.13 +all: genpath build
    1.14  ifeq ($(STUBDOM_SUPPORTED),1)
    1.15  build: ioemu-stubdom c-stubdom pv-grub
    1.16  else
    1.17 @@ -270,8 +274,7 @@ libxc-$(XEN_TARGET_ARCH)/libxenctrl.a li
    1.18  ioemu: cross-zlib cross-libpci libxc
    1.19  	[ -f ioemu/config-host.mak ] || \
    1.20  	  ( $(absolutify_xen_root); \
    1.21 -	    PREFIX=$(PREFIX); \
    1.22 -	    export PREFIX; \
    1.23 +	    $(buildmakevars2shellvars); \
    1.24  	    cd ioemu ; \
    1.25  	    LWIPDIR=$(CURDIR)/lwip-$(XEN_TARGET_ARCH) \
    1.26  	    TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \
    1.27 @@ -374,6 +377,7 @@ clean:
    1.28  	$(MAKE) -C caml clean
    1.29  	$(MAKE) -C c clean
    1.30  	rm -fr grub-$(XEN_TARGET_ARCH)
    1.31 +	rm -f $(STUBDOMPATH)
    1.32  	[ ! -d libxc-$(XEN_TARGET_ARCH) ] || $(MAKE) -C libxc-$(XEN_TARGET_ARCH) clean
    1.33  	-[ ! -d ioemu ] || $(MAKE) -C ioemu clean
    1.34