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}/sources"
12UNPACKDIR = "${S}"
13
14inherit phosphor-settings-manager
15inherit native
16
17do_install() {
18        DEST=${D}${settings_datadir}
19        install -d ${DEST}
20        install defaults.yaml ${DEST}
21        for i in ${OBMC_HOST_INSTANCES};
22        do
23            for f in ${SETTINGS_HOST_TEMPLATES};
24            do
25                sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
26            done
27        done
28        for f in ${SETTINGS_BMC_TEMPLATES};
29        do
30            cat $f >> ${DEST}/defaults.yaml
31        done
32}
33