1SUMMARY = "Default settings"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit phosphor-settings-manager
7inherit native
8
9SRC_URI += "file://defaults.yaml"
10SRC_URI += "file://host-template.yaml"
11
12PROVIDES += "virtual/phosphor-settings-defaults"
13
14S = "${WORKDIR}"
15
16do_install() {
17        DEST=${D}${settings_datadir}
18        install -d ${DEST}
19        install defaults.yaml ${DEST}
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
26}
27