diff options
| author | Jianxun Zhang <jianxun.zhang@linux.intel.com> | 2017-01-05 16:15:35 -0800 |
|---|---|---|
| committer | California Sullivan <california.l.sullivan@intel.com> | 2017-01-09 12:53:33 -0800 |
| commit | 368673eab1344fee79932e2dd96289fa6748d8be (patch) | |
| tree | cb0a2830796ca8fc37e5e7fa104af2a0c6a8fae0 /classes | |
| parent | 499b251ce6b52fbc81cfb97b4aee73329bcc1255 (diff) | |
| download | meta-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')
| -rw-r--r-- | classes/rmc-boot.bbclass | 6 |
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} | |||
| 9 | do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" | 9 | do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy" |
| 10 | 10 | ||
| 11 | efi_populate_append() { | 11 | efi_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 | } |
