From: Geoff Levand Date: Thu, 2 Aug 2018 17:29:40 +0000 (+0000) Subject: lib/system: Add dmidecode as system app X-Git-Tag: v1.9.0~15 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=c8afffc32546c3cd72d5d229081211b8e9efe9ee lib/system: Add dmidecode as system app For use by the arm64 get_sysinfo. Signed-off-by: Geoff Levand Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/configure.ac b/configure.ac index 38fe341..eca574a 100644 --- a/configure.ac +++ b/configure.ac @@ -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], diff --git a/lib/system/system.c b/lib/system/system.c index df27c87..89790ba 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -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 diff --git a/lib/system/system.h b/lib/system/system.h index e3e8a30..2389951 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -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;