]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wic: bootimg-efi: implement --include-path
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Wed, 5 Oct 2022 05:55:04 +0000 (08:55 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 25 Oct 2022 12:51:54 +0000 (14:51 +0200)
--include-path can be used for placing files on ESP,
like dtbs.

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>
scripts/lib/wic/plugins/source/bootimg-efi.py

index 70c55ce2f00b6c647be84b40937985d1dcbc8b6a..4b00913a7001a6d2601c6e606edf1a55859dbbff 100644 (file)
@@ -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])