You might want to update scripts/lib/wic/help.py with description for this new 
features too

>-----Original Message-----
>From: [email protected] <openembedded-
>[email protected]> On Behalf Of Paul Barker
>Sent: Monday, 11 January, 2021 6:33 PM
>To: [email protected]
>Cc: Paul Barker <[email protected]>
>Subject: [OE-core] [PATCH 1/6] wic: Add workdir argument
>
>This allows the path for the temporary workdir used by wic to be set when
>running wic from bitbake or directly from the command line.
>
>Signed-off-by: Paul Barker <[email protected]>
>---
> scripts/lib/wic/plugins/imager/direct.py | 2 +-
> scripts/wic                              | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/scripts/lib/wic/plugins/imager/direct.py
>b/scripts/lib/wic/plugins/imager/direct.py
>index 0ca67b77d5..b329568c7a 100644
>--- a/scripts/lib/wic/plugins/imager/direct.py
>+++ b/scripts/lib/wic/plugins/imager/direct.py
>@@ -62,7 +62,7 @@ class DirectPlugin(ImagerPlugin):
>
>         self.name = "%s-%s" % 
> (os.path.splitext(os.path.basename(wks_file))[0],
>                                strftime("%Y%m%d%H%M"))
>-        self.workdir = tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.')
>+        self.workdir = options.workdir or
>+ tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.')
>         self._image = None
>         self.ptable_format = self.ks.bootloader.ptable
>         self.parts = self.ks.partitions diff --git a/scripts/wic 
> b/scripts/wic index
>24700f380f..a741aed364 100755
>--- a/scripts/wic
>+++ b/scripts/wic
>@@ -312,6 +312,8 @@ def wic_init_parser_create(subparser):
>
>     subparser.add_argument("-o", "--outdir", dest="outdir", default='.',
>                       help="name of directory to create image in")
>+    subparser.add_argument("-w", "--workdir",
>+                      help="temporary workdir to use for intermediate
>+ files")
>     subparser.add_argument("-e", "--image-name", dest="image_name",
>                       help="name of the image to use the artifacts from "
>                            "e.g. core-image-sato")
>--
>2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146592): 
https://lists.openembedded.org/g/openembedded-core/message/146592
Mute This Topic: https://lists.openembedded.org/mt/79592782/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to