1ff075f6eSBrad BishopSUMMARY = "Default settings"
275f0387bSBrad BishopLICENSE = "Apache-2.0"
36f3f0aa7SBrad BishopLIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
49936f86dSEd TanousPROVIDES += "virtual/phosphor-settings-defaults"
59936f86dSEd TanousPR = "r1"
6ff075f6eSBrad Bishop
7ff075f6eSBrad BishopSRC_URI += "file://defaults.yaml"
87298b247SAllen.WangSRC_URI += "file://host-template.yaml"
9ff075f6eSBrad Bishop
10b858c0e1SPatrick WilliamsSETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
11*91a1cec2SAndrew GeisslerS = "${WORKDIR}/sources"
12*91a1cec2SAndrew GeisslerUNPACKDIR = "${S}"
13ff075f6eSBrad Bishop
149936f86dSEd Tanousinherit phosphor-settings-manager
159936f86dSEd Tanousinherit native
169936f86dSEd Tanous
17ff075f6eSBrad Bishopdo_install() {
18ff075f6eSBrad Bishop        DEST=${D}${settings_datadir}
19ff075f6eSBrad Bishop        install -d ${DEST}
20ff075f6eSBrad Bishop        install defaults.yaml ${DEST}
217298b247SAllen.Wang        for i in ${OBMC_HOST_INSTANCES};
227298b247SAllen.Wang        do
23b858c0e1SPatrick Williams            for f in ${SETTINGS_HOST_TEMPLATES};
24b858c0e1SPatrick Williams            do
256b62f1ecSPatrick Williams                sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
26b858c0e1SPatrick Williams            done
277298b247SAllen.Wang        done
283aa3780bSPatrick Williams        for f in ${SETTINGS_BMC_TEMPLATES};
293aa3780bSPatrick Williams        do
303aa3780bSPatrick Williams            cat $f >> ${DEST}/defaults.yaml
313aa3780bSPatrick Williams        done
32ff075f6eSBrad Bishop}
33