packages: Add proper definitions for common-p8-xml and openpower-mrw

The Config.in files for common-p8-xml and openpower-mrw are empty, and
not included by any of the current kconfig infrastructure.

We want to express config dependencies that include these packages, as
we need the xml and mrw components to be build before the PNOR image. In
order to express those dependencies in a DEPENDENCIES variable, we need
to have corresponding kconfig symbols.

For openpower-mrw, we just enable if hostboot is selected.

For common-p8-xml, we enable if hostboot is selected, but also depend on
the MRW package, as this is required by each of the platform xml
packages. This allows those packages to depend on the common package,
rather than open-coding those dependencies in each.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/openpower/package/Config.in b/openpower/package/Config.in
index 902d2ec..571d4c0 100755
--- a/openpower/package/Config.in
+++ b/openpower/package/Config.in
@@ -1,6 +1,8 @@
 source "$BR2_EXTERNAL/package/openpower-ffs/Config.in"
 source "$BR2_EXTERNAL/package/hostboot/Config.in"
 source "$BR2_EXTERNAL/package/hostboot-binaries/Config.in"
+source "$BR2_EXTERNAL/package/openpower-mrw/Config.in"
+source "$BR2_EXTERNAL/package/common-p8-xml/Config.in"
 source "$BR2_EXTERNAL/package/palmetto-xml/Config.in"
 source "$BR2_EXTERNAL/package/habanero-xml/Config.in"
 source "$BR2_EXTERNAL/package/firestone-xml/Config.in"
diff --git a/openpower/package/common-p8-xml/Config.in b/openpower/package/common-p8-xml/Config.in
index e69de29..2c01702 100644
--- a/openpower/package/common-p8-xml/Config.in
+++ b/openpower/package/common-p8-xml/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_COMMON_P8_XML
+        bool "Common P8 XML files"
+        default y if BR2_PACKAGE_HOSTBOOT
+        select BR2_PACKAGE_OPENPOWER_MRW
diff --git a/openpower/package/openpower-mrw/Config.in b/openpower/package/openpower-mrw/Config.in
index e69de29..633e166 100644
--- a/openpower/package/openpower-mrw/Config.in
+++ b/openpower/package/openpower-mrw/Config.in
@@ -0,0 +1,3 @@
+config BR2_PACKAGE_OPENPOWER_MRW
+        bool "Machine Readable Workbook (MRW) infrastructure"
+        default y if BR2_PACKAGE_HOSTBOOT