diff mbox series

[v1,28/30] lib/system: Add dmidecode as system app

Message ID 5e4d45f806ca306607491f6ed45ee4e7bd4c9ea3.1532469861.git.geoff@infradead.org
State Superseded
Headers show
Series [v1,01/30] docker: Add libfdt-dev | expand

Commit Message

Geoff Levand July 24, 2018, 10:15 p.m. UTC
For use by the arm64 get_sysinfo.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 configure.ac        | 1 +
 lib/system/system.c | 1 +
 lib/system/system.h | 1 +
 3 files changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index 5b7c7b5..c92ef1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -393,6 +393,7 @@  DEFINE_HOST_PROG(PB_PLUGIN, pb-plugin, [/usr/sbin/pb-plugin])
 DEFINE_HOST_PROG(PB_EXEC, pb-exec, [/usr/sbin/pb-exec])
 DEFINE_HOST_PROG(SH, sh, [/bin/sh])
 DEFINE_HOST_PROG(SCSI_RESCAN, scsi-rescan, [/usr/sbin/scsi-rescan])
+DEFINE_HOST_PROG(DMIDECODE, dmidecode, [/sbin/dmidecode])
 
 AC_ARG_WITH(
     [tftp],
diff --git a/lib/system/system.c b/lib/system/system.c
index 6dafcb0..63ee483 100644
--- a/lib/system/system.c
+++ b/lib/system/system.c
@@ -34,6 +34,7 @@  const struct pb_system_apps pb_system_apps = {
 	.pb_exec	= HOST_PROG_PB_EXEC,
 	.sh		= HOST_PROG_SH,
 	.scsi_rescan	= HOST_PROG_SCSI_RESCAN,
+	.dmidecode	= HOST_PROG_DMIDECODE,
 };
 
 #ifndef TFTP_TYPE
diff --git a/lib/system/system.h b/lib/system/system.h
index 38fe392..2936e5e 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -19,6 +19,7 @@  struct pb_system_apps {
 	const char *pb_exec;
 	const char *sh;
 	const char *scsi_rescan;
+	const char *dmidecode;
 };
 
 extern const struct pb_system_apps pb_system_apps;