From: Carsten Schlote <[email protected]>
Signed-off-by: Carsten Schlote <[email protected]>
---
rules/libsysfs.in | 15 ++++++++++++++-
rules/libsysfs.make | 4 ++++
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/rules/libsysfs.in b/rules/libsysfs.in
index 501410d..399435d 100644
--- a/rules/libsysfs.in
+++ b/rules/libsysfs.in
@@ -1,6 +1,6 @@
## SECTION=system_libraries
-config LIBSYSFS
+menuconfig LIBSYSFS
tristate
prompt "libsysfs"
help
@@ -8,3 +8,16 @@ config LIBSYSFS
provides a tree of system devices. libsysfs provides a
stable programming interface to sysfs and eases querying
system devices and their attributes.
+
+if LIBSYSFS
+
+config LIBSYSFS_SYSTOOL
+ bool
+ prompt "install sysfs systool"
+ help
+ Enable this tio get the program 'systool'
+ to query sysfs entries: it can list devices
+ by bus, class, and topology.
+
+endif
+
diff --git a/rules/libsysfs.make b/rules/libsysfs.make
index 123a304..f12eabc 100644
--- a/rules/libsysfs.make
+++ b/rules/libsysfs.make
@@ -64,6 +64,10 @@ $(STATEDIR)/libsysfs.targetinstall:
@$(call install_link, libsysfs, libsysfs.so.2.0.1,
/usr/lib/libsysfs.so.2)
@$(call install_link, libsysfs, libsysfs.so.2.0.1, /usr/lib/libsysfs.so)
+ifdef PTXCONF_LIBSYSFS_SYSTOOL
+ @$(call install_copy, libsysfs, 0, 0, 0775, -, /usr/bin/systool)
+endif
+
@$(call install_finish, libsysfs)
@$(call touch)
--
1.6.5.6.gb3118
--
ptxdist mailing list
[email protected]