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"
11ff075f6eSBrad BishopS = "${WORKDIR}"
12ff075f6eSBrad Bishop
139936f86dSEd Tanousinherit phosphor-settings-manager
149936f86dSEd Tanousinherit native
159936f86dSEd Tanous
16ff075f6eSBrad Bishopdo_install() {
17ff075f6eSBrad Bishop        DEST=${D}${settings_datadir}
18ff075f6eSBrad Bishop        install -d ${DEST}
19ff075f6eSBrad Bishop        install defaults.yaml ${DEST}
207298b247SAllen.Wang        for i in ${OBMC_HOST_INSTANCES};
217298b247SAllen.Wang        do
22b858c0e1SPatrick Williams            for f in ${SETTINGS_HOST_TEMPLATES};
23b858c0e1SPatrick Williams            do
246b62f1ecSPatrick Williams                sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
25b858c0e1SPatrick Williams            done
267298b247SAllen.Wang        done
27*3aa3780bSPatrick Williams        for f in ${SETTINGS_BMC_TEMPLATES};
28*3aa3780bSPatrick Williams        do
29*3aa3780bSPatrick Williams            cat $f >> ${DEST}/defaults.yaml
30*3aa3780bSPatrick Williams        done
31ff075f6eSBrad Bishop}
32