- Nov 27, 2014
-
-
Simon Glass authored
We probably don't need to enable this option by default. It is useful to display only failure boards (not errors) and it is easy to add -e if it is required. Also update the docs. Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Albert Aribaud <albert.u.boot@aribaud.net>
-
Simon Glass authored
Ensure that we don't print duplicate board names when -l is used. Signed-off-by:
Simon Glass <sjg@chromium.org> Reported-by:
Albert Aribaud <albert.u.boot@aribaud.net>
-
Simon Glass authored
Even with the initial 8 characeters of the hash we will sometimes get a collision. Use the full hash. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Tom Rini authored
When saving binary files we likely want to keep any .img files that have been generated as well. Signed-off-by:
Tom Rini <trini@ti.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Sep 21, 2014
-
-
Simon Glass authored
This check should now be done whatever mode buildman is running in, since we may be displaying information while building. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 18, 2014
-
-
Masahiro Yamada authored
Commit f219e013 (tools: Import Kconfiglib) added SPDX GPL-2.0+ to this library by mistake. It should be ISC. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Ulf Magnusson <ulfalizer@gmail.com>
-
- Sep 16, 2014
-
-
Masahiro Yamada authored
Kconfiglib is the flexible Python Kconfig parser and library created by Ulf Magnusson. (https://github.com/ulfalizer/Kconfiglib ) This commit imports kconfiglib.py from commit ce84c22e58fa59cb93679d4ead03c3cd1387965e, with ISC SPDX-License-Identifier. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by:
Ulf Magnusson <ulfalizer@gmail.com> Cc: Ulf Magnusson <ulfalizer@gmail.com> Cc: Wolfgang Denk <wd@denx.de>
-
- Sep 09, 2014
-
-
Masahiro Yamada authored
try run => dry run no nothing => do nothing "..." => '...' The last one is for consistency with the other option helps. Change-Id: I1d69047d1fae6ef095a18f69f44ee13c448db9b7 Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Thierry Reding authored
When creating build directories also create parents as necessary. This fixes a failure when building a hierarchical branch (i.e. foo/bar). Signed-off-by:
Thierry Reding <treding@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org> Tested-by:
Tom Rini <trini@ti.com>
-
Simon Glass authored
Tags like Series-version are normally expected to appear once, and with a unique value. But buildman doesn't actually look at these tags. So ignore conflicts. This allows bulidman to build a branch containing multiple patman series. Reported-by:
Steve Rae <srae@broadcom.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present buildman naively uses the branch name as part of its directory path, which causes problems if the name has an embedded '/'. Replace these with '_' to fix the problem. Reported-by:
Steve Rae <srae@broadcom.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that buildman supports removing the build directory prefix from output, add a test for it. Also ensure that output directories are removed when the test completes. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This adds coverage of core features of the builder, including the command-line options which affect building. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
For testing it is useful to clean the output directory before running a test. This avoids a test interfering with the results of a subsequent test by leaving data around. Add this feature as an optional parameter to the control logic. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When a build is to be performed, buildman checks to see if it has already been done. In most cases it will not bother trying again. However, it was not reading the return code from the 'done' file, so if the result was a failure, it would not be counted. This depresses the 'failure' count stats that buildman prints in this case. Fix this bug by always reading the return code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Rather than reading boards.cfg, which may take time to generate and is not necessarily suitable for running tests, create our own list of boards. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These files may not exist in the environment, or may not be suitable for testing. Provide our own config file and our own toolchains when running tests. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move the bsettings code back to the main buildman.py file, so we can do something different when testing. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Buildman currently lacks testing in many areas, including its use of git, make and many command-line flags. Add a functional test which covers some of these areas. So far it does a fake 'build' of all boards for the current source tree. This version reads the real ~/.buildman and boards.cfg files. Future work will improve this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
There is no good reason to keep this code separate. Move it into control.py so it is easier to test. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We want to be able to issue parser commands from within buildman for test purposes. Move the parser code into its own file so we don't end up needing the buildman and test modules to reference each other. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Adjust the basic test so that it checks all console output. This will help to ensure that the builder is behaving correctly with printing summary information. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
To allow us to verify the builder's console output, send it through a function which can collect it when running in test mode. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 05, 2014
-
-
Simon Glass authored
Some boards unfortunately build with warnings and it is useful to be able to easily distinguish the warnings from the errors. Use a simple pattern match to categorise gcc output into warnings and errors, and display each separately. New warnings are shown in magenta (with a w+ prefix) and fixed warnings are shown in yellow with a w- prefix. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a -l option to display a list of offending boards against each error/warning line. The information will be shown in brackets as below: 02: wip sandbox: + sandbox arm: + seaboard +(sandbox) arch/sandbox/cpu/cpu.c: In function 'timer_get_us': +(sandbox) arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable] +(seaboard) board/nvidia/seaboard/seaboard.c: In function 'pin_mux_mmc': +(seaboard) board/nvidia/seaboard/seaboard.c:36:9: warning: unused variable 'fred' [-Wunused-variable] +(seaboard) int fred; +(seaboard) ^ Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The full path is long and also includes buildman private directories. Clean this up, so that only a relative U-Boot path is shown. This will change warnings like these: /home/sjg/c/src/third_party/u-boot/buildman5/.bm-work/00/arch/sandbox/cpu/cpu.c: In function 'timer_get_us': /home/sjg/c/src/third_party/u-boot/buildman5/.bm-work/00/arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable] /home/sjg/c/src/third_party/u-boot/files/arch/sandbox/cpu/cpu.c: In function 'timer_get_us': /home/sjg/c/src/third_party/u-boot/files/arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable] to: arch/sandbox/cpu/cpu.c: In function 'timer_get_us': arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable] Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some boards are known to be broken and it is convenient to be able to exclude them from the build. Add an --exclude option to specific boards to exclude. This uses the same matching rules as the normal 'include' arguments, and is a comma- separated list of regular expressions. Suggested-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These characters are commonly used in variables, so permit them. Also document the permitted characters. Reported-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When buildman finds errors/warnings when building, set the return code to indicate this. Suggested-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 28, 2014
-
-
Masahiro Yamada authored
This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Aug 22, 2014
-
-
Masahiro Yamada authored
"buildman [options]" is displayed by default. Append the rest of help messages to parser.usage instead of replacing it. Besides, "-b <branch>" is not mandatory since commit fea5858e. Drop it from the usage. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
Roger Meier authored
Signed-off-by:
Roger Meier <roger@bufferoverflow.ch> Reviewed-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Tested-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org>
-
- Aug 21, 2014
-
-
Masahiro Yamada authored
In Python, sys.exit() function can also take an object other than an integer. If an integer is given to the argument, Python exits with the return code of it. If a non-integer argument is given, Python outputs it to stderr and exits with the return code of 1. That means, print >> sys.stderr, "Blah Blah" sys.exit(1) is equivalent to sys.exit("Blah Blah") The latter is a useful shorthand. Note: Some error messages in Buildman and Patman were output to stdout. But they should go to stderr. They are also fixed by this commit. This is a nice side effect. Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Aug 13, 2014
-
-
Simon Glass authored
It is useful to be able to build only some of the commits in a branch. Add support for the -c option to allow this. It was previously parsed by buildman but not implemented. Suggested-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
York Sun <yorksun@freescale.com>
-
Simon Glass authored
Currently buildman allows a list of boards to build to be specified on the command line. The list can include specific board names, architecture, SOC and so on. At present the list of boards is dealt with in an 'OR' fashion, and there is no way to specify something like 'arm & freescale', meaning boards with ARM architecture but only those made by Freescale. This would exclude the PowerPC boards made by Freescale. Support an '&' operator on the command line to permit this. Ensure that arguments can be specified in a single string to permit easy shell quoting. Suggested-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
York Sun <yorksun@freescale.com>
-
Simon Glass authored
The current README is a bit sparse in this area, so add a few more examples. Suggested-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
If buildman finds no problems it prints nothing. This can be a bit confusing, so add a message that all is well. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a new --config-file option (-G) to specify a different configuration file from the default ~/.buildman. Reported-by:
Tom Rini <trini@ti.com> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The non-incremental build method is no longer used, so remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Normally buildman operates in two passes - one to do the build and another to summarise the errors. Add a verbose option (-v) to display build problems as they happen. With -e also given, this will display errors too. When building the current source tree (rather than a list of commits in a branch), both -v and -e are enabled automatically. Signed-off-by:
Simon Glass <sjg@chromium.org>
-