blob: 7260434d3ecd5e57dc12ddd2ed84215619417e8b [file] [log] [blame]
Gunnar Mills12d2da22017-10-04 15:38:33 -05001# Generates MRW settings override yaml for phosphor-settings-manager
2# The default YAML file, mrw-override-settings.yaml, is empty, therefore no
3# settings will be overwritten. To override, modify mrw-override-settings.yaml.
4
5SUMMARY = "Generates MRW settings override YAML for phosphor-settings-manager."
6PR = "r1"
7
8inherit native
9inherit phosphor-settings-manager
10
11inherit obmc-phosphor-license
12
13DEPENDS += "mrw-native mrw-perl-tools-native"
14
15SRC_URI += "file://mrw-override-settings.yaml"
16
17S = "${WORKDIR}"
18
19do_install() {
20 DEST=${D}${config_datadir}
21 install -D mrw-override-settings.yaml ${DEST}/mrw-override-settings.yaml
22
23 SETTINGS=${D}${settings_datadir}
24 install -d ${SETTINGS}
25
26 # gen_settings.pl replaces any MRW variables with their value
27 ${bindir}/perl-native/perl \
28 ${bindir}/gen_settings.pl \
29 -i ${datadir}/obmc-mrw/${MACHINE}.xml \
30 -s ${DEST}/mrw-override-settings.yaml \
31 -o ${SETTINGS}/mrw-settings.override.yaml \
32 -f
33}