diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-09-04 15:51:00 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-16 22:14:07 +0100 |
commit | a4cfa204bd58e234376da1e10a03decc6c105702 (patch) | |
tree | 21d4265d80de0c302d13408a9b0dc978642ea59d /meta/recipes-kernel | |
parent | 04a336043f828a5ffa67e8aff4f92baeef7b7971 (diff) | |
download | poky-a4cfa204bd58e234376da1e10a03decc6c105702.tar.gz |
lttng-tools: add PACKAGECONFIG to support --enable-python-bindings and lttng-ust
Add PACKAGECONFIG to support --enable-python-bindings
Add PACKAGECONFIG to support lttng-ust
And python-bindings requires swig-native as DEPENDS, and
swig-native is not in oe-core, so disable python-bindings
by default
(From OE-Core rev: 9557bf88287216ff8cb98005cbc85b6928f4495c)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb index 1ec0f4a72b..fd44aa5f6d 100644 --- a/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb +++ b/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb | |||
@@ -15,6 +15,14 @@ RDEPENDS_${PN}-ptest += "make perl bash" | |||
15 | SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88" | 15 | SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88" |
16 | PV = "v2.5.0" | 16 | PV = "v2.5.0" |
17 | 17 | ||
18 | PYTHON_OPTION = "am_cv_python_pyexecdir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
19 | am_cv_python_pythondir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
20 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}' \ | ||
21 | " | ||
22 | PACKAGECONFIG ??= "lttng-ust" | ||
23 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig-native" | ||
24 | PACKAGECONFIG[lttng-ust] = ", --disable-lttng-ust, lttng-ust" | ||
25 | |||
18 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.5 \ | 26 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.5 \ |
19 | file://runtest-2.4.0.patch \ | 27 | file://runtest-2.4.0.patch \ |
20 | file://run-ptest \ | 28 | file://run-ptest \ |
@@ -26,12 +34,17 @@ inherit autotools-brokensep ptest pkgconfig | |||
26 | 34 | ||
27 | export KERNELDIR="${STAGING_KERNEL_DIR}" | 35 | export KERNELDIR="${STAGING_KERNEL_DIR}" |
28 | 36 | ||
29 | FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng" | 37 | FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng \ |
30 | FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug" | 38 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
39 | FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug \ | ||
40 | ${libdir}/python2.7/site-packages/.debug" | ||
41 | FILES_${PN}-staticdev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a" | ||
42 | FILES_${PN}-dev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la" | ||
31 | 43 | ||
32 | # Since files are installed into ${libdir}/lttng/libexec we match | 44 | # Since files are installed into ${libdir}/lttng/libexec we match |
33 | # the libexec insane test so skip it. | 45 | # the libexec insane test so skip it. |
34 | INSANE_SKIP_${PN} = "libexec" | 46 | # Python module needs to keep _lttng.so |
47 | INSANE_SKIP_${PN} = "libexec dev-so" | ||
35 | INSANE_SKIP_${PN}-dbg = "libexec" | 48 | INSANE_SKIP_${PN}-dbg = "libexec" |
36 | 49 | ||
37 | do_configure_prepend () { | 50 | do_configure_prepend () { |