From 368673eab1344fee79932e2dd96289fa6748d8be Mon Sep 17 00:00:00 2001 From: Jianxun Zhang Date: Thu, 5 Jan 2017 16:15:35 -0800 Subject: rmc: Extend usages of RMC_BOARD_DATA_DIRS to specify board data Use the variable RMC_BOARD_DATA_DIRS, to disable, append to, or override the default board data in meta-intel with boards' data provided by users. Ideally, users should get the updated database in the new built image after an incremental build. Examples of RMC database output (db): RMC_BOARD_DATA_DIRS = "" (disable db generation) RMC_BOARD_DATA_DIRS_append = " top_dir" (db of defaults & user's) RMC_BOARD_DATA_DIRS = "top_dir" (db for user's , no defaults) RMC_BOARD_DATA_DIRS = " " (same as "") Signed-off-by: Jianxun Zhang Signed-off-by: California Sullivan --- common/recipes-bsp/rmc/rmc-db.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/recipes-bsp/rmc/rmc-db.bb') diff --git a/common/recipes-bsp/rmc/rmc-db.bb b/common/recipes-bsp/rmc/rmc-db.bb index 14553af0..99565fdd 100644 --- a/common/recipes-bsp/rmc/rmc-db.bb +++ b/common/recipes-bsp/rmc/rmc-db.bb @@ -14,7 +14,7 @@ S = "${WORKDIR}" inherit rmc-db -RMC_BOARD_DATA_DIRS_append := " ${THISDIR}/boards/" +RMC_BOARD_DATA_DIRS ?= "${THISDIR}/boards/" RMC_DB_DIR = "${WORKDIR}/db" # Let sstate be aware of change in any added board directories @@ -41,6 +41,7 @@ do_deploy () { if [ -f ${RMC_DB_DIR}/rmc.db ]; then install -m 0400 ${RMC_DB_DIR}/rmc.db ${DEPLOYDIR} else + rm -f ${DEPLOYDIR}/rmc.db echo "Warning: no RMC central database found, skip deployment." fi } -- cgit v1.2.3-54-g00ecf