From: Maxim Uvarov Date: Wed, 5 Oct 2022 05:55:04 +0000 (+0300) Subject: wic: bootimg-efi: implement --include-path X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~2811 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46ca73f504b0792766dc4d4bbad38beb04ef4ed0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: bootimg-efi: implement --include-path --include-path can be used for placing files on ESP, like dtbs. Signed-off-by: Maxim Uvarov Signed-off-by: Mikko Rapeli Signed-off-by: Luca Ceresoli --- diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 70c55ce2f00..4b00913a700 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): cp_cmd = "cp %s %s/" % (startup, hdddir) exec_cmd(cp_cmd, True) + for paths in part.include_path or []: + for path in paths: + 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])