* [PATCHv2] wic: bootimg-efi: implement --include-path
@ 2020-01-21 14:24 Maxim Uvarov
0 siblings, 0 replies; only message in thread
From: Maxim Uvarov @ 2020-01-21 14:24 UTC (permalink / raw)
To: openembedded-core
--include-path can be used for placing files on ESP,
like dtbs.
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
v2: place files to dir before doing image.
scripts/lib/wic/plugins/source/bootimg-efi.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 2cfdc10ecd..3c8b1906ed 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -263,6 +263,10 @@ class BootimgEFIPlugin(SourcePlugin):
cp_cmd = "cp %s %s/" % (startup, hdddir)
exec_cmd(cp_cmd, True)
+ for path in part.include_path or []:
+ cp_cmd = "cp -r %s %s/" % (path, hdddir)
+ exec_cmd(cp_cmd, True)
+
du_cmd = "du -bks %s" % hdddir
out = exec_cmd(du_cmd)
blocks = int(out.split()[0])
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-21 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 14:24 [PATCHv2] wic: bootimg-efi: implement --include-path Maxim Uvarov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.