config: generate Paths-$SUBSYSTEM.mk
PATCH 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.
---
Please rerun autogen.sh
--- config/Docs.mk.in | 2 +- config/Stubdom.mk.in | 2 +- config/Tools.mk.in | 2 +- configure | 3 +-- configure.ac | 5 +---- docs/configure | 3 ++- docs/configure.ac | 5 ++++- stubdom/configure | 3 ++- stubdom/configure.ac | 5 ++++- tools/configure | 3 ++- tools/configure.ac | 1 + 11 files changed, 20 insertions(+), 14 deletions(-)
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 +1 -2
@@ -1728,7 +1728,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files config/Toplevel.mk config/Paths.mk" +ac_config_files="$ac_config_files config/Toplevel.mk" ac_aux_dir=
@@ -2896,7 +2896,6 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "config/Toplevel.mk") CONFIG_FILES="$CONFIG_FILES config/Toplevel.mk" ;; - "config/Paths.mk") CONFIG_FILES="$CONFIG_FILES config/Paths.mk" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac
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/configure +2 -1
@@ -1693,7 +1693,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Docs.mk" +ac_config_files="$ac_config_files ../config/Docs.mk ../config/Paths-docs.mk:../config/Paths.mk.in" ac_aux_dir= for ac_dir in ../ "$srcdir"/../; do
@@ -2793,6 +2793,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Docs.mk" ;; + "../config/Paths-docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-docs.mk:../config/Paths.mk.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac
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/configure +2 -1
@@ -1829,7 +1829,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Stubdom.mk" +ac_config_files="$ac_config_files ../config/Stubdom.mk ../config/Paths-stubdom.mk:../config/Paths.mk.in" ac_aux_dir= for ac_dir in ../ "$srcdir"/../; do
@@ -4344,6 +4344,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Stubdom.mk") CONFIG_FILES="$CONFIG_FILES ../config/Stubdom.mk" ;; + "../config/Paths-stubdom.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-stubdom.mk:../config/Paths.mk.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac
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/configure +2 -1
@@ -2282,7 +2282,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Tools.mk hotplug/FreeBSD/rc.d/xencommons hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/xen-watchdog hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/vif-setup hotplug/Linux/xen-backend.rules hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons libxl/xenlight.pc.in libxl/xlutil.pc.in" +ac_config_files="$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 hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/vif-setup hotplug/Linux/xen-backend.rules hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons libxl/xenlight.pc.in libxl/xlutil.pc.in" ac_config_headers="$ac_config_headers config.h"
@@ -9693,6 +9693,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Tools.mk") CONFIG_FILES="$CONFIG_FILES ../config/Tools.mk" ;; + "../config/Paths-tools.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-tools.mk:../config/Paths.mk.in" ;; "hotplug/FreeBSD/rc.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/FreeBSD/rc.d/xencommons" ;; "hotplug/Linux/init.d/sysconfig.xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/sysconfig.xencommons" ;; "hotplug/Linux/init.d/xen-watchdog") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xen-watchdog" ;;
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 3 lines · Wei Liu
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory.
Having done that does the Makefile machinery which prints the "You need to run configure message" still work? (That's the main reason some includes are optional AFAIR)
Ian.
Quoted 196 lines
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]>---
Please rerunautogen.sh--- config/Docs.mk.in | 2 +- config/Stubdom.mk.in | 2 +- config/Tools.mk.in | 2 +- configure | 3 +-- configure.ac | 5 +---- docs/configure | 3 ++- docs/configure.ac | 5 ++++- stubdom/configure | 3 ++- stubdom/configure.ac | 5 ++++- tools/configure | 3 ++- tools/configure.ac | 1 + 11 files changed, 20 insertions(+), 14 deletions(-)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 +1
-2@@ -1728,7 +1728,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files config/Toplevel.mk config/Paths.mk" +ac_config_files="$ac_config_files config/Toplevel.mk" ac_aux_dir=@@ -2896,7 +2896,6 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "config/Toplevel.mk") CONFIG_FILES="$CONFIG_FILES config/Toplevel.mk" ;; - "config/Paths.mk") CONFIG_FILES="$CONFIG_FILES config/Paths.mk" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esacconfigure.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_HOSTdocs/configure +2
-1@@ -1693,7 +1693,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Docs.mk" +ac_config_files="$ac_config_files ../config/Docs.mk ../config/Paths-docs.mk:../config/Paths.mk.in" ac_aux_dir= for ac_dir in ../ "$srcdir"/../; do@@ -2793,6 +2793,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Docs.mk" ;; + "../config/Paths-docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-docs.mk:../config/Paths.mk.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esacdocs/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 includesstubdom/configure +2
-1@@ -1829,7 +1829,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Stubdom.mk" +ac_config_files="$ac_config_files ../config/Stubdom.mk ../config/Paths-stubdom.mk:../config/Paths.mk.in" ac_aux_dir= for ac_dir in ../ "$srcdir"/../; do@@ -4344,6 +4344,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Stubdom.mk") CONFIG_FILES="$CONFIG_FILES ../config/Stubdom.mk" ;; + "../config/Paths-stubdom.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-stubdom.mk:../config/Paths.mk.in" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esacstubdom/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_HOSTtools/configure +2
-1@@ -2282,7 +2282,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_files="$ac_config_files ../config/Tools.mk hotplug/FreeBSD/rc.d/xencommons hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/xen-watchdog hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/vif-setup hotplug/Linux/xen-backend.rules hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons libxl/xenlight.pc.in libxl/xlutil.pc.in" +ac_config_files="$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 hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/vif-setup hotplug/Linux/xen-backend.rules hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons libxl/xenlight.pc.in libxl/xlutil.pc.in" ac_config_headers="$ac_config_headers config.h"@@ -9693,6 +9693,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "../config/Tools.mk") CONFIG_FILES="$CONFIG_FILES ../config/Tools.mk" ;; + "../config/Paths-tools.mk") CONFIG_FILES="$CONFIG_FILES ../config/Paths-tools.mk:../config/Paths.mk.in" ;; "hotplug/FreeBSD/rc.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/FreeBSD/rc.d/xencommons" ;; "hotplug/Linux/init.d/sysconfig.xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/sysconfig.xencommons" ;; "hotplug/Linux/init.d/xen-watchdog") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xen-watchdog" ;;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
Quoted 9 lines · Ian Campbell
Quoted 3 lines · Wei Liu
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory.
Having done that does the
Makefilemachinery which prints the "You need to run configure message" still work? (That's the main reason some includes are optional AFAIR)
Tools subsystem is the only one that has this machinery. And it still works because it's checking for Tools.mk.
Wei.
Ian Campbell
Acked-byQuoted 6 lines · Wei Liu
Quoted 5 lines · Ian Campbell
Quoted 3 lines · Wei Liu
... so that we can run ./configure in each subsystem.
Make inclusion of Paths-*.mk mandatory.
Quoted 7 lines
Quoted 4 lines
Having done that does the
Makefilemachinery which prints the "You need to run configure message" still work? (That's the main reason some includes are optional AFAIR)Tools subsystem is the only one that has this machinery. And it still works because it's checking for Tools.mk.
Super, with .gitignore updated:
I have forgotten to update gitingore. I will update that in my next version.
Wei.