diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-04-28 15:27:43 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2017-05-11 13:52:50 -0500 |
commit | 14321846e57f483f472590b1c5fe35891511312f (patch) | |
tree | 2066aec0f2c8d7ef4a2af2962ec289e582df404e /monitor/generated.cpp | |
parent | 85be2e70b6ab28dd01638f115cd7cc4f1beda8da (diff) | |
download | phosphor-fan-presence-14321846e57f483f472590b1c5fe35891511312f.tar.gz phosphor-fan-presence-14321846e57f483f472590b1c5fe35891511312f.zip |
Generate data from yaml during build
Run the python script to generate fan_zone_defs.cpp
Change-Id: I242aa4246a277509ddbcf1c62fec96782a48b37b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/generated.cpp')
-rw-r--r-- | monitor/generated.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/monitor/generated.cpp b/monitor/generated.cpp deleted file mode 100644 index 7578b92..0000000 --- a/monitor/generated.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Copyright © 2017 IBM Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#include "fan_defs.hpp" -#include "types.hpp" - -//This file will be replaced by a generated version in a later commit - -using namespace phosphor::fan::monitor; - -const std::vector<FanDefinition> fanDefinitions -{ - - FanDefinition{"/system/chassis/motherboard/fan0", - 15, - 15, - 1, - std::vector<SensorDefinition>{ - SensorDefinition{"fan0", true} - }}, - FanDefinition{"/system/chassis/motherboard/fan1", - 15, - 15, - 1, - std::vector<SensorDefinition>{ - SensorDefinition{"fan1", true} - }}, - FanDefinition{"/system/chassis/motherboard/fan2", - 15, - 15, - 1, - std::vector<SensorDefinition>{ - SensorDefinition{"fan2", true} - }}, - FanDefinition{"/system/chassis/motherboard/fan3", - 15, - 15, - 1, - std::vector<SensorDefinition>{ - SensorDefinition{"fan3", true} - }} -}; |