meta-openpower: Create new virtual-pnor distro feature
Currently the virtual pnor features are conditioned on the ubi
distro feature, but there are cases where a system running on
an emmc for example is not using ubi but would like to use
virtual pnor. Therefore create a separate distro feature to
enable it, and add it to the ubi distro feature to ensure that
any system that includes ubi doesn't have to remember to add
this new virtual pnor distro feature.
Tested: "bitbake -e" shows DISTRO_FEATURES="... openpower-virtual-pnor openpower-ubi-fs"
Change-Id: I0086df8bd399e6b6a2f9f13d22b63ae28418dc6d
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/conf/distro/include/openpower-ubi.inc b/conf/distro/include/openpower-ubi.inc
index cb488c8..95355b8 100644
--- a/conf/distro/include/openpower-ubi.inc
+++ b/conf/distro/include/openpower-ubi.inc
@@ -1,2 +1,4 @@
+require conf/distro/include/openpower-virtual-pnor.inc
+
DISTRO_FEATURES += "openpower-ubi-fs"
DISTROOVERRIDES .= ":df-openpower-ubi-fs"
diff --git a/conf/distro/include/openpower-virtual-pnor.inc b/conf/distro/include/openpower-virtual-pnor.inc
new file mode 100644
index 0000000..56a4a4d
--- /dev/null
+++ b/conf/distro/include/openpower-virtual-pnor.inc
@@ -0,0 +1,2 @@
+DISTRO_FEATURES += "openpower-virtual-pnor"
+DISTROOVERRIDES .= ":df-openpower-virtual-pnor"