lib/system: Add dmidecode as system app
authorGeoff Levand <geoff@infradead.org>
Thu, 2 Aug 2018 17:29:40 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 7 Aug 2018 01:30:36 +0000 (11:30 +1000)
For use by the arm64 get_sysinfo.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
configure.ac
lib/system/system.c
lib/system/system.h

index 38fe3419b21a9d658b8feb4d214d0905568fd52c..eca574a647bc24f6e67125de8fe8f56082c22c7d 100644 (file)
@@ -394,6 +394,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],
index df27c87d909c993abde33afd984b543cb27a9b18..89790ba47932b3e94ee96a814eaf4adb2fa19212 100644 (file)
@@ -35,6 +35,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
index e3e8a30f19d95bf4cc4ec44da90957a649ac978a..2389951f7b8ee7c98723df41f7283c603c306782 100644 (file)
@@ -20,6 +20,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;