[OE-core] [PATCH v2 03/14] systemd-boot: set default desination dir
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Jan 26 12:40:31 UTC 2017
Function efi_populate requires mandatory parameter DESTDIR.
It makes it impossible to call this function from python code
using bb.build.exec_func as there is no way to pass parameters
this way.
Set default value of DESTDIR to ${WORKDIR}/efi. This destination
will be used in image-wic.bbclass to install EFI artifacts.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
meta/classes/systemd-boot.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 6a2cbc8..1405310 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -22,7 +22,7 @@ SYSTEMD_BOOT_TIMEOUT ?= "10"
inherit fs-uuid
efi_populate() {
- DEST=$1
+ DEST=${1-${WORKDIR}/efi}
EFI_IMAGE="systemd-bootia32.efi"
DEST_EFI_IMAGE="bootia32.efi"
--
2.1.4
More information about the Openembedded-core
mailing list