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 | |
| 14 | S = "${WORKDIR}" |
| 15 | |
| 16 | do_install() { |
| 17 | DEST=${D}${settings_datadir} |
| 18 | install -d ${DEST} |
| 19 | install defaults.yaml ${DEST} |
Allen.Wang | 7298b24 | 2022-03-09 14:44:27 +0800 | [diff] [blame] | 20 | |
| 21 | for i in ${OBMC_HOST_INSTANCES}; |
| 22 | do |
| 23 | cat host-template.yaml | sed "s/{}/${i}/g" >> ${DEST}/defaults.yaml |
| 24 | |
| 25 | done |
Deepak Kodihalli | feb8867 | 2017-05-17 06:42:51 -0500 | [diff] [blame] | 26 | } |