summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-09-04 15:51:00 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-16 22:14:07 +0100
commita4cfa204bd58e234376da1e10a03decc6c105702 (patch)
tree21d4265d80de0c302d13408a9b0dc978642ea59d /meta/recipes-kernel
parent04a336043f828a5ffa67e8aff4f92baeef7b7971 (diff)
downloadpoky-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.bb19
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"
15SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88" 15SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88"
16PV = "v2.5.0" 16PV = "v2.5.0"
17 17
18PYTHON_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"
22PACKAGECONFIG ??= "lttng-ust"
23PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig-native"
24PACKAGECONFIG[lttng-ust] = ", --disable-lttng-ust, lttng-ust"
25
18SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.5 \ 26SRC_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
27export KERNELDIR="${STAGING_KERNEL_DIR}" 35export KERNELDIR="${STAGING_KERNEL_DIR}"
28 36
29FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng" 37FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng \
30FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug" 38 ${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
39FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug \
40 ${libdir}/python2.7/site-packages/.debug"
41FILES_${PN}-staticdev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a"
42FILES_${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.
34INSANE_SKIP_${PN} = "libexec" 46# Python module needs to keep _lttng.so
47INSANE_SKIP_${PN} = "libexec dev-so"
35INSANE_SKIP_${PN}-dbg = "libexec" 48INSANE_SKIP_${PN}-dbg = "libexec"
36 49
37do_configure_prepend () { 50do_configure_prepend () {