blob: 2080a3b6e7ee09a7f443c1cf37441cabbab1170a [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
Matt Spinler3f6fcbe2017-12-14 13:31:55 -060010inherit mrw-xml
Gunnar Mills12d2da22017-10-04 15:38:33 -050011
12inherit obmc-phosphor-license
13
14DEPENDS += "mrw-native mrw-perl-tools-native"
15
16SRC_URI += "file://mrw-override-settings.yaml"
17
18S = "${WORKDIR}"
19
20do_install() {
21 DEST=${D}${config_datadir}
22 install -D mrw-override-settings.yaml ${DEST}/mrw-override-settings.yaml
23
24 SETTINGS=${D}${settings_datadir}
25 install -d ${SETTINGS}
26
27 # gen_settings.pl replaces any MRW variables with their value
28 ${bindir}/perl-native/perl \
29 ${bindir}/gen_settings.pl \
Matt Spinler3f6fcbe2017-12-14 13:31:55 -060030 -i ${mrw_datadir}/${MRW_XML} \
Gunnar Mills12d2da22017-10-04 15:38:33 -050031 -s ${DEST}/mrw-override-settings.yaml \
32 -o ${SETTINGS}/mrw-settings.override.yaml \
33 -f
34}