summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2022-10-05 08:55:04 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-26 12:28:37 +0100
commit2cd51cfe9989f8c259f7a38858f73bad76a24086 (patch)
tree605402cfb1d60272155272e648c2f82ddefe9df5 /scripts
parent5b0de8447e5aeb14cbf78ade11f0a3af074d8055 (diff)
downloadpoky-2cd51cfe9989f8c259f7a38858f73bad76a24086.tar.gz
wic: bootimg-efi: implement --include-path
--include-path can be used for placing files on ESP, like dtbs. (From OE-Core rev: 46ca73f504b0792766dc4d4bbad38beb04ef4ed0) Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 70c55ce2f0..4b00913a70 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -420,6 +420,11 @@ class BootimgEFIPlugin(SourcePlugin):
420 cp_cmd = "cp %s %s/" % (startup, hdddir) 420 cp_cmd = "cp %s %s/" % (startup, hdddir)
421 exec_cmd(cp_cmd, True) 421 exec_cmd(cp_cmd, True)
422 422
423 for paths in part.include_path or []:
424 for path in paths:
425 cp_cmd = "cp -r %s %s/" % (path, hdddir)
426 exec_cmd(cp_cmd, True)
427
423 du_cmd = "du -bks %s" % hdddir 428 du_cmd = "du -bks %s" % hdddir
424 out = exec_cmd(du_cmd) 429 out = exec_cmd(du_cmd)
425 blocks = int(out.split()[0]) 430 blocks = int(out.split()[0])