[OE-core] [PATCH] wic: bootimg-efi: implement --include-path

Maxim Uvarov maxim.uvarov at linaro.org
Tue Jan 21 07:34:02 UTC 2020


On Mon, 20 Jan 2020 at 22:31, Maxim Uvarov <maxim.uvarov at linaro.org> wrote:
>
> --include-path can be used for placing files on ESP,
> like dtbs.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov at linaro.org>
> ---
>  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..fa320a50b8 100644
> --- a/scripts/lib/wic/plugins/source/bootimg-efi.py
> +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
> @@ -289,6 +289,10 @@ class BootimgEFIPlugin(SourcePlugin):
>          mcopy_cmd = "mcopy -i %s -s %s/* ::/" % (bootimg, hdddir)
>          exec_native_cmd(mcopy_cmd, native_sysroot)
>
> +        for path in part.include_path:

missed or [] like other plugins do. array can be not defined in wic
plugins. Will send v2.

> +            mcopy_cmd = "mcopy -i %s -s %s/ ::/" % (bootimg, path)
> +            exec_native_cmd(mcopy_cmd, native_sysroot)
> +
>          chmod_cmd = "chmod 644 %s" % bootimg
>          exec_cmd(chmod_cmd)
>
> --
> 2.17.1
>


More information about the Openembedded-core mailing list