1SUMMARY = "Default settings"
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
4PROVIDES += "virtual/phosphor-settings-defaults"
5PR = "r1"
6
7SRC_URI += "file://defaults.yaml"
8SRC_URI += "file://host-template.yaml"
9
10SETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
11S = "${WORKDIR}"
12
13inherit phosphor-settings-manager
14inherit native
15
16do_install() {
17        DEST=${D}${settings_datadir}
18        install -d ${DEST}
19        install defaults.yaml ${DEST}
20        for i in ${OBMC_HOST_INSTANCES};
21        do
22            for f in ${SETTINGS_HOST_TEMPLATES};
23            do
24                sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
25            done
26        done
27}
28