Generate OCC Sensor mapping during build time
Change-Id: Ieb0ba06bc8875af382b1f8e9ed38ec36eeaece48
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/common/recipes-phosphor/occ/openpower-occ-control.bb b/common/recipes-phosphor/occ/openpower-occ-control.bb
index e1823fe..390ea72 100644
--- a/common/recipes-phosphor/occ/openpower-occ-control.bb
+++ b/common/recipes-phosphor/occ/openpower-occ-control.bb
@@ -12,6 +12,7 @@
DBUS_SERVICE_${PN} += "org.open_power.OCC.Control.service"
+DEPENDS += "virtual/${PN}-config-native"
DEPENDS += " \
sdbusplus \
sdbusplus-native \
@@ -29,6 +30,7 @@
phosphor-dbus-interfaces \
"
+EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}"
EXTRA_OECONF_append = "${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'i2c-occ', ' --enable-i2c-occ', '', d)}"
S = "${WORKDIR}/git"