| 4b89b813 | 25-Sep-2014 |
Scott Wood <scottwood@freescale.com> |
patman: Check commit_match before stripping leading whitespace
True commit lines start at column zero. Anything that is indented is part of the commit message instead. I noticed this by trying to
patman: Check commit_match before stripping leading whitespace
True commit lines start at column zero. Anything that is indented is part of the commit message instead. I noticed this by trying to run buildman with commit e3a4facdfc07179ebe017a07b8de6224a935a9f3 as master, which contained a reference to a Linux commit inside the commit message. ProcessLine saw that as a genuite commit line, and thus buildman tried to build it, and died with an exception because that SHA is not present in the U-Boot tree.
Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 26621799 | 15-Jan-2015 |
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> |
tools: do not print error messages in verify_header() functions
default_image.c and socfpgaimage.c are the only image modules that print error messages during header verification. The verify_header(
tools: do not print error messages in verify_header() functions
default_image.c and socfpgaimage.c are the only image modules that print error messages during header verification. The verify_header() is used to query if a given image file is processed by the image format. Thus, if the image format can't handle the file, it must simply return an error. Otherwise we pollute the screen with errors messages until we find the image format that handle a given image file.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
show more ...
|
| 39931f96 | 15-Jan-2015 |
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> |
dumpimage: fit: extract FIT images
The dumpimage is able to extract components contained in a FIT image:
$ ./dumpimage -T flat_dt -i CONTAINER.ITB -p INDEX FILE
The CONTAINER.ITB is a regular FI
dumpimage: fit: extract FIT images
The dumpimage is able to extract components contained in a FIT image:
$ ./dumpimage -T flat_dt -i CONTAINER.ITB -p INDEX FILE
The CONTAINER.ITB is a regular FIT container file. The INDEX is the poisition of the sub-image to be retrieved, and FILE is the file (path+name) to save the extracted sub-image.
For example, given the following kernel.its to build a kernel.itb:
/dts-v1/; / { ... images { kernel@1 { description = "Kernel 2.6.32-34"; data = /incbin/("/boot/vmlinuz-2.6.32-34-generic"); type = "kernel"; arch = "ppc"; os = "linux"; compression = "gzip"; load = <00000000>; entry = <00000000>; hash@1 { algo = "md5"; }; }; ... }; ... };
The dumpimage can extract the 'kernel@1' node through the following command:
$ ./dumpimage -T flat_dt -i kernel.itb -p 0 kernel Extracted: Image 0 (kernel@1) Description: Kernel 2.6.32-34 Created: Wed Oct 22 15:50:26 2014 Type: Kernel Image Compression: gzip compressed Data Size: 4040128 Bytes = 3945.44 kB = 3.85 MB Architecture: PowerPC OS: Linux Load Address: 0x00000000 Entry Point: 0x00000000 Hash algo: md5 Hash value: 22352ad39bdc03e2e50f9cc28c1c3652
Which results in the file 'kernel' being exactly the same as '/boot/vmlinuz-2.6.32-34-generic'.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
show more ...
|
| f41f5b7c | 15-Jan-2015 |
Guilherme Maciel Ferreira <guilherme.maciel@datacom.ind.br> |
dumpimage: add 'T' option to explicitly set the image type
Some image types, like "KeyStone GP", do not have magic numbers to distinguish them from other image types. Thus, the automatic image type
dumpimage: add 'T' option to explicitly set the image type
Some image types, like "KeyStone GP", do not have magic numbers to distinguish them from other image types. Thus, the automatic image type discovery does not work correctly.
This patch also fix some integer type mismatches.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
show more ...
|
| a93648d1 | 15-Jan-2015 |
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> |
imagetool: replace image registration function by linker_lists feature
The registration was introduced in commit f86ed6a8d52c99bb2d17d3cac1647edca0c4399c
This commit also removes all registration f
imagetool: replace image registration function by linker_lists feature
The registration was introduced in commit f86ed6a8d52c99bb2d17d3cac1647edca0c4399c
This commit also removes all registration functions, and the member "next" from image_type_params struct
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
show more ...
|
| 067d1560 | 15-Jan-2015 |
Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com> |
imagetool: make the image_save_datafile() available to all image types
Move the image_save_datafile() function from an U-Multi specific file (default_image.c) to a file common to all image types (im
imagetool: make the image_save_datafile() available to all image types
Move the image_save_datafile() function from an U-Multi specific file (default_image.c) to a file common to all image types (image.c). And rename it to genimg_save_datafile(), to make clear it is useful for any image type.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
show more ...
|
| d2ce658d | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add an option to write the full build output
Normally buildman runs with 'make -s' meaning that only errors and warnings appear in the log file. Add a -V option to run make in verbose mode
buildman: Add an option to write the full build output
Normally buildman runs with 'make -s' meaning that only errors and warnings appear in the log file. Add a -V option to run make in verbose mode, and with V=1, causing a full build log to be created.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 827e37b5 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add the option to download toolchains from kernel.org
The site at https://www.kernel.org/pub/tools/crosstool/ is a convenient repository of toolchains which can be used for U-Boot. Add a f
buildman: Add the option to download toolchains from kernel.org
The site at https://www.kernel.org/pub/tools/crosstool/ is a convenient repository of toolchains which can be used for U-Boot. Add a feature to download and install a toolchain for a selected architecture automatically.
It isn't clear how long this site will stay in the current place and format, but we should be able to rely on bug reports if it changes.
Suggested-by: Marek Vašut <marex@denx.de> Suggested-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| cc935295 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Don't use the local settings when running tests
We should create a test setting file when running testes, not use whatever happens to be on the local machine.
Signed-off-by: Simon Glass <
buildman: Don't use the local settings when running tests
We should create a test setting file when running testes, not use whatever happens to be on the local machine.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 62005342 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add documentation about the .buildman file
This file is only partially documented. Add some more details.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Wolfgang Denk <wd@den
buildman: Add documentation about the .buildman file
This file is only partially documented. Add some more details.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| 34699696 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add a note about Python pre-requisites
Since we need a few modules which might not be available in a bare-bones distribution, add a note about that to the README.
Signed-off-by: Simon Gla
buildman: Add a note about Python pre-requisites
Since we need a few modules which might not be available in a bare-bones distribution, add a note about that to the README.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| bb1501f2 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Add an option to use the full tool chain path
In some cases there may be multiple toolchains with the same name in the path. Provide an option to use the full path in the CROSS_COMPILE env
buildman: Add an option to use the full tool chain path
In some cases there may be multiple toolchains with the same name in the path. Provide an option to use the full path in the CROSS_COMPILE environment variable.
Note: Wolfgang mentioned that this is dangerous since in some cases there may be other tools on the path that are needed. So this is set up as an option, not the default. I will need test confirmation (i.e. that this commit fixes a real problem) before merging it.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Steve Rae <srae@broadcom.com>
show more ...
|
| f210b587 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Put the toolchain path first instead of last in PATH
If:
1. Toolchains A and B have the same filename 2. Toolchain A is in the PATH 3. Toolchain B is given in ~/.buildman and buildman use
buildman: Put the toolchain path first instead of last in PATH
If:
1. Toolchains A and B have the same filename 2. Toolchain A is in the PATH 3. Toolchain B is given in ~/.buildman and buildman uses it to build
then buildman will add toolchain B to the end of its path but will not necessarily use it since U-Boot will find toolchain A first in the PATH.
Try to fix this by putting the toolchain first in the path instead of last.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| b5324123 | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Try to avoid hard-coded string parsing
The assumption that the compiler name will always end in gcc is incorrect for clang and apparently on BSD.
Signed-off-by: Simon Glass <sjg@chromium.
buildman: Try to avoid hard-coded string parsing
The assumption that the compiler name will always end in gcc is incorrect for clang and apparently on BSD.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 5abab20d | 02-Dec-2014 |
Simon Glass <sjg@chromium.org> |
buildman: Allow specifying a range of commits to build
Adjust the -b flag to permit a range expression as well as a branch.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Daniel Schwie
buildman: Allow specifying a range of commits to build
Adjust the -b flag to permit a range expression as well as a branch.
Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
show more ...
|