Răsfoiți Sursa

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>
Xiang Lin 1 an în urmă
părinte
comite
069a933894
2 a modificat fișierele cu 14 adăugiri și 0 ștergeri
  1. 10 0
      package/procps-ng/Config.in
  2. 4 0
      package/procps-ng/procps-ng.mk

+ 10 - 0
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

+ 4 - 0
package/procps-ng/procps-ng.mk

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