blob: 11271a47fedac215733ef2bae7e3399d84118167 [file] [log] [blame]
Deepak Kodihallifeb88672017-05-17 06:42:51 -05001SUMMARY = "Default settings"
Brad Bishop75f03872018-11-03 09:41:57 -07002LICENSE = "Apache-2.0"
Brad Bishop6f3f0aa2019-09-13 12:14:05 -04003LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Ed Tanous9936f862022-09-19 09:13:20 -07004PROVIDES += "virtual/phosphor-settings-defaults"
5PR = "r1"
Deepak Kodihallifeb88672017-05-17 06:42:51 -05006
7SRC_URI += "file://defaults.yaml"
Allen.Wang7298b242022-03-09 14:44:27 +08008SRC_URI += "file://host-template.yaml"
Deepak Kodihallifeb88672017-05-17 06:42:51 -05009
Patrick Williamsb858c0e2022-04-14 16:15:33 -050010SETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
Deepak Kodihallifeb88672017-05-17 06:42:51 -050011S = "${WORKDIR}"
12
Ed Tanous9936f862022-09-19 09:13:20 -070013inherit phosphor-settings-manager
14inherit native
15
Deepak Kodihallifeb88672017-05-17 06:42:51 -050016do_install() {
17 DEST=${D}${settings_datadir}
18 install -d ${DEST}
19 install defaults.yaml ${DEST}
Allen.Wang7298b242022-03-09 14:44:27 +080020 for i in ${OBMC_HOST_INSTANCES};
21 do
Patrick Williamsb858c0e2022-04-14 16:15:33 -050022 for f in ${SETTINGS_HOST_TEMPLATES};
23 do
Patrick Williams6b62f1e2022-08-23 10:04:46 -050024 sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
Patrick Williamsb858c0e2022-04-14 16:15:33 -050025 done
Allen.Wang7298b242022-03-09 14:44:27 +080026 done
Deepak Kodihallifeb88672017-05-17 06:42:51 -050027}