[meta-intel] [PATCH 3/3] rmc-db: also install to /boot/
California Sullivan
california.l.sullivan at intel.com
Thu Mar 22 08:31:28 PDT 2018
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.sullivan at intel.com>
---
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..674a86dc 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
+}
+
+
addtask deploy after do_generate_rmc_db
--
2.14.3
More information about the meta-intel
mailing list