Add --enable-mtd configure option
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Mon, 14 Dec 2015 03:25:12 +0000 (14:25 +1100)
committerSam Mendoza-Jonas <sam@mendozajonas.com>
Tue, 9 Feb 2016 02:40:15 +0000 (13:40 +1100)
Support optionally building features that rely on libflash support.

Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
configure.ac

index b540819fe14d54ca08d62a8829e053f333d6d3d8..c9f587eca99c50195a4808792bb34faf1979b916 100644 (file)
@@ -161,6 +161,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(