[PATCH 03/10] lib/system: Add pflash

Samuel Mendoza-Jonas sam at mendozajonas.com
Fri Aug 25 15:59:33 AEST 2017


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 2c2f23b..77d6979 100644
--- a/configure.ac
+++ b/configure.ac
@@ -336,6 +336,7 @@ DEFINE_HOST_PROG(VGSCAN, vgscan, [/usr/sbin/vgscan])
 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(PFLASH, pflash, [/usr/sbin/pflash])
 
 AC_ARG_WITH(
     [tftp],
diff --git a/lib/system/system.c b/lib/system/system.c
index 33f79ed..b2ca807 100644
--- a/lib/system/system.c
+++ b/lib/system/system.c
@@ -32,6 +32,7 @@ const struct pb_system_apps pb_system_apps = {
 	.vgchange	= HOST_PROG_VGCHANGE,
 	.pb_plugin	= HOST_PROG_PB_PLUGIN,
 	.pb_exec	= HOST_PROG_PB_EXEC,
+	.pflash		= HOST_PROG_PFLASH,
 };
 
 #ifndef TFTP_TYPE
diff --git a/lib/system/system.h b/lib/system/system.h
index e803391..4f58238 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -17,6 +17,7 @@ struct pb_system_apps {
 	const char *vgchange;
 	const char *pb_plugin;
 	const char *pb_exec;
+	const char *pflash;
 };
 
 extern const struct pb_system_apps pb_system_apps;
-- 
2.14.0



More information about the Petitboot mailing list