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:12:30 +0100 |
commit | 9557bf88287216ff8cb98005cbc85b6928f4495c (patch) | |
tree | 1cc2d4c7a40a63c09843936d7b857b9fd1605aec /meta/recipes-kernel | |
parent | 9a8b35ec689ca583bb1e117ca4998215da7fcac6 (diff) | |
download | openembedded-core-9557bf88287216ff8cb98005cbc85b6928f4495c.tar.gz openembedded-core-9557bf88287216ff8cb98005cbc85b6928f4495c.tar.bz2 openembedded-core-9557bf88287216ff8cb98005cbc85b6928f4495c.zip |
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
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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" SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88" PV = "v2.5.0" +PYTHON_OPTION = "am_cv_python_pyexecdir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ + am_cv_python_pythondir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ + PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}' \ +" +PACKAGECONFIG ??= "lttng-ust" +PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig-native" +PACKAGECONFIG[lttng-ust] = ", --disable-lttng-ust, lttng-ust" + SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.5 \ file://runtest-2.4.0.patch \ file://run-ptest \ @@ -26,12 +34,17 @@ inherit autotools-brokensep ptest pkgconfig export KERNELDIR="${STAGING_KERNEL_DIR}" -FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng" -FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug" +FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng \ + ${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" +FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug \ + ${libdir}/python2.7/site-packages/.debug" +FILES_${PN}-staticdev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a" +FILES_${PN}-dev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la" # Since files are installed into ${libdir}/lttng/libexec we match # the libexec insane test so skip it. -INSANE_SKIP_${PN} = "libexec" +# Python module needs to keep _lttng.so +INSANE_SKIP_${PN} = "libexec dev-so" INSANE_SKIP_${PN}-dbg = "libexec" do_configure_prepend () { |