With the EFI image enhancements, installing to boot allows us to easily use RMC with the new wic images.
Signed-off-by: California Sullivan <california.l.sulli...@intel.com> --- * v2 change: install depends on generate_rmc_db A clean build on the AB revealed this missing dependency. recipes-bsp/rmc/rmc-db.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/recipes-bsp/rmc/rmc-db.bb b/recipes-bsp/rmc/rmc-db.bb index f24ed11c..7ec824a8 100644 --- a/recipes-bsp/rmc/rmc-db.bb +++ b/recipes-bsp/rmc/rmc-db.bb @@ -17,6 +17,8 @@ inherit rmc-db RMC_BOARD_DATA_DIRS ?= "${THISDIR}/boards/" RMC_DB_DIR = "${WORKDIR}/db" +FILES_${PN} = "/boot/rmc.db" + # Let sstate be aware of change in any added board directories do_generate_rmc_db[file-checksums] = "${@get_rmc_top_dirs_list(d)}" @@ -46,4 +48,15 @@ do_deploy () { fi } +do_install () { + install -d ${D}/boot + if [ -f ${RMC_DB_DIR}/rmc.db ]; then + install -m 0400 ${RMC_DB_DIR}/rmc.db ${D}/boot/ + else + rm -f ${D}/rmc.db + echo "Warning: no RMC central database found, skip installation." + fi +} +do_install[depends] += "${PN}:do_generate_rmc_db" + addtask deploy after do_generate_rmc_db -- 2.14.3 -- _______________________________________________ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel