[oe-commits] [openembedded-core] 01/15: efi: add efi_bootfs_populate API
git at git.openembedded.org
git at git.openembedded.org
Thu May 25 22:59:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 5d67be99a5158793dd7a41a64d5a0abf0ae132f8
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed May 10 10:16:19 2017 +0300
efi: add efi_bootfs_populate API
Added API to populate ${WORKDIR}/bootfs directory with EFI
artifacts to both EFI provider classes(grub-efi and systemd-boot).
This API will be used to prepare artifacts for the wic image
build.
[YOCTO #10073]
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/classes/grub-efi.bbclass | 6 ++++++
meta/classes/systemd-boot.bbclass | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index df7fe18..bacbeb4 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -71,6 +71,12 @@ efi_hddimg_populate() {
efi_populate $1
}
+efi_bootfs_populate() {
+ bootfs_dir="${WORKDIR}/bootfs"
+ efi_populate $bootfs_dir
+ cp --dereference ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} $bootfs_dir/vmlinuz
+}
+
python build_efi_cfg() {
import sys
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 9f8f75e..d98d213 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -63,6 +63,12 @@ efi_hddimg_populate() {
efi_populate $1
}
+efi_bootfs_populate() {
+ bootfs_dir="${WORKDIR}/bootfs"
+ efi_populate $bootfs_dir
+ cp --dereference ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} $bootfs_dir/vmlinuz
+}
+
python build_efi_cfg() {
s = d.getVar("S")
labels = d.getVar('LABELS')
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list