summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalifornia Sullivan <california.l.sullivan@intel.com>2018-03-21 22:22:48 (GMT)
committerCalifornia Sullivan <california.l.sullivan@intel.com>2018-03-27 19:17:31 (GMT)
commitaab83c8235322149c2d521c0baf33e5b99c77ae2 (patch)
treed6de692a5091b5519f6b49b7c3640338398b1db9
parent3342d3715ec829f720e1590f45ad84e6b7226145 (diff)
downloadmeta-intel-aab83c8235322149c2d521c0baf33e5b99c77ae2.tar.gz
rmc-db: also install to /boot/
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@intel.com>
-rw-r--r--recipes-bsp/rmc/rmc-db.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-bsp/rmc/rmc-db.bb b/recipes-bsp/rmc/rmc-db.bb
index f24ed11..7ec824a 100644
--- a/recipes-bsp/rmc/rmc-db.bb
+++ b/recipes-bsp/rmc/rmc-db.bb
@@ -17,6 +17,8 @@ inherit rmc-db
17RMC_BOARD_DATA_DIRS ?= "${THISDIR}/boards/" 17RMC_BOARD_DATA_DIRS ?= "${THISDIR}/boards/"
18RMC_DB_DIR = "${WORKDIR}/db" 18RMC_DB_DIR = "${WORKDIR}/db"
19 19
20FILES_${PN} = "/boot/rmc.db"
21
20# Let sstate be aware of change in any added board directories 22# Let sstate be aware of change in any added board directories
21do_generate_rmc_db[file-checksums] = "${@get_rmc_top_dirs_list(d)}" 23do_generate_rmc_db[file-checksums] = "${@get_rmc_top_dirs_list(d)}"
22 24
@@ -46,4 +48,15 @@ do_deploy () {
46 fi 48 fi
47} 49}
48 50
51do_install () {
52 install -d ${D}/boot
53 if [ -f ${RMC_DB_DIR}/rmc.db ]; then
54 install -m 0400 ${RMC_DB_DIR}/rmc.db ${D}/boot/
55 else
56 rm -f ${D}/rmc.db
57 echo "Warning: no RMC central database found, skip installation."
58 fi
59}
60do_install[depends] += "${PN}:do_generate_rmc_db"
61
49addtask deploy after do_generate_rmc_db 62addtask deploy after do_generate_rmc_db