meta-facebook: add fb-phosphor-image.inc
Builds done using facebook/openbmc do not use the 'obmc-phosphor-image'
image name, but instead use 'MACHINE-image'. This means that bbappend
files have no effect and we need a different method to get consistent
sets of include files. Introduce 'fb-phosphor-image.inc' and
'fb-MACHINE-phosphor-image.inc' as the replacements for the
obmc-phosphor-image.bbappend.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I166342c1744d1cd0237f8c75d90d87153fb19b35
diff --git a/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
new file mode 100644
index 0000000..fbc8080
--- /dev/null
+++ b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
@@ -0,0 +1,9 @@
+IMAGE_FEATURES:remove:fb-nohost = "obmc-console"
+
+OBMC_IMAGE_EXTRA_INSTALL:append = "\
+ ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', \
+ bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'packagegroup-security-tpm2', '', d), \
+ '', d)} \
+ "
+
+include recipes-phosphor/images/fb-${MACHINE}-phosphor-image.inc