[[RFC PATCH] v2 03/14] lib/system: Add pflash

Samuel Mendoza-Jonas sam at mendozajonas.com
Thu Jan 18 16:05:06 AEDT 2018


Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>
---
 configure.ac        | 1 +
 lib/system/system.c | 1 +
 lib/system/system.h | 1 +
 3 files changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2456194..fae1bd4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -343,6 +343,7 @@ DEFINE_HOST_PROG(VGCHANGE, vgchange, [/usr/sbin/vgchange])
 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(PFLASH, pflash, [/usr/sbin/pflash])
 
 AC_ARG_WITH(
     [tftp],
diff --git a/lib/system/system.c b/lib/system/system.c
index b1121a1..97654d8 100644
--- a/lib/system/system.c
+++ b/lib/system/system.c
@@ -33,6 +33,7 @@ const struct pb_system_apps pb_system_apps = {
 	.pb_plugin	= HOST_PROG_PB_PLUGIN,
 	.pb_exec	= HOST_PROG_PB_EXEC,
 	.sh		= HOST_PROG_SH,
+	.pflash		= HOST_PROG_PFLASH,
 };
 
 #ifndef TFTP_TYPE
diff --git a/lib/system/system.h b/lib/system/system.h
index d27c2cd..6e1e257 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -18,6 +18,7 @@ struct pb_system_apps {
 	const char *pb_plugin;
 	const char *pb_exec;
 	const char *sh;
+	const char *pflash;
 };
 
 extern const struct pb_system_apps pb_system_apps;
-- 
2.15.1



More information about the Petitboot mailing list