openpower-software-manager: Add mmc support
Add support for the mmc configuration option based on the
phosphor-mmc distro feature.
Change-Id: Icc15c9629afedf9d4d55bafd522fd1c9f7d1bc09
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/recipes-phosphor/flash/openpower-software-manager_git.bb b/recipes-phosphor/flash/openpower-software-manager_git.bb
index a0873b4..4306ff9 100644
--- a/recipes-phosphor/flash/openpower-software-manager_git.bb
+++ b/recipes-phosphor/flash/openpower-software-manager_git.bb
@@ -11,15 +11,29 @@
inherit autotools pkgconfig systemd
inherit obmc-phosphor-dbus-service
+# Static configuration. This is the default if no other layout is specified.
+inherit ${@bb.utils.contains_any('DISTRO_FEATURES', \
+ 'openpower-ubi-fs phosphor-mmc', \
+ '', \
+ 'openpower-software-manager-static', d)}
+
+# UBI layout
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'openpower-ubi-fs', \
'openpower-software-manager-ubi', \
- 'openpower-software-manager-static', d)}
+ '', d)}
+# eMMC layout
+inherit ${@bb.utils.contains('DISTRO_FEATURES', 'phosphor-mmc', \
+ 'openpower-software-manager-mmc', \
+ '', d)}
+
+# Virtual PNOR
inherit ${@bb.utils.contains('DISTRO_FEATURES', 'openpower-virtual-pnor', \
'openpower-software-manager-virtual-pnor', \
'', d)}
PACKAGECONFIG[verify_pnor_signature] = "--enable-verify_pnor_signature,--disable-verify_pnor_signature"
PACKAGECONFIG[ubifs_layout] = "--enable-ubifs_layout,--disable-ubifs_layout,,mtd-utils-ubifs"
+PACKAGECONFIG[mmc_layout] = "--enable-mmc_layout,--disable-mmc_layout"
PACKAGECONFIG[virtual_pnor] = "--enable-virtual_pnor,--disable-virtual_pnor"
EXTRA_OECONF += " \