summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/libpv.in13
-rw-r--r--rules/libpv.make15
2 files changed, 24 insertions, 4 deletions
diff --git a/rules/libpv.in b/rules/libpv.in
index 5538dd048..9d9753f99 100644
--- a/rules/libpv.in
+++ b/rules/libpv.in
@@ -13,10 +13,11 @@ menuconfig LIBPV
The library has also an integrated JVisu socket server.
+if LIBPV
+
config LIBPV_EVENT
bool
prompt "event support"
- depends on LIBPV
help
This switch enables support for the libpv event mechanism. If
enabled it is possible to be notified when process variables have
@@ -33,10 +34,18 @@ config LIBPV_NEEDS_LIBMQUEUE
mostly the case on older glibc revisions prior 2.3.5. Newer
glibc revisions supports this feature natively.
+config LIBPV_PYTHON
+ bool
+ prompt "Python bindings"
+ select PYTHON24
+ help
+ FIXME: This item needs to be documented
+
config LIBPV_PVTOOL
bool
prompt "install pvtool"
- depends on LIBPV
help
pvtool is a tool belonging to libpv. It is used to read, write
and manipulate process variables in a standalone manner.
+
+endif
diff --git a/rules/libpv.make b/rules/libpv.make
index d46ae879e..2d2cbe387 100644
--- a/rules/libpv.make
+++ b/rules/libpv.make
@@ -17,7 +17,7 @@ PACKAGES-$(PTXCONF_LIBPV) += libpv
#
# Paths and names
#
-LIBPV_VERSION = 1.2.5
+LIBPV_VERSION = 1.2.9
LIBPV = libpv-$(LIBPV_VERSION)
LIBPV_SUFFIX = tar.bz2
LIBPV_URL = http://www.pengutronix.de/software/libpv/download/$(LIBPV).$(LIBPV_SUFFIX)
@@ -72,6 +72,11 @@ LIBPV_AUTOCONF += --enable-event
else
LIBPV_AUTOCONF += --disable-event
endif
+ifdef PTXCONF_LIBPV_PYTHON
+LIBPV_AUTOCONF += --enable-python
+else
+LIBPV_AUTOCONF += --disable-python
+endif
$(STATEDIR)/libpv.prepare: $(libpv_prepare_deps_default)
@$(call targetinfo, $@)
@@ -89,7 +94,7 @@ libpv_compile: $(STATEDIR)/libpv.compile
$(STATEDIR)/libpv.compile: $(libpv_compile_deps_default)
@$(call targetinfo, $@)
- cd $(LIBPV_DIR) && $(LIBPV_ENV) $(LIBPV_PATH) make
+ cd $(LIBPV_DIR) && $(LIBPV_ENV) $(LIBPV_PATH) LDSHARED="$(CROSS_CC) -shared" make
@$(call touch, $@)
# ----------------------------------------------------------------------------
@@ -132,6 +137,12 @@ endif
@$(call install_link, libpv, libpv.so.8.1.3, /usr/lib/libpv.so.8)
@$(call install_link, libpv, libpv.so.8.1.3, /usr/lib/libpv.so)
+ifdef PTXCONF_LIBPV_PYTHON
+ @$(call install_copy, libpv, 0, 0, 0644, \
+ $(SYSROOT)/usr/lib/python2.4/site-packages/libpv.so, \
+ /usr/lib/python2.4/site-packages/libpv.so)
+endif
+
@$(call install_finish, libpv)
@$(call touch, $@)