summaryrefslogtreecommitdiffstats
path: root/control/generated.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-04-12 09:51:41 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-05-04 16:01:30 +0000
commit77d32d1b0b780b9ac773bc49a6c74c19508ff8e8 (patch)
treec86bf7542d3eb1593678f77a89ffed3adaf129ab /control/generated.cpp
parent78498c941d3f0445e2c62894123e05df057258f7 (diff)
downloadphosphor-fan-presence-77d32d1b0b780b9ac773bc49a6c74c19508ff8e8.tar.gz
phosphor-fan-presence-77d32d1b0b780b9ac773bc49a6c74c19508ff8e8.zip
Fan control: Enable data generation
Start running the python script that generates the fan zone data structures during the build. If the paths to the 2 yaml files aren't provided during configure, then the yaml in the example directory will be used instead. Change-Id: I9f67c1b94b5302c30ac87b0f80746854c42776b2 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'control/generated.cpp')
-rw-r--r--control/generated.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/control/generated.cpp b/control/generated.cpp
deleted file mode 100644
index e6ed723..0000000
--- a/control/generated.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "manager.hpp"
-
-//This will eventually be generated by a script.
-
-using namespace phosphor::fan::control;
-
-const std::vector<ZoneGroup> Manager::_zoneLayouts
-{
- //Air cooled
- std::make_tuple(std::vector<Condition>{},
- std::vector<ZoneDefinition>{std::make_tuple(0, 10500,
- std::vector<FanDefinition>{
- std::make_tuple("/system/chassis/motherboard/fan0", std::vector<std::string>{"fan0"}),
- std::make_tuple("/system/chassis/motherboard/fan1", std::vector<std::string>{"fan1"}),
- std::make_tuple("/system/chassis/motherboard/fan2", std::vector<std::string>{"fan2"}),
- std::make_tuple("/system/chassis/motherboard/fan3", std::vector<std::string>{"fan3"})})}),
-
- //Water and air cooled
- std::make_tuple(std::vector<Condition>{},
- std::vector<ZoneDefinition>{std::make_tuple(0, 10500,
- std::vector<FanDefinition>{
- std::make_tuple("/system/chassis/motherboard/fan0", std::vector<std::string>{"fan0"}),
- std::make_tuple("/system/chassis/motherboard/fan2", std::vector<std::string>{"fan2"}),
- std::make_tuple("/system/chassis/motherboard/fan3", std::vector<std::string>{"fan3"})})})
-};
OpenPOWER on IntegriCloud