openpower: Allow building MTD support in Petitboot
Create the BR2_PACKAGE_PETITBOOT_MTD option to enable MTD support when
building Petitboot. This depends on the openpower 'libflash' package.
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
diff --git a/openpower/package/petitboot/Config.in b/openpower/package/petitboot/Config.in
index a6021dd..b85618d 100644
--- a/openpower/package/petitboot/Config.in
+++ b/openpower/package/petitboot/Config.in
@@ -19,3 +19,12 @@
comment "petitboot requires udev to be enabled"
depends on !BR2_PACKAGE_HAS_UDEV
+
+config BR2_PACKAGE_PETITBOOT_MTD
+ bool "petitboot-mtd"
+ depends on BR2_PACKAGE_PETITBOOT
+ select BR2_PACKAGE_LIBFLASH
+ help
+ Adds Petitboot support for MTD devices
+
+comment "Add support for accessing MTD devices"