summaryrefslogtreecommitdiffstats
path: root/classes/rmc-boot.bbclass
diff options
context:
space:
mode:
authorJianxun Zhang <jianxun.zhang@linux.intel.com>2017-01-05 16:15:35 -0800
committerCalifornia Sullivan <california.l.sullivan@intel.com>2017-01-09 12:53:33 -0800
commit368673eab1344fee79932e2dd96289fa6748d8be (patch)
treecb0a2830796ca8fc37e5e7fa104af2a0c6a8fae0 /classes/rmc-boot.bbclass
parent499b251ce6b52fbc81cfb97b4aee73329bcc1255 (diff)
downloadmeta-intel-368673eab1344fee79932e2dd96289fa6748d8be.tar.gz
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 <jianxun.zhang@linux.intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Diffstat (limited to 'classes/rmc-boot.bbclass')
-rw-r--r--classes/rmc-boot.bbclass6
1 files changed, 5 insertions, 1 deletions
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}
9do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" 9do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy"
10 10
11efi_populate_append() { 11efi_populate_append() {
12 install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db 12 if [ -f ${DEPLOY_DIR_IMAGE}/rmc.db ]; then
13 install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db
14 else
15 rm -f ${DEST}/rmc.db
16 fi
13} 17}