Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-core / stx-fault / fm-doc.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 PACKAGES += "fm-doc"
17
18 do_install_append () {
19         cd ${S}/fm-doc/fm_doc/
20         install -d -m 755 ${D}/${cgcs_doc_deploy}
21         install -d -m 755 ${D}/${sysconfdir}/fm
22         install -m 744 events.yaml ${D}/${sysconfdir}/fm/
23         install -m 644 events.yaml ${D}/${cgcs_doc_deploy}
24         install -m 755 checkEventYaml ${D}/${cgcs_doc_deploy}
25         install -m 644 parseEventYaml.py ${D}/${cgcs_doc_deploy}
26         install -m 644 check_missing_alarms.py ${D}/${cgcs_doc_deploy}
27 }
28
29 FILES_fm-doc = " \
30         ${sysconfdir}/fm/events.yaml \
31         ${cgcs_doc_deploy}/events.yaml \
32         ${cgcs_doc_deploy}/checkEventYaml \
33         ${cgcs_doc_deploy}/parseEventYaml.py \
34         ${cgcs_doc_deploy}/check_missing_alarms.py \
35         "