diff options
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap/monitor-option.patch | 28 | ||||
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.bb | 8 | ||||
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.inc | 1 |
3 files changed, 33 insertions, 4 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/monitor-option.patch b/meta/recipes-kernel/systemtap/systemtap/monitor-option.patch new file mode 100644 index 0000000000..7d43a79e21 --- /dev/null +++ b/meta/recipes-kernel/systemtap/systemtap/monitor-option.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | Add an option to explicitly disable the monitor (and therefore the dependency on | ||
2 | json-c and ncurses). | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
6 | |||
7 | diff --git a/configure.ac b/configure.ac | ||
8 | index cd781a2..e56079a 100644 | ||
9 | --- a/configure.ac | ||
10 | +++ b/configure.ac | ||
11 | @@ -570,13 +574,16 @@ dnl See if we have enough libraries and tools to build the virt server | ||
12 | fi | ||
13 | AM_CONDITIONAL([BUILD_VIRT], [test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"]) | ||
14 | |||
15 | +AC_ARG_ENABLE([monitor], AS_HELP_STRING([--disable-monitor],[Disable monitor])) | ||
16 | +if test "$enable_monitor" != "no"; then | ||
17 | dnl Check for presence of json-c and ncurses for use in monitor mode | ||
18 | PKG_CHECK_MODULES([jsonc], [json-c], [have_jsonc=yes], [have_jsonc=no]) | ||
19 | PKG_CHECK_MODULES([ncurses], [ncurses], [have_ncurses=yes], [have_ncurses=no]) | ||
20 | -AM_CONDITIONAL([HAVE_MONITOR_LIBS], [test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"]) | ||
21 | if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then | ||
22 | AC_DEFINE([HAVE_MONITOR_LIBS],[1],[Define to 1 if json-c and ncurses libraries are installed]) | ||
23 | fi | ||
24 | +fi | ||
25 | +AM_CONDITIONAL([HAVE_MONITOR_LIBS], [test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes" -a "$enable_monitor" != "no"]) | ||
26 | |||
27 | AC_CACHE_CHECK([for assembler .section "?" flags support], stap_cv_sectionq, [ | ||
28 | old_CFLAGS="$CFLAGS" | ||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.bb b/meta/recipes-kernel/systemtap/systemtap_git.bb index da30fa5e6d..43bf69e877 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.bb +++ b/meta/recipes-kernel/systemtap/systemtap_git.bb | |||
@@ -2,9 +2,7 @@ SUMMARY = "Script-directed dynamic tracing and performance analysis tool for Lin | |||
2 | 2 | ||
3 | require systemtap_git.inc | 3 | require systemtap_git.inc |
4 | 4 | ||
5 | DEPENDS = "elfutils sqlite3 systemtap-native ncurses json-c" | 5 | DEPENDS = "boost elfutils" |
6 | DEPENDS_class-native = "elfutils-native sqlite3-native gettext-native" | ||
7 | DEPENDS_class-nativesdk = "nativesdk-elfutils nativesdk-sqlite3 nativesdk-gettext" | ||
8 | 6 | ||
9 | RDEPENDS_${PN} += "python3-core bash" | 7 | RDEPENDS_${PN} += "python3-core bash" |
10 | 8 | ||
@@ -19,8 +17,10 @@ STAP_DOCS ?= "--disable-docs --disable-publican --disable-refdocs" | |||
19 | 17 | ||
20 | EXTRA_OECONF += "${STAP_DOCS} " | 18 | EXTRA_OECONF += "${STAP_DOCS} " |
21 | 19 | ||
22 | PACKAGECONFIG ??= "" | 20 | PACKAGECONFIG ??= "sqlite monitor" |
23 | PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" | 21 | PACKAGECONFIG[libvirt] = "--enable-libvirt,--disable-libvirt,libvirt" |
22 | PACKAGECONFIG[sqlite] = "--enable-sqlite,--disable-sqlite,sqlite3" | ||
23 | PACKAGECONFIG[monitor] = "--enable-monitor,--disable-monitor,ncurses json-c" | ||
24 | 24 | ||
25 | inherit autotools gettext pkgconfig | 25 | inherit autotools gettext pkgconfig |
26 | 26 | ||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc index ce976edeb5..304eb99750 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc | |||
@@ -8,6 +8,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git \ | |||
8 | file://system_map_location.patch \ | 8 | file://system_map_location.patch \ |
9 | file://configure-allow-to-disable-libvirt.patch \ | 9 | file://configure-allow-to-disable-libvirt.patch \ |
10 | file://x32_abi_time.patch \ | 10 | file://x32_abi_time.patch \ |
11 | file://monitor-option.patch \ | ||
11 | " | 12 | " |
12 | 13 | ||
13 | # systemtap doesn't support mips | 14 | # systemtap doesn't support mips |