config: generate Paths-$SUBSYSTEM.mk
PATCH v2 1/1 config: generate Paths-$SUBSYSTEM.mk
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory. Skip generating a global Paths.mk since it's of no use anymore.
---
v2: update .gitignore, delete Paths-*.mk in distclean
Please rerun autogen.sh when applying this patch.
--- .gitignore | 2 +- config/Docs.mk.in | 2 +- config/Stubdom.mk.in | 2 +- config/Tools.mk.in | 2 +- configure.ac | 5 +---- docs/Makefile | 3 ++- docs/configure.ac | 5 ++++- stubdom/Makefile | 3 ++- stubdom/configure.ac | 5 ++++- tools/Makefile | 3 ++- tools/configure.ac | 1 + 11 files changed, 20 insertions(+), 13 deletions(-)
.gitignore +1 -1
@@ -37,7 +37,7 @@ config.log config.status config.cache config/Toplevel.mk -config/Paths.mk +config/Paths*.mk build-* dist/*
config/Docs.mk.in +1 -1
@@ -1,4 +1,4 @@ --include $(XEN_ROOT)/config/Paths.mk +include $(XEN_ROOT)/config/Paths-docs.mk # Tools FIG2DEV := @FIG2DEV@
config/Stubdom.mk.in +1 -1
@@ -1,4 +1,4 @@ --include $(XEN_ROOT)/config/Paths.mk +include $(XEN_ROOT)/config/Paths-stubdom.mk # Path Programs CMAKE := @CMAKE@
config/Tools.mk.in +1 -1
@@ -1,4 +1,4 @@ --include $(XEN_ROOT)/config/Paths.mk +include $(XEN_ROOT)/config/Paths-tools.mk CONFIG_RUMP := @CONFIG_RUMP@ ifeq ($(CONFIG_RUMP),y)
configure.ac +1 -4
@@ -5,10 +5,7 @@ AC_PREREQ([2.67]) AC_INIT([Xen Hypervisor], m4_esyscmd([./version.sh ./xen/Makefile]), [[email protected]], [xen], [http://www.xen.org/]) AC_CONFIG_SRCDIR([./xen/common/kernel.c]) -AC_CONFIG_FILES([ - config/Toplevel.mk - config/Paths.mk -]) +AC_CONFIG_FILES([config/Toplevel.mk]) AC_CANONICAL_HOST
docs/Makefile +2 -1
@@ -92,7 +92,8 @@ clean: .PHONY: distclean distclean: clean - rm -rf $(XEN_ROOT)/config/Docs.mk config.log config.status config.cache \ + rm -rf $(XEN_ROOT)/config/Docs.mk $(XEN_ROOT)/config/Paths-docs.mk \ + config.log config.status config.cache \ autom4te.cache .PHONY: install-man-pages
docs/configure.ac +4 -1
@@ -5,7 +5,10 @@ AC_PREREQ([2.67]) AC_INIT([Xen Hypervisor Documentation], m4_esyscmd([../version.sh ../xen/Makefile]), [[email protected]], [xen], [http://www.xen.org/]) AC_CONFIG_SRCDIR([misc/xen-command-line.markdown]) -AC_CONFIG_FILES([../config/Docs.mk]) +AC_CONFIG_FILES([ +../config/Docs.mk +../config/Paths-docs.mk:../config/Paths.mk.in +]) AC_CONFIG_AUX_DIR([../]) # M4 Macro includes
stubdom/Makefile +2 -1
@@ -564,7 +564,8 @@ downloadclean: patchclean .PHONY: distclean distclean: downloadclean - rm -rf config.log config.status config.cache autom4te.cache ../config/Stubdom.mk + rm -rf config.log config.status config.cache autom4te.cache \ + ../config/Stubdom.mk ../config/Paths-stubdom.mk ifeq (,$(findstring clean,$(MAKECMDGOALS))) $(XEN_ROOT)/config/Stubdom.mk:
stubdom/configure.ac +4 -1
@@ -5,7 +5,10 @@ AC_PREREQ([2.67]) AC_INIT([Xen Hypervisor Stub Domains], m4_esyscmd([../version.sh ../xen/Makefile]), [[email protected]], [xen], [http://www.xen.org/]) AC_CONFIG_SRCDIR([xenstore-minios.cfg]) -AC_CONFIG_FILES([../config/Stubdom.mk]) +AC_CONFIG_FILES([ +../config/Stubdom.mk +../config/Paths-stubdom.mk:../config/Paths.mk.in +]) AC_CONFIG_AUX_DIR([../]) AC_CANONICAL_HOST
tools/Makefile +2 -1
@@ -108,7 +108,8 @@ clean: subdirs-clean distclean: subdirs-distclean rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote rm -rf qemu-xen-dir qemu-xen-dir-remote - rm -rf ../config/Tools.mk config.h config.log config.status \ + rm -rf ../config/Tools.mk ../config/Paths-tools.mk \ + config.h config.log config.status \ config.cache autom4te.cache ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
tools/configure.ac +1 -0
@@ -7,6 +7,7 @@ AC_INIT([Xen Hypervisor Tools], m4_esyscmd([../version.sh ../xen/Makefile]), AC_CONFIG_SRCDIR([libxl/libxl.c]) AC_CONFIG_FILES([ ../config/Tools.mk +../config/Paths-tools.mk:../config/Paths.mk.in hotplug/FreeBSD/rc.d/xencommons hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/xen-watchdog
Signature · 1 line
1.9.1
Quoted 5 lines · Wei Liu
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory. Skip generating a global Paths.mk since it's of no use anymore.
Quoted 8 lines
Signed-off-by Wei Liu <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>Acked-by Ian Campbell <[email protected]>---
v2: update .gitignore, delete Paths-*.mk in distcleanPlease rerun
autogen.shwhen applying this patch.
With this applied the list of installed files changes in a way which is clearly not desirable ;-).
Looks like the stubdom case is not correctly handled?
FILE_LIST.staging.x86_64 2015-05-08 15:41:21.000000000 +0100 renamed from FILE_LIST.BASE.staging.x86_64 2015-04-15 16:03:29.000000000 +0100 +10 -8
@@ -56,6 +56,9 @@ dist/install/etc/xen/xl.conf dist/install/etc/xen/xlexample.hvm dist/install/etc/xen/xlexample.pvlinux +dist/install@LIBEXEC_BIN@ +dist/install@LIBEXEC_BIN@/stubdom-dm +dist/install@LIBEXEC_BIN@/stubdompath.sh dist/install.sh dist/install/usr dist/install/usr/local
@@ -337,8 +340,6 @@ dist/install/usr/local/lib/xen/bin/qemu-nbd dist/install/usr/local/lib/xen/bin/qemu-system-i386 dist/install/usr/local/lib/xen/bin/readnotes -dist/install/usr/local/lib/xen/bin/stubdom-dm -dist/install/usr/local/lib/xen/bin/stubdompath.sh dist/install/usr/local/lib/xen/bin/xenconsole dist/install/usr/local/lib/xen/bin/xenctx dist/install/usr/local/lib/xen/bin/xendomains
@@ -347,12 +348,6 @@ dist/install/usr/local/lib/xen/bin/xenpvnetboot dist/install/usr/local/lib/xen/boot dist/install/usr/local/lib/xen/boot/hvmloader -dist/install/usr/local/lib/xen/boot/ioemu-stubdom.gz -dist/install/usr/local/lib/xen/boot/pv-grub-x86_32.gz -dist/install/usr/local/lib/xen/boot/pv-grub-x86_64.gz -dist/install/usr/local/lib/xen/boot/vtpmmgr-stubdom.gz -dist/install/usr/local/lib/xen/boot/vtpm-stubdom.gz -dist/install/usr/local/lib/xen/boot/xenstore-stubdom.gz dist/install/usr/local/lib/xen/etc dist/install/usr/local/lib/xen/etc/qemu dist/install/usr/local/lib/xen/etc/qemu/target-x86_64.conf
@@ -785,4 +780,11 @@ dist/install/var/log/xen dist/install/var/xen dist/install/var/xen/dump +dist/install@XENFIRMWAREDIR@ +dist/install@XENFIRMWAREDIR@/ioemu-stubdom.gz +dist/install@XENFIRMWAREDIR@/pv-grub-x86_32.gz +dist/install@XENFIRMWAREDIR@/pv-grub-x86_64.gz +dist/install@XENFIRMWAREDIR@/vtpmmgr-stubdom.gz +dist/install@XENFIRMWAREDIR@/vtpm-stubdom.gz +dist/install@XENFIRMWAREDIR@/xenstore-stubdom.gz dist/README
*** FILES DIFFER ***
Quoted 13 lines · Ian Campbell
Quoted 12 lines · Wei Liu
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory. Skip generating a global Paths.mk since it's of no use anymore.
Signed-off-by Wei Liu <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>Acked-by Ian Campbell <[email protected]>---
v2: update .gitignore, delete Paths-*.mk in distclean
Quoted 7 lines
Quoted 1 line
Please rerun
autogen.shwhen applying this patch.With this applied the list of installed files changes in a way which is clearly not desirable ;-).
Looks like the stubdom case is not correctly handled?
Er... stubdom.
I will respin and double check.
Wei.