| ddaf5c8f | 06-Sep-2014 |
Simon Glass <sjg@chromium.org> |
patman: RunPipe() should not pipe stdout/stderr unless asked
RunPipe() currently pipes the output of stdout and stderr to a pty, but this is not the intended behaviour. Fix it.
Signed-off-by: Simon
patman: RunPipe() should not pipe stdout/stderr unless asked
RunPipe() currently pipes the output of stdout and stderr to a pty, but this is not the intended behaviour. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 6208fcef | 06-Sep-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Enhance basic test to check summary output
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
buildman: Enhance basic test to check summary output
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>
show more ...
|
| 4653a882 | 06-Sep-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Send builder output through a function for testing
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-of
buildman: Send builder output through a function for testing
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>
show more ...
|
| 3c6c0f81 | 06-Sep-2014 |
Simon Glass <sjg@chromium.org> |
patman: Add a way of recording terminal output for testing
When running unit tests we don't want output to go to the terminal. Provide a way of collecting it so that it can be examined by test code
patman: Add a way of recording terminal output for testing
When running unit tests we don't want output to go to the terminal. Provide a way of collecting it so that it can be examined by test code later.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 03ea24b2 | 20-Aug-2014 |
Ye.Li <Ye.Li@freescale.com> |
imximage: Fix imximage IVT bug for EIM-NOR boot
The load region size of EIM-NOR are defined to 0. For this case, the parameter "imximage_init_loadsize" must be calculated. The imximage tool implemen
imximage: Fix imximage IVT bug for EIM-NOR boot
The load region size of EIM-NOR are defined to 0. For this case, the parameter "imximage_init_loadsize" must be calculated. The imximage tool implements the calculation in the "imximage_generate" function, but the following function "imximage_set_header" resets the value and not calculate. This bug cause some fields of IVT head are not correct, for example the boot_data and DCD overlay the application area.
Signed-off-by: Ye.Li <B37916@freescale.com>
show more ...
|
| 021e79c8 | 01-Sep-2014 |
Fabio Estevam <fabio.estevam@freescale.com> |
tools: imximage: Fix the maximum DCD size for mx53/mx6
According to mx53 and mx6 reference manuals:
"The maximum size of the DCD limited to 1768 bytes."
As each DCD entry consists of 8 bytes, we h
tools: imximage: Fix the maximum DCD size for mx53/mx6
According to mx53 and mx6 reference manuals:
"The maximum size of the DCD limited to 1768 bytes."
As each DCD entry consists of 8 bytes, we have a total of 1768 / 8 = 221, and excluding the first entry, which is the header leads to 220 as the maximum number for DCD size.
Reported-by: Jonas Karlsson <jonas.d.karlsson@gmail.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Nitin Garg <nitin.garg@freescale.com> Acked-by: Nitin Garg <nitin.garg@freescale.com>
show more ...
|
| 0b703dbc | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Fix detection of git version
A missing 'global' declaration means that this feature does not currently work. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| e30965db | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Separate out display of warnings and errors
Some boards unfortunately build with warnings and it is useful to be able to easily distinguish the warnings from the errors.
Use a simple patt
buildman: Separate out display of warnings and errors
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>
show more ...
|
| ed966657 | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add an option to show which boards caused which errors
Add a -l option to display a list of offending boards against each error/warning line. The information will be shown in brackets as b
buildman: Add an option to show which boards caused which errors
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>
show more ...
|
| 48c1b6a8 | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Remove the directory prefix from each error line
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 wi
buildman: Remove the directory prefix from each error line
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>
show more ...
|
| 3cf4ae6f | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Implement an option to exclude boards from the build
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
buildman: Implement an option to exclude boards from the build
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>
show more ...
|
| f60c9d4f | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Allow make-flags variables to include '-' and '_'
These characters are commonly used in variables, so permit them. Also document the permitted characters.
Reported-by: Tom Rini <trini@ti.
buildman: Allow make-flags variables to include '-' and '_'
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>
show more ...
|
| 2c3deb97 | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Set the return code to indicate build result
When buildman finds errors/warnings when building, set the return code to indicate this.
Suggested-by: York Sun <yorksun@freescale.com> Signed
buildman: Set the return code to indicate build result
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>
show more ...
|
| d0c5719d | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Avoid changing the order of tags
patman collects tags that it sees in the commit and places them nicely sorted at the end of the patch. However, this is not really necessary and in fact is a
patman: Avoid changing the order of tags
patman collects tags that it sees in the commit and places them nicely sorted at the end of the patch. However, this is not really necessary and in fact is apparently not desirable.
Suggested-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
show more ...
|
| 9447a6b2 | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Use --no-pager' to stop git from forking a pager
In a headless environment the pager can apparently hang. We don't want a pager anyway so let's request that none be used.
Reported-by: Tom R
patman: Use --no-pager' to stop git from forking a pager
In a headless environment the pager can apparently hang. We don't want a pager anyway so let's request that none be used.
Reported-by: Tom Rini <trini@ti.com> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7428dc14 | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Remove the -a option
It seems that this is no longer needed, since checkpatch.pl will catch whitespace problems in patches. Also the option is not widely used, so it seems safe to just remov
patman: Remove the -a option
It seems that this is no longer needed, since checkpatch.pl will catch whitespace problems in patches. Also the option is not widely used, so it seems safe to just remove it.
Suggested-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e752edcb | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Correct unit tests to run correctly
It seems that doctest behaves differently now, and some of the unit tests do not run. Adjust the tests to work correctly.
./tools/patman/patman --test <
patman: Correct unit tests to run correctly
It seems that doctest behaves differently now, and some of the unit tests do not run. Adjust the tests to work correctly.
./tools/patman/patman --test <unittest.result.TestResult run=10 errors=0 failures=0>
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 6ba5737f | 28-Aug-2014 |
Simon Glass <sjg@chromium.org> |
patman: Fix indentation in terminal.py
This code came from a different project with 2-character indentation. Fix it for U-Boot.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 2134342e | 27-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: change shebang into /usr/bin/env python2
This tool only works on python 2 (python 2.6 or lator).
Change the shebang to make sure the script is run by python 2 and clearly say
tools/genboardscfg.py: change shebang into /usr/bin/env python2
This tool only works on python 2 (python 2.6 or lator).
Change the shebang to make sure the script is run by python 2 and clearly say the supported version in the comment block.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
show more ...
|
| 9a65cb7f | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: improve performance
I guess some developers are already getting sick of this tool because it generally takes a few minites to generate the boards.cfg on a reasonable computer.
tools/genboardscfg.py: improve performance
I guess some developers are already getting sick of this tool because it generally takes a few minites to generate the boards.cfg on a reasonable computer.
The idea popped up on my mind was to skip Makefiles and to run script/kconfig/conf directly. This tool should become about 4 times faster. You might still not be satisfied, but better than doing nothing.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d1bf4afd | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: check if the boards.cfg is up to date
It looks silly to regenerate the boards.cfg even when it is already up to date.
The tool should exit with doing nothing if the boards.cf
tools/genboardscfg.py: check if the boards.cfg is up to date
It looks silly to regenerate the boards.cfg even when it is already up to date.
The tool should exit with doing nothing if the boards.cfg is newer than any of defconfig, Kconfig and MAINTAINERS files.
Specify -f (--force) option to get the boards.cfg regenerated regardless its time stamp.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 79d45d32 | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: fix minor problems on termination
This tool deletes the incomplete boards.cfg if it encounters an error or is is terminated by the user.
I notice some problems even though th
tools/genboardscfg.py: fix minor problems on termination
This tool deletes the incomplete boards.cfg if it encounters an error or is is terminated by the user.
I notice some problems even though they rarely happen.
[1] The boards.cfg is removed if the program is terminated during __gen_boards_cfg() function but before boards.cfg is actually touched. In this case, the previous boards.cfg should be kept as it is.
[2] If an error occurs while deleting the incomplete boards.cfg, the program throws another exception. This hides the privious exception and we will not be able to know the real cause.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d6538d22 | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: wait for unfinished subprocesses before error-out
When an error occurs or the program is terminated by the user on the way, the destructer __del__ of class Slot is invoked and
tools/genboardscfg.py: wait for unfinished subprocesses before error-out
When an error occurs or the program is terminated by the user on the way, the destructer __del__ of class Slot is invoked and the work directories are removed.
We have to make sure there are no subprocesses (in this case, "make O=<work_dir> ...") using the work directories before removing them. Otherwise the subprocess spits a bunch of error messages possibly causing more problems. Perhaps some users may get upset to see too many error messages.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 13246f48 | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: be tolerant of insane Kconfig
The tools/genboardscfg.py expects all the Kconfig and defconfig are written correctly. Imagine someone accidentally has broken a board. Error-ou
tools/genboardscfg.py: be tolerant of insane Kconfig
The tools/genboardscfg.py expects all the Kconfig and defconfig are written correctly. Imagine someone accidentally has broken a board. Error-out just for one broken board is annoying for the other developers. Let the tool skip insane boards and continue processing.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| b8828e8f | 25-Aug-2014 |
Masahiro Yamada <yamada.m@jp.panasonic.com> |
tools/genboardscfg.py: be tolerant of missing MAINTAINERS
tools/genboardscfg.py expects all the boards have MAINTAINERS. If someone adds a new board but misses to add its MAINTAINERS file, tools/gen
tools/genboardscfg.py: be tolerant of missing MAINTAINERS
tools/genboardscfg.py expects all the boards have MAINTAINERS. If someone adds a new board but misses to add its MAINTAINERS file, tools/genboardscfg.py fails to generate the boards.cfg file. It is annoying for the other developers.
This commit allows tools/genboardscfg.py to display warning messages and continue processing even if some MAINTAINERS files are missing or have broken formats.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|