1SUMMARY = "Default settings" 2PR = "r1" 3LICENSE = "Apache-2.0" 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 5 6inherit phosphor-settings-manager 7inherit native 8 9SRC_URI += "file://defaults.yaml" 10SRC_URI += "file://host-template.yaml" 11 12PROVIDES += "virtual/phosphor-settings-defaults" 13 14SETTINGS_HOST_TEMPLATES:append = " host-template.yaml" 15 16S = "${WORKDIR}" 17 18do_install() { 19 DEST=${D}${settings_datadir} 20 install -d ${DEST} 21 install defaults.yaml ${DEST} 22 23 for i in ${OBMC_HOST_INSTANCES}; 24 do 25 for f in ${SETTINGS_HOST_TEMPLATES}; 26 do 27 cat ${f} | sed "s/{}/${i}/g" >> ${DEST}/defaults.yaml 28 done 29 done 30} 31