package/procps-ng: add option to select 'top' layout

The new procps-ng uses modern top layout by default which doesn't
provide detailed cpu usage info, so let's add an option for nostalgic
users that allows to get the original layout back.

Signed-off-by: Xiang Lin <myd.xia@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Xiang Lin
2024-08-04 11:12:32 +08:00
committed by Thomas Petazzoni
parent f9d6e6fb11
commit 069a933894
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -52,6 +52,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
@: