tools: set DEBUG_DIR from configure
PATCH v2 1/1 tools: set DEBUG_DIR from configure
Allow the path to be set from a configure command line option.
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Olaf Hering <[email protected]>
Cc: Jan Beulich <[email protected]>
---
Changes since v1:
- Fix the path so it's PREFRIX/lib/... instead of PREFIX/usr/lib/...
--- config/Paths.mk.in | 1 + m4/paths.m4 | 9 +++++++++ 2 files changed, 10 insertions(+)
config/Paths.mk.in +1 -0
@@ -51,6 +51,7 @@ BASH_COMPLETION_DIR := $(CONFIG_DIR)/bash_completion.d XEN_LOCK_DIR := @XEN_LOCK_DIR@ XEN_PAGING_DIR := @XEN_PAGING_DIR@ XEN_DUMP_DIR := @XEN_DUMP_DIR@ +DEBUG_DIR := @DEBUG_DIR@ XENFIRMWAREDIR := @XENFIRMWAREDIR@
m4/paths.m4 +9 -0
@@ -82,6 +82,12 @@ AC_ARG_WITH([rundir], [rundir_path=$withval], [rundir_path=$localstatedir/run]) +AC_ARG_WITH([debugdir], + AS_HELP_STRING([--with-debugdir=DIR], + [Path to directory for debug symbols. [PREFIX/lib/debug]]), + [debugdir_path=$withval], + [debugdir_path=$prefix/lib/debug]) + if test "$libexecdir" = '${exec_prefix}/libexec' ; then case "$host_os" in *netbsd*) ;;
@@ -146,6 +152,9 @@ AC_SUBST(XEN_PAGING_DIR) XEN_DUMP_DIR=$xen_dumpdir_path AC_SUBST(XEN_DUMP_DIR) + +DEBUG_DIR=$debugdir_path +AC_SUBST(DEBUG_DIR) ]) case "$host_os" in
Signature · 7 lines
2.16.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Roger Pau Monne
Allow the path to be set from a configure command line option.
Signed-off-by Roger Pau Monné <[email protected]>
I think the DEBUG_DIR?= lines in StdGNU.mk and SunOS.mk can be removed now.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 7 lines · Wei Liu
Quoted 3 lines · Roger Pau Monne
Allow the path to be set from a configure command line option.
Signed-off-by Roger Pau Monné <[email protected]>I think the DEBUG_DIR?= lines in StdGNU.mk and SunOS.mk can be removed now.
Actually, no. We don't want hypervisor to depend on ./configure.
But then there will be two ways to set DEBUG_DIR which isn't nice...
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Liu
Quoted 3 lines · Wei Liu
Quoted 2 lines · Roger Pau Monne
Allow the path to be set from a configure command line option.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Roger Pau Monné <[email protected]>I think the DEBUG_DIR?= lines in StdGNU.mk and SunOS.mk can be removed now.
Actually, no. We don't want hypervisor to depend on ./configure.
But then there will be two ways to set
DEBUG_DIRwhich isn't nice...
I know... Sadly I don't see anyway to solve this that doesn't involve using configure for the hypervisor also.
Thanks, Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Roger Pau Monne
Allow the path to be set from a configure command line option.
Signed-off-by Roger Pau Monné <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel