xref: /openbmc/openbmc/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults-native.bb (revision 9936f86df6fc55be042cec5eb15f6e19a9e7c890)
1ff075f6eSBrad BishopSUMMARY = "Default settings"
275f0387bSBrad BishopLICENSE = "Apache-2.0"
36f3f0aa7SBrad BishopLIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
4*9936f86dSEd TanousPROVIDES += "virtual/phosphor-settings-defaults"
5*9936f86dSEd 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
13*9936f86dSEd Tanousinherit phosphor-settings-manager
14*9936f86dSEd Tanousinherit native
15*9936f86dSEd 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
27ff075f6eSBrad Bishop}
28