浏览代码

package/systemd: add optional support for bootchart

Signed-off-by: Gabe Evans <gabe@hashrabbit.co>
[Thomas: rewrap Config.in help text.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Gabe Evans 9 年之前
父节点
当前提交
41304124f2
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 10 0
      package/systemd/Config.in
  2. 6 0
      package/systemd/systemd.mk

+ 10 - 0
package/systemd/Config.in

@@ -100,6 +100,16 @@ config BR2_PACKAGE_SYSTEMD_VCONSOLE
 
 	  http://www.freedesktop.org/software/systemd/man/systemd-vconsole-setup.service.html
 
+config BR2_PACKAGE_SYSTEMD_BOOTCHART
+	bool "enable bootchart tool"
+	help
+	  systemd-bootchart is a tool, usually run at system startup,
+	  that collects the CPU load, disk load, memory usage, as well
+	  as per-process information from a running system. Collected
+	  results are output as an SVG graph.
+
+	  http://www.freedesktop.org/software/systemd/man/systemd-bootchart.html
+
 config BR2_PACKAGE_SYSTEMD_NETWORKD
 	bool "enable network manager"
 	help

+ 6 - 0
package/systemd/systemd.mk

@@ -143,6 +143,12 @@ else
 SYSTEMD_CONF_OPTS += --disable-vconsole
 endif
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_BOOTCHART),y)
+SYSTEMD_CONF_OPTS += --enable-bootchart
+else
+SYSTEMD_CONF_OPTS += --disable-bootchart
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += --enable-networkd
 define SYSTEMD_INSTALL_RESOLVCONF_HOOK