Add recipe files to Auto generate led manager configuration files
Change-Id: Idb60e5fa12ef6114eccabada85920aae2f0a3a1b
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/common/recipes-phosphor/leds/phosphor-led-manager-config.bb b/common/recipes-phosphor/leds/phosphor-led-manager-config.bb
new file mode 100644
index 0000000..3a04498
--- /dev/null
+++ b/common/recipes-phosphor/leds/phosphor-led-manager-config.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Phosphor LED Group Management meta data"
+PR = "r1"
+
+inherit obmc-phosphor-utils
+inherit obmc-phosphor-license
+
+# Default is the example set of data.
+PHOSPHOR_LED_MANAGER_CONFIG ??= "${PN}-example-native"
+
+# Choose appropriate yaml file
+def get_depends(d):
+ if d.getVar('USE_MRW', 'yes'):
+ return "${PN}-mrw-native"
+ else:
+ return "${PHOSPHOR_LED_MANAGER_CONFIG}"
+
+USE_MRW = "${@cf_enabled('obmc-mrw', 'yes', d)}"
+DEPENDS += "${@get_depends(d)}"