blob: 4aac9bf60f44f12d3aeeb0356e10960d390210a8 [file] [log] [blame]
Deepak Kodihallifeb88672017-05-17 06:42:51 -05001SUMMARY = "Default settings"
2PR = "r1"
Brad Bishop75f03872018-11-03 09:41:57 -07003LICENSE = "Apache-2.0"
Brad Bishop6f3f0aa2019-09-13 12:14:05 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Deepak Kodihallifeb88672017-05-17 06:42:51 -05005
Deepak Kodihallifeb88672017-05-17 06:42:51 -05006inherit phosphor-settings-manager
Joseph Reynolds79809ea2021-02-26 15:37:31 -06007inherit native
Deepak Kodihallifeb88672017-05-17 06:42:51 -05008
9SRC_URI += "file://defaults.yaml"
Allen.Wang7298b242022-03-09 14:44:27 +080010SRC_URI += "file://host-template.yaml"
Deepak Kodihallifeb88672017-05-17 06:42:51 -050011
12PROVIDES += "virtual/phosphor-settings-defaults"
13
Patrick Williamsb858c0e2022-04-14 16:15:33 -050014SETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
15
Deepak Kodihallifeb88672017-05-17 06:42:51 -050016S = "${WORKDIR}"
17
18do_install() {
19 DEST=${D}${settings_datadir}
20 install -d ${DEST}
21 install defaults.yaml ${DEST}
Allen.Wang7298b242022-03-09 14:44:27 +080022
23 for i in ${OBMC_HOST_INSTANCES};
24 do
Patrick Williamsb858c0e2022-04-14 16:15:33 -050025 for f in ${SETTINGS_HOST_TEMPLATES};
26 do
Patrick Williams6b62f1e2022-08-23 10:04:46 -050027 sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
Patrick Williamsb858c0e2022-04-14 16:15:33 -050028 done
Allen.Wang7298b242022-03-09 14:44:27 +080029 done
Deepak Kodihallifeb88672017-05-17 06:42:51 -050030}