[OE-core] [PATCH v2 02/14] grub-efi: set default desination dir
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Jan 26 12:40:30 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/grub-efi.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 3dc9146..48b4b34 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -36,7 +36,7 @@ inherit fs-uuid
efi_populate() {
# DEST must be the root of the image so that EFIDIR is not
# nested under a top level directory.
- DEST=$1
+ DEST=${1-${WORKDIR}/efi}
install -d ${DEST}${EFIDIR}
--
2.1.4
More information about the Openembedded-core
mailing list