* [Buildroot] [PATCH 1/1] package/util-linux: add an option to enable lscpu
@ 2023-11-23 15:31 Anthony Harivel
2023-12-03 18:15 ` Anthony Harivel
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Harivel @ 2023-11-23 15:31 UTC (permalink / raw)
To: buildroot; +Cc: Anthony Harivel
lscpu displays information about CPU architecture and needs to be
explicitly enable for compilation.
Signed-off-by: Anthony Harivel <aharivel@redhat.com>
---
package/util-linux/Config.in | 9 ++++++++-
package/util-linux/util-linux.mk | 1 +
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index be87494b35cf..3eb1b2e1c9a3 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -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
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 72126adb005f..3546c07337e0 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -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) \
--
2.42.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/util-linux: add an option to enable lscpu
2023-11-23 15:31 [Buildroot] [PATCH 1/1] package/util-linux: add an option to enable lscpu Anthony Harivel
@ 2023-12-03 18:15 ` Anthony Harivel
2023-12-03 19:02 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Harivel @ 2023-12-03 18:15 UTC (permalink / raw)
To: buildroot
bump email.
On Thu, Nov 23, 2023 at 4:31 PM Anthony Harivel <aharivel@redhat.com> wrote:
>
> lscpu displays information about CPU architecture and needs to be
> explicitly enable for compilation.
>
> Signed-off-by: Anthony Harivel <aharivel@redhat.com>
> ---
> package/util-linux/Config.in | 9 ++++++++-
> package/util-linux/util-linux.mk | 1 +
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
> index be87494b35cf..3eb1b2e1c9a3 100644
> --- a/package/util-linux/Config.in
> +++ b/package/util-linux/Config.in
> @@ -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
> diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
> index 72126adb005f..3546c07337e0 100644
> --- a/package/util-linux/util-linux.mk
> +++ b/package/util-linux/util-linux.mk
> @@ -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) \
> --
> 2.42.0
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/util-linux: add an option to enable lscpu
2023-12-03 18:15 ` Anthony Harivel
@ 2023-12-03 19:02 ` Peter Korsgaard
0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-12-03 19:02 UTC (permalink / raw)
To: Anthony Harivel; +Cc: buildroot
>>>>> "Anthony" == Anthony Harivel <aharivel@redhat.com> writes:
> bump email.
> On Thu, Nov 23, 2023 at 4:31 PM Anthony Harivel <aharivel@redhat.com> wrote:
>>
>> 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
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-03 19:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-23 15:31 [Buildroot] [PATCH 1/1] package/util-linux: add an option to enable lscpu Anthony Harivel
2023-12-03 18:15 ` Anthony Harivel
2023-12-03 19:02 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox