1ff075f6eSBrad BishopSUMMARY = "Default settings"
2ff075f6eSBrad BishopPR = "r1"
375f0387bSBrad BishopLICENSE = "Apache-2.0"
46f3f0aa7SBrad BishopLIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5ff075f6eSBrad Bishop
6ff075f6eSBrad Bishopinherit phosphor-settings-manager
779809ea7SJoseph Reynoldsinherit native
8ff075f6eSBrad Bishop
9ff075f6eSBrad BishopSRC_URI += "file://defaults.yaml"
107298b247SAllen.WangSRC_URI += "file://host-template.yaml"
11ff075f6eSBrad Bishop
12ff075f6eSBrad BishopPROVIDES += "virtual/phosphor-settings-defaults"
13ff075f6eSBrad Bishop
14b858c0e1SPatrick WilliamsSETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
15b858c0e1SPatrick Williams
16ff075f6eSBrad BishopS = "${WORKDIR}"
17ff075f6eSBrad Bishop
18ff075f6eSBrad Bishopdo_install() {
19ff075f6eSBrad Bishop        DEST=${D}${settings_datadir}
20ff075f6eSBrad Bishop        install -d ${DEST}
21ff075f6eSBrad Bishop        install defaults.yaml ${DEST}
227298b247SAllen.Wang
237298b247SAllen.Wang        for i in ${OBMC_HOST_INSTANCES};
247298b247SAllen.Wang        do
25b858c0e1SPatrick Williams            for f in ${SETTINGS_HOST_TEMPLATES};
26b858c0e1SPatrick Williams            do
27*6b62f1ecSPatrick Williams                sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
28b858c0e1SPatrick Williams            done
297298b247SAllen.Wang        done
30ff075f6eSBrad Bishop}
31