From: Alison Chaiken <[email protected]>

Signed-off-by: Alison Chaiken <[email protected]>
---
 include/applets.src.h |  2 ++
 util-linux/Config.src | 20 ++++++++++++++++++++
 util-linux/Kbuild.src |  4 ++++
 3 files changed, 26 insertions(+)

diff --git a/include/applets.src.h b/include/applets.src.h
index 7dbd4c7..1fb256a 100644
--- a/include/applets.src.h
+++ b/include/applets.src.h
@@ -223,7 +223,9 @@ IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, 
BB_SUID_DROP, lpq))
 IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr))
 IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
 IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP))
+IF_LSI2C(APPLET(lsi2c, BB_DIR_USR_BIN, BB_SUID_DROP))
 IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
+IF_LSSPI(APPLET(lsspi, BB_DIR_USR_BIN, BB_SUID_DROP))
 IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
 IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP))
 IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
diff --git a/util-linux/Config.src b/util-linux/Config.src
index 5a8b006..b3c72f1 100644
--- a/util-linux/Config.src
+++ b/util-linux/Config.src
@@ -384,6 +384,16 @@ config LOSETUP
          file or block device, and to query the status of a loop device. This
          version does not currently support enabling data encryption.
 
+config LSI2C
+       bool "lsi2c"
+       default n
+       #select PLATFORM_LINUX
+       help
+         lsi2c is a utility for displaying information about I2c buses in the
+         system and devices connected to them.
+
+         This version uses sysfs (/sys/bus/i2c/devices) only.
+
 config LSPCI
        bool "lspci"
        default y
@@ -394,6 +404,16 @@ config LSPCI
 
          This version uses sysfs (/sys/bus/pci/devices) only.
 
+config LSSPI
+       bool "lsspi"
+       default n
+       #select PLATFORM_LINUX
+       help
+         lsspi is a utility for displaying information about SPI buses in the
+         system and devices connected to them.
+
+         This version uses sysfs (/sys/bus/spi/devices) only.
+
 config LSUSB
        bool "lsusb"
        default y
diff --git a/util-linux/Kbuild.src b/util-linux/Kbuild.src
index 468fc6b..898bfa6 100644
--- a/util-linux/Kbuild.src
+++ b/util-linux/Kbuild.src
@@ -24,7 +24,9 @@ lib-$(CONFIG_HWCLOCK)           += hwclock.o
 lib-$(CONFIG_IPCRM)             += ipcrm.o
 lib-$(CONFIG_IPCS)              += ipcs.o
 lib-$(CONFIG_LOSETUP)           += losetup.o
+lib-$(CONFIG_LSI2C)             += lsi2c.o
 lib-$(CONFIG_LSPCI)             += lspci.o
+lib-$(CONFIG_LSSPI)             += lsspi.o
 lib-$(CONFIG_LSUSB)             += lsusb.o
 lib-$(CONFIG_MKFS_EXT2)         += mkfs_ext2.o
 lib-$(CONFIG_MKFS_MINIX)        += mkfs_minix.o
@@ -44,3 +46,5 @@ lib-$(CONFIG_SETARCH)           += setarch.o
 lib-$(CONFIG_SWAPONOFF)         += swaponoff.o
 lib-$(CONFIG_SWITCH_ROOT)       += switch_root.o
 lib-$(CONFIG_UMOUNT)            += umount.o
+lib-$(CONFIG_LSSPI)            += lsspi.o
+lib-$(CONFIG_LSI2C)            += lsi2c.o
-- 
1.8.5.2

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to