All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.11] tools: set DEBUG_DIR from configure
@ 2018-03-27 16:13 Roger Pau Monne
  2018-03-27 16:18 ` Olaf Hering
  2018-05-25 15:19 ` Olaf Hering
  0 siblings, 2 replies; 11+ messages in thread
From: Roger Pau Monne @ 2018-03-27 16:13 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Olaf Hering, Ian Jackson, Jan Beulich, Roger Pau Monne

Allow the path to be set from a configure command line option.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Olaf Hering <olaf@aepfle.de>
Cc: Jan Beulich <jbeulich@suse.com>
---
 config/Paths.mk.in | 1 +
 m4/paths.m4        | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/config/Paths.mk.in b/config/Paths.mk.in
index a603295146..8a518d5a5d 100644
--- a/config/Paths.mk.in
+++ b/config/Paths.mk.in
@@ -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@
 
diff --git a/m4/paths.m4 b/m4/paths.m4
index f208b7e39f..7c5a775c88 100644
--- a/m4/paths.m4
+++ b/m4/paths.m4
@@ -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/usr/lib/debug]]),
+    [debugdir_path=$withval],
+    [debugdir_path=$prefix/usr/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
-- 
2.16.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-05-29 10:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-27 16:13 [PATCH for-4.11] tools: set DEBUG_DIR from configure Roger Pau Monne
2018-03-27 16:18 ` Olaf Hering
2018-03-27 16:20   ` Roger Pau Monné
2018-03-27 16:28     ` Roger Pau Monné
2018-03-27 16:55       ` Doug Goldstein
2018-03-28  7:26         ` Roger Pau Monné
2018-03-28 16:27           ` Doug Goldstein
2018-05-25 15:19 ` Olaf Hering
2018-05-25 15:46   ` Ian Jackson
2018-05-28  6:06     ` Olaf Hering
2018-05-29 10:22       ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.