mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00

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>
18 lines
370 B
Plaintext
18 lines
370 B
Plaintext
# rmc-boot bbclass
|
|
# Deploy central RMC database file to ESP
|
|
|
|
IMAGE_INSTALL_append = " rmc"
|
|
RMC_BOOTLOADER ?= "systemd-boot"
|
|
|
|
inherit ${RMC_BOOTLOADER}
|
|
|
|
do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy"
|
|
|
|
efi_populate_append() {
|
|
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
|
|
}
|