Skip to contentSkip to conversation

package/util-linux: add an option to enable lscpu

PATCH In review Anthony Harivel 2 participants 3 messages Nov 23, 2023 – Dec 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/util-linux: add an option to enable lscpu

lscpu displays information about CPU architecture and needs to be explicitly enable for compilation.

---
 package/util-linux/Config.in     | 9 ++++++++-
 package/util-linux/util-linux.mk | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)
package/util-linux/Config.in +8 -1
index be87494b35cf..3eb1b2e1c9a3 100644
@@ -58,7 +58,7 @@ config BR2_PACKAGE_UTIL_LINUX_BINARIES
 	  blkdiscard, blkid, blockdev, chcpu, choom, col, colcrt, colrm,
 	  column, ctrlaltdel, dmesg, fdisk, fincore, findfs, findmnt,
 	  flock, fsfreeze, fstrim, getopt, hexdump, ipcmk, isosize,
-	  ldattach, look, lsblk, lscpu, lsipc, lslocks, lsns, mcookie,
+	  ldattach, look, lsblk, lsipc, lslocks, lsns, mcookie,
 	  mkfs, mkswap, namei, prlimit, readprofile, renice, rev,
 	  rtcwake, script, scriptlive, scriptreplay, setarch, setsid,
 	  sfdisk, swaplabel, swapoff, swapon, uuidgen, uuidparse,
@@ -211,6 +211,13 @@ config BR2_PACKAGE_UTIL_LINUX_LOSETUP
 	help
 	  Set up and control loop devices
 
+config BR2_PACKAGE_UTIL_LINUX_LSCPU
+	bool "lscpu"
+	depends on BR2_USE_MMU # libsmartcols
+	select BR2_PACKAGE_UTIL_LINUX_LIBSMARTCOLS
+	help
+	  Display information about the CPU architecture
+
 config BR2_PACKAGE_UTIL_LINUX_LSFD
 	bool "lsfd"
 	depends on BR2_USE_MMU # libsmartcols
package/util-linux/util-linux.mk +1 -0
index 72126adb005f..3546c07337e0 100644
@@ -161,6 +161,7 @@ UTIL_LINUX_CONF_OPTS += \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LOGGER),--enable-logger,--disable-logger) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN),--enable-login,--disable-login) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LOSETUP),--enable-losetup,--disable-losetup) \
+	$(if $(BR2_PACKAGE_UTIL_LINUX_LSCPU),--enable-lscpu,--disable-lscpu) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LSFD),--enable-lsfd,--disable-lsfd) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LSLOGINS),--enable-lslogins,--disable-lslogins) \
 	$(if $(BR2_PACKAGE_UTIL_LINUX_LSMEM),--enable-lsmem,--disable-lsmem) \
Signature · 6 lines
2.42.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

bump email.

Quoted 50 lines · Anthony Harivel

lscpu displays information about CPU architecture and needs to be explicitly enable for compilation.

---
 package/util-linux/Config.in     | 9 ++++++++-
 package/util-linux/util-linux.mk | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)
package/util-linux/Config.in +8 -1
index be87494b35cf..3eb1b2e1c9a3 100644
@@ -58,7 +58,7 @@ config BR2_PACKAGE_UTIL_LINUX_BINARIES
          blkdiscard, blkid, blockdev, chcpu, choom, col, colcrt, colrm,
          column, ctrlaltdel, dmesg, fdisk, fincore, findfs, findmnt,
          flock, fsfreeze, fstrim, getopt, hexdump, ipcmk, isosize,
-         ldattach, look, lsblk, lscpu, lsipc, lslocks, lsns, mcookie,
+         ldattach, look, lsblk, lsipc, lslocks, lsns, mcookie,
          mkfs, mkswap, namei, prlimit, readprofile, renice, rev,
          rtcwake, script, scriptlive, scriptreplay, setarch, setsid,
          sfdisk, swaplabel, swapoff, swapon, uuidgen, uuidparse,
@@ -211,6 +211,13 @@ config BR2_PACKAGE_UTIL_LINUX_LOSETUP
        help
          Set up and control loop devices
 
+config BR2_PACKAGE_UTIL_LINUX_LSCPU
+       bool "lscpu"
+       depends on BR2_USE_MMU # libsmartcols
+       select BR2_PACKAGE_UTIL_LINUX_LIBSMARTCOLS
+       help
+         Display information about the CPU architecture
+
 config BR2_PACKAGE_UTIL_LINUX_LSFD
        bool "lsfd"
        depends on BR2_USE_MMU # libsmartcols
package/util-linux/util-linux.mk +1 -1
index 72126adb005f..3546c07337e0 100644
@@ -161,6 +161,7 @@ UTIL_LINUX_CONF_OPTS += \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LOGGER),--enable-logger,--disable-logger) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN),--enable-login,--disable-login) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LOSETUP),--enable-losetup,--disable-losetup) \
+       $(if $(BR2_PACKAGE_UTIL_LINUX_LSCPU),--enable-lscpu,--disable-lscpu) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LSFD),--enable-lsfd,--disable-lsfd) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LSLOGINS),--enable-lslogins,--disable-lslogins) \
        $(if $(BR2_PACKAGE_UTIL_LINUX_LSMEM),--enable-lsmem,--disable-lsmem) \
--
Quoted 2 lines

2.42.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Anthony" == Anthony Harivel <[email protected]> writes:

bump email.

Quoted 3 lines · Anthony Harivel

lscpu displays information about CPU architecture and needs to be explicitly enable for compilation.

Where do you see that? configure.ac has:

AC_ARG_ENABLE([lscpu],
AS_HELP_STRING([--disable-lscpu], [do not build lscpu]), [], [UL_DEFAULT_ENABLE([lscpu], [check])]
)

And doing a build with BR2_PACKAGE_UTIL_LINUX_BINARIES=y I see:

libtool: install: /usr/bin/install -c lscpu /home/peko/source/buildroot/output-util/target/usr/bin/lscpu

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot