meta-phosphor: Move generated fan source
Have fan control and fan monitor generate their YAML configs into their
respective build directories instead of the source directory. This
allows bitbake to correctly regenerate/rebuild when the YAML config
changes.
Co-dependency: https://gerrit.openbmc-project.xyz/29505
Tested:
Generated fan control config in build dir
Generated fan monitor config in build dir
`bitbake -c compile` regenerates config sources
Change-Id: Id8054f6b3aae7e79fda1c7e577f7ae4ea7f85624
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/recipes-phosphor/fans/phosphor-fan_git.bb b/recipes-phosphor/fans/phosphor-fan_git.bb
index ccb6989..0e12d44 100644
--- a/recipes-phosphor/fans/phosphor-fan_git.bb
+++ b/recipes-phosphor/fans/phosphor-fan_git.bb
@@ -62,8 +62,7 @@
FAN_DEF_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/fans.yaml \
FAN_ZONE_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/zones.yaml \
ZONE_EVENTS_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/events.yaml \
- ZONE_CONDITIONS_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/zone_conditions.yaml \
- FAN_ZONE_OUTPUT_DIR=${S}/control, \
+ ZONE_CONDITIONS_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/zone_conditions.yaml, \
--disable-control, \
virtual/phosphor-fan-control-fan-config \
phosphor-fan-control-zone-config \
@@ -90,8 +89,7 @@
# --------------------------------------
# ${PN}-monitor specific configuration
PACKAGECONFIG[monitor] = "--enable-monitor \
- FAN_MONITOR_YAML_FILE=${STAGING_DIR_HOST}${monitor_datadir}/monitor.yaml \
- FAN_MONITOR_OUTPUT_DIR=${S}/monitor, \
+ FAN_MONITOR_YAML_FILE=${STAGING_DIR_HOST}${monitor_datadir}/monitor.yaml, \
--disable-monitor, \
phosphor-fan-monitor-config \
, \