[PATCH V2 1/4] Add --enable-mtd configure option

Sam Mendoza-Jonas sam at mendozajonas.com
Fri Jan 15 15:14:54 AEDT 2016


From: Samuel Mendoza-Jonas <sam.mj at au1.ibm.com>

Support optionally building features that rely on libflash support.

Signed-off-by: Sam Mendoza-Jonas <sam at mendozajonas.com>
---
 configure.ac | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/configure.ac b/configure.ac
index b540819..c9f587e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,6 +162,21 @@ AC_ARG_ENABLE(
 #AM_CONDITIONAL([ENABLE_BUSYBOX], [test "x$enable_busybox" = "xyes"])
 
 AC_ARG_ENABLE(
+	[mtd],
+	[AS_HELP_STRING(
+		[--enable-mtd],
+		[Add support for MTD devices on certain platforms [default=no]]
+	)],
+	[],
+	[enable_mtd=no]
+)
+AM_CONDITIONAL([ENABLE_MTD], [test "x$enable_mtd" = "xyes"])
+AS_IF([test "x$enable_mtd" = "xyes"],
+      [AC_DEFINE(MTD_SUPPORT, 1, [Enable MTD support])],
+      []
+)
+
+AC_ARG_ENABLE(
 	[ps3],
 	[AS_HELP_STRING(
 		[--enable-ps3],
-- 
2.7.0



More information about the Petitboot mailing list