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

Message ID 20180118050517.2442-4-sam@mendozajonas.com
State RFC
Headers show
Series
  • [[RFC] v2 03/14] lib/system: Add pflash
Related show

Commit Message

Samuel Mendoza-Jonas Jan. 18, 2018, 5:05 a.m.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 configure.ac        | 1 +
 lib/system/system.c | 1 +
 lib/system/system.h | 1 +
 3 files changed, 3 insertions(+)

Patch

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;