* [Buildroot] [PATCH 1/1] procps-ng: option to original top layout
@ 2024-08-04 3:12 Xiang Lin
2024-08-04 20:41 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Xiang Lin @ 2024-08-04 3:12 UTC (permalink / raw)
To: buildroot; +Cc: Xiang Lin
New procps-ng use modern top layout by default which
without detail cpu usage info, give a option for nostalgic
one to return to original.
Signed-off-by: Xiang Lin <myd.xia@gmail.com>
---
package/procps-ng/Config.in | 10 ++++++++++
package/procps-ng/procps-ng.mk | 4 ++++
2 files changed, 14 insertions(+)
diff --git a/package/procps-ng/Config.in b/package/procps-ng/Config.in
index 6ff8983202..4afd01699b 100644
--- a/package/procps-ng/Config.in
+++ b/package/procps-ng/Config.in
@@ -8,3 +8,13 @@ config BR2_PACKAGE_PROCPS_NG
Provides things like kill, ps, uptime, free, top, etc...
http://sourceforge.net/projects/procps-ng/
+
+if BR2_PACKAGE_PROCPS_NG
+
+config BR2_PACKAGE_PROCPS_NS_ORIGINAL_TOP
+ bool "Use original top layout"
+ help
+ Disable modern top layout, return to original top with
+ detail cpu usage.
+
+endif
diff --git a/package/procps-ng/procps-ng.mk b/package/procps-ng/procps-ng.mk
index ba8958d146..3f6136b08f 100644
--- a/package/procps-ng/procps-ng.mk
+++ b/package/procps-ng/procps-ng.mk
@@ -54,6 +54,10 @@ else
PROCPS_NG_CONF_OPTS += --enable-w
endif
+ifeq ($(BR2_PACKAGE_PROCPS_NS_ORIGINAL_TOP),y)
+PROCPS_NG_CONF_OPTS += --disable-modern-top
+endif
+
# Avoid installing S02sysctl, since openrc provides /etc/init.d/sysctl.
define PROCPS_NG_INSTALL_INIT_OPENRC
@:
--
2.45.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] procps-ng: option to original top layout
2024-08-04 3:12 [Buildroot] [PATCH 1/1] procps-ng: option to original top layout Xiang Lin
@ 2024-08-04 20:41 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-04 20:41 UTC (permalink / raw)
To: Xiang Lin; +Cc: buildroot
On Sun, 4 Aug 2024 11:12:32 +0800
Xiang Lin <myd.xia@gmail.com> wrote:
> New procps-ng use modern top layout by default which
> without detail cpu usage info, give a option for nostalgic
> one to return to original.
>
> Signed-off-by: Xiang Lin <myd.xia@gmail.com>
> ---
> package/procps-ng/Config.in | 10 ++++++++++
> package/procps-ng/procps-ng.mk | 4 ++++
> 2 files changed, 14 insertions(+)
Applied to master with a slightly improved commit log. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-04 20:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-04 3:12 [Buildroot] [PATCH 1/1] procps-ng: option to original top layout Xiang Lin
2024-08-04 20:41 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.