summaryrefslogtreecommitdiffstats
path: root/classes/rmc-boot.bbclass
diff options
context:
space:
mode:
authorTodor Minchev <todor.minchev@linux.intel.com>2016-12-13 22:56:49 (GMT)
committerCalifornia Sullivan <california.l.sullivan@intel.com>2016-12-15 18:27:18 (GMT)
commit48c335a46e03b46540a83a365fea76b92940927b (patch)
tree6099fbb24fea8271eb63569903a755e34193211e /classes/rmc-boot.bbclass
parent3d218385a7d8509fbb66b6aa92efef185d1cfcde (diff)
downloadmeta-intel-48c335a46e03b46540a83a365fea76b92940927b.tar.gz
rmc: add support for alternative EFI bootloaders
RMC was previously configured to work only with the systemd-boot EFI bootloader. With this commit we can specify alternative bootloaders by setting the RMC_BOOTLOADER variable in local.conf. If RMC_BOOTLOADER is not set systemd-boot will be used by default. Signed-off-by: Todor Minchev <todor.minchev@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.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/rmc-boot.bbclass b/classes/rmc-boot.bbclass
new file mode 100644
index 0000000..a1f2093
--- /dev/null
+++ b/classes/rmc-boot.bbclass
@@ -0,0 +1,13 @@
1# rmc-boot bbclass
2# Deploy central RMC database file to ESP
3
4IMAGE_INSTALL_append = " rmc"
5RMC_BOOTLOADER ?= "systemd-boot"
6
7inherit ${RMC_BOOTLOADER}
8
9do_bootimg[depends] += "${MLPREFIX}rmc-db:do_deploy"
10
11efi_populate_append() {
12 install -m 0400 ${DEPLOY_DIR_IMAGE}/rmc.db ${DEST}/rmc.db
13}