Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 1 | SUMMARY = "Default settings" |
| 2 | PR = "r1" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
Brad Bishop | 6f3f0aa | 2019-09-13 12:14:05 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 5 | |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 6 | inherit phosphor-settings-manager |
Joseph Reynolds | 79809ea | 2021-02-26 15:37:31 -0600 | [diff] [blame] | 7 | inherit native |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 8 | |
| 9 | SRC_URI += "file://defaults.yaml" |
Allen.Wang | 7298b24 | 2022-03-09 14:44:27 +0800 | [diff] [blame] | 10 | SRC_URI += "file://host-template.yaml" |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 11 | |
| 12 | PROVIDES += "virtual/phosphor-settings-defaults" |
| 13 | |
Patrick Williams | b858c0e | 2022-04-14 16:15:33 -0500 | [diff] [blame^] | 14 | SETTINGS_HOST_TEMPLATES:append = " host-template.yaml" |
| 15 | |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 16 | S = "${WORKDIR}" |
| 17 | |
| 18 | do_install() { |
| 19 | DEST=${D}${settings_datadir} |
| 20 | install -d ${DEST} |
| 21 | install defaults.yaml ${DEST} |
Allen.Wang | 7298b24 | 2022-03-09 14:44:27 +0800 | [diff] [blame] | 22 | |
| 23 | for i in ${OBMC_HOST_INSTANCES}; |
| 24 | do |
Patrick Williams | b858c0e | 2022-04-14 16:15:33 -0500 | [diff] [blame^] | 25 | for f in ${SETTINGS_HOST_TEMPLATES}; |
| 26 | do |
| 27 | cat ${f} | sed "s/{}/${i}/g" >> ${DEST}/defaults.yaml |
| 28 | done |
Allen.Wang | 7298b24 | 2022-03-09 14:44:27 +0800 | [diff] [blame] | 29 | done |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 30 | } |