* [PATCH] rootfs-u-boot: add missing import get_bitbake_var
@ 2024-06-19 3:04 Liu Yi
2024-06-19 4:27 ` Jan Kiszka
2024-06-24 6:35 ` Uladzimir Bely
0 siblings, 2 replies; 5+ messages in thread
From: Liu Yi @ 2024-06-19 3:04 UTC (permalink / raw)
To: isar-users
The variable image_rootfs_dir will not be correctly defined if missing import of get_bitbake_var func.
Signed-off-by: Liu Yi <liuyi@siemens.com>
---
meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
index 7dde49d4..5611f93a 100644
--- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
+++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
@@ -20,7 +20,7 @@ import os
from wic import WicError
from wic.plugins.source.rootfs import RootfsPlugin
-from wic.misc import exec_cmd
+from wic.misc import get_bitbake_var, exec_cmd
logger = logging.getLogger('wic')
--
2.39.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rootfs-u-boot: add missing import get_bitbake_var
2024-06-19 3:04 [PATCH] rootfs-u-boot: add missing import get_bitbake_var Liu Yi
@ 2024-06-19 4:27 ` Jan Kiszka
2024-06-19 6:55 ` Yi Liu
2024-06-24 6:35 ` Uladzimir Bely
1 sibling, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2024-06-19 4:27 UTC (permalink / raw)
To: Liu Yi, isar-users
On 19.06.24 05:04, 'Liu Yi' via isar-users wrote:
> The variable image_rootfs_dir will not be correctly defined if missing import of get_bitbake_var func.
>
> Signed-off-by: Liu Yi <liuyi@siemens.com>
> ---
> meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> index 7dde49d4..5611f93a 100644
> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> @@ -20,7 +20,7 @@ import os
>
> from wic import WicError
> from wic.plugins.source.rootfs import RootfsPlugin
> -from wic.misc import exec_cmd
> +from wic.misc import get_bitbake_var, exec_cmd
>
> logger = logging.getLogger('wic')
>
Interesting. The code was like that since its beginning 6 years ago. How
did you trigger the issue? Maybe you can augment the commit message with
this information. Otherwise:
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Thanks,
Jan
--
Siemens AG, Technology
Linux Expert Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rootfs-u-boot: add missing import get_bitbake_var
2024-06-19 4:27 ` Jan Kiszka
@ 2024-06-19 6:55 ` Yi Liu
2024-06-19 8:38 ` Jan Kiszka
0 siblings, 1 reply; 5+ messages in thread
From: Yi Liu @ 2024-06-19 6:55 UTC (permalink / raw)
To: isar-users
[-- Attachment #1.1: Type: text/plain, Size: 1398 bytes --]
This issue was found by my VSCode, which hinted that some error there when
I went through this python file.
Best Regards,
Liu Yi
On Wednesday, June 19, 2024 at 12:27:11 PM UTC+8 Jan Kiszka wrote:
On 19.06.24 05:04, 'Liu Yi' via isar-users wrote:
> The variable image_rootfs_dir will not be correctly defined if missing
import of get_bitbake_var func.
>
> Signed-off-by: Liu Yi <li...@siemens.com>
> ---
> meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> index 7dde49d4..5611f93a 100644
> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> @@ -20,7 +20,7 @@ import os
>
> from wic import WicError
> from wic.plugins.source.rootfs import RootfsPlugin
> -from wic.misc import exec_cmd
> +from wic.misc import get_bitbake_var, exec_cmd
>
> logger = logging.getLogger('wic')
>
Interesting. The code was like that since its beginning 6 years ago. How
did you trigger the issue? Maybe you can augment the commit message with
this information. Otherwise:
Reviewed-by: Jan Kiszka <jan.k...@siemens.com>
Thanks,
Jan
--
Siemens AG, Technology
Linux Expert Center
[-- Attachment #1.2: Type: text/html, Size: 1917 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rootfs-u-boot: add missing import get_bitbake_var
2024-06-19 6:55 ` Yi Liu
@ 2024-06-19 8:38 ` Jan Kiszka
0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2024-06-19 8:38 UTC (permalink / raw)
To: Yi Liu, isar-users
On 19.06.24 08:55, 'Yi Liu' via isar-users wrote:
> This issue was found by my VSCode, which hinted that some error there
> when I went through this python file.
>
OK, than this might be magically resolved otherwise in the context of
wic, and that is why it remained unnoticed so far.
Jan
> Best Regards,
> Liu Yi
>
> On Wednesday, June 19, 2024 at 12:27:11 PM UTC+8 Jan Kiszka wrote:
>
> On 19.06.24 05:04, 'Liu Yi' via isar-users wrote:
> > The variable image_rootfs_dir will not be correctly defined if
> missing import of get_bitbake_var func.
> >
> > Signed-off-by: Liu Yi <li...@siemens.com>
> > ---
> > meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> > index 7dde49d4..5611f93a 100644
> > --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> > +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> > @@ -20,7 +20,7 @@ import os
> >
> > from wic import WicError
> > from wic.plugins.source.rootfs import RootfsPlugin
> > -from wic.misc import exec_cmd
> > +from wic.misc import get_bitbake_var, exec_cmd
> >
> > logger = logging.getLogger('wic')
> >
>
> Interesting. The code was like that since its beginning 6 years ago.
> How
> did you trigger the issue? Maybe you can augment the commit message
> with
> this information. Otherwise:
>
> Reviewed-by: Jan Kiszka <jan.k...@siemens.com>
>
> Thanks,
> Jan
>
> --
> Siemens AG, Technology
> Linux Expert Center
>
> --
> You received this message because you are subscribed to the Google
> Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to isar-users+unsubscribe@googlegroups.com
> <mailto:isar-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/isar-users/ab71bc45-1955-46eb-af2c-50182f2af0ecn%40googlegroups.com <https://groups.google.com/d/msgid/isar-users/ab71bc45-1955-46eb-af2c-50182f2af0ecn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Siemens AG, Technology
Linux Expert Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rootfs-u-boot: add missing import get_bitbake_var
2024-06-19 3:04 [PATCH] rootfs-u-boot: add missing import get_bitbake_var Liu Yi
2024-06-19 4:27 ` Jan Kiszka
@ 2024-06-24 6:35 ` Uladzimir Bely
1 sibling, 0 replies; 5+ messages in thread
From: Uladzimir Bely @ 2024-06-24 6:35 UTC (permalink / raw)
To: Liu Yi, isar-users
On Wed, 2024-06-19 at 11:04 +0800, 'Liu Yi' via isar-users wrote:
> The variable image_rootfs_dir will not be correctly defined if
> missing import of get_bitbake_var func.
>
> Signed-off-by: Liu Yi <liuyi@siemens.com>
> ---
> meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> index 7dde49d4..5611f93a 100644
> --- a/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> +++ b/meta/scripts/lib/wic/plugins/source/rootfs-u-boot.py
> @@ -20,7 +20,7 @@ import os
>
> from wic import WicError
> from wic.plugins.source.rootfs import RootfsPlugin
> -from wic.misc import exec_cmd
> +from wic.misc import get_bitbake_var, exec_cmd
>
> logger = logging.getLogger('wic')
>
> --
> 2.39.2
>
Applied to next, thanks.
--
Best regards,
Uladzimir.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-24 6:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-19 3:04 [PATCH] rootfs-u-boot: add missing import get_bitbake_var Liu Yi
2024-06-19 4:27 ` Jan Kiszka
2024-06-19 6:55 ` Yi Liu
2024-06-19 8:38 ` Jan Kiszka
2024-06-24 6:35 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox