blob: 11271a47fedac215733ef2bae7e3399d84118167 [file] [log] [blame]
SUMMARY = "Default settings"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
PROVIDES += "virtual/phosphor-settings-defaults"
PR = "r1"
SRC_URI += "file://defaults.yaml"
SRC_URI += "file://host-template.yaml"
SETTINGS_HOST_TEMPLATES:append = " host-template.yaml"
S = "${WORKDIR}"
inherit phosphor-settings-manager
inherit native
do_install() {
DEST=${D}${settings_datadir}
install -d ${DEST}
install defaults.yaml ${DEST}
for i in ${OBMC_HOST_INSTANCES};
do
for f in ${SETTINGS_HOST_TEMPLATES};
do
sed "s/{}/${i}/g" ${f} >> ${DEST}/defaults.yaml
done
done
}