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 --- classes/rmc-boot.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'classes/rmc-boot.bbclass') diff --git a/classes/rmc-boot.bbclass b/classes/rmc-boot.bbclass index a1f2093f..37c3e30c 100644 --- a/classes/rmc-boot.bbclass +++ b/classes/rmc-boot.bbclass @@ -9,5 +9,9 @@ inherit ${RMC_BOOTLOADER} do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" efi_populate_append() { - install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db + if [ -f ${DEPLOY_DIR_IMAGE}/rmc.db ]; then + install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db + else + rm -f ${DEST}/rmc.db + fi } -- cgit v1.2.3-54-g00ecf