Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 1 | # 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. |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 4 | SUMMARY = "Generates MRW settings override YAML for phosphor-settings-manager." |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
Brad Bishop | 6f3f0aa | 2019-09-13 12:14:05 -0400 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 7 | DEPENDS += "mrw-native mrw-perl-tools-native" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 8 | PR = "r1" |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI += "file://mrw-override-settings.yaml" |
| 11 | |
| 12 | S = "${WORKDIR}" |
| 13 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 14 | inherit phosphor-settings-manager |
| 15 | inherit mrw-xml |
| 16 | inherit native |
Matt Spinler | 8280d07 | 2018-03-09 11:04:05 -0600 | [diff] [blame] | 17 | |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 18 | do_install() { |
| 19 | DEST=${D}${config_datadir} |
| 20 | install -D mrw-override-settings.yaml ${DEST}/mrw-override-settings.yaml |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 21 | SETTINGS=${D}${settings_datadir} |
| 22 | install -d ${SETTINGS} |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 23 | # gen_settings.pl replaces any MRW variables with their value |
| 24 | ${bindir}/perl-native/perl \ |
| 25 | ${bindir}/gen_settings.pl \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 26 | -i ${mrw_datadir}/${MRW_XML} \ |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 27 | -s ${DEST}/mrw-override-settings.yaml \ |
| 28 | -o ${SETTINGS}/mrw-settings.override.yaml \ |
Matt Spinler | 8280d07 | 2018-03-09 11:04:05 -0600 | [diff] [blame] | 29 | ${MRW_EXPRESSION_VARS} \ |
Gunnar Mills | 8c6516f | 2017-10-04 15:38:33 -0500 | [diff] [blame] | 30 | -f |
| 31 | } |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 32 | |
| 33 | MRW_EXPRESSION_VARS ?= "" |