Signed-off-by: Alexander Stein <[email protected]>
---
rules/pciutils.in | 7 +++++++
rules/pciutils.make | 6 ++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/rules/pciutils.in b/rules/pciutils.in
index 1c11d65..b292256 100644
--- a/rules/pciutils.in
+++ b/rules/pciutils.in
@@ -18,6 +18,13 @@ config PCIUTILS_COMPRESS
Save storage space by compressing the pci-id database. Access will be
a
little bit slower then.
+config PCIUTILS_SHARED
+ bool
+ default n
+ prompt "build shared object"
+ help
+ Build libpci.so.
+
endif
comment "busybox' lspci is selected"
diff --git a/rules/pciutils.make b/rules/pciutils.make
index 26d3def..4ef3786 100644
--- a/rules/pciutils.make
+++ b/rules/pciutils.make
@@ -55,6 +55,9 @@ else
PCIUTILS_MAKEVARS += ZLIB=no
endif
+ifdef PTXCONF_PCIUTILS_SHARED
+PCIUTILS_MAKEVARS += SHARED=yes
+endif
$(STATEDIR)/pciutils.prepare:
@$(call targetinfo)
@$(call touch)
@@ -83,6 +86,9 @@ else
@$(call install_copy, pciutils, 0, 0, 0644, -, \
/usr/share/pci.ids, n)
endif
+ifdef PTXCONF_PCIUTILS_SHARED
+ @$(call install_lib, pciutils, 0, 0, 0644, libpci)
+endif
@$(call install_finish, pciutils)
@$(call touch)
--
1.7.3.4
--
ptxdist mailing list
[email protected]