* [U-Boot] [PATCH] buildman: fix to display warning message for missing [toolchain] section
@ 2014-07-07 0:46 Masahiro Yamada
2014-07-07 22:20 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2014-07-07 0:46 UTC (permalink / raw)
To: u-boot
Toolchains.__init__ is expected to display a warning message
when the [toolchain] section is missing from ~/.buildman file.
But it never works.
In that case, instead, buildmain fails with an error message
which is difficult to understand:
Traceback (most recent call last):
File "tools/buildman/buildman", line 126, in <module>
control.DoBuildman(options, args)
File "/home/foo/u-boot/tools/buildman/control.py", line 78, in DoBuildman
toolchains = toolchain.Toolchains()
File "/home/foo/u-boot/tools/buildman/toolchain.py", line 106, in __init__
config_fname)
NameError: global name 'config_fname' is not defined
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
---
tools/buildman/toolchain.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index b643386..e392035 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -103,7 +103,7 @@ class Toolchains:
if not toolchains:
print ("Warning: No tool chains - please add a [toolchain] section"
" to your buildman config file %s. See README for details" %
- config_fname)
+ bsettings.config_fname)
for name, value in toolchains:
if '*' in value:
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] buildman: fix to display warning message for missing [toolchain] section
2014-07-07 0:46 [U-Boot] [PATCH] buildman: fix to display warning message for missing [toolchain] section Masahiro Yamada
@ 2014-07-07 22:20 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2014-07-07 22:20 UTC (permalink / raw)
To: u-boot
On 6 July 2014 18:46, Masahiro Yamada <yamada.m@jp.panasonic.com> wrote:
> Toolchains.__init__ is expected to display a warning message
> when the [toolchain] section is missing from ~/.buildman file.
> But it never works.
> In that case, instead, buildmain fails with an error message
> which is difficult to understand:
>
> Traceback (most recent call last):
> File "tools/buildman/buildman", line 126, in <module>
> control.DoBuildman(options, args)
> File "/home/foo/u-boot/tools/buildman/control.py", line 78, in DoBuildman
> toolchains = toolchain.Toolchains()
> File "/home/foo/u-boot/tools/buildman/toolchain.py", line 106, in __init__
> config_fname)
> NameError: global name 'config_fname' is not defined
>
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
> Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-07 22:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-07 0:46 [U-Boot] [PATCH] buildman: fix to display warning message for missing [toolchain] section Masahiro Yamada
2014-07-07 22:20 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.