| 93f48779 | 15-Feb-2017 |
Chris Packham <judge.packham@gmail.com> |
tools: kwboot: don't adjust destaddr when patching the image
Commit 94084eea3bd3 ("tools: kwbimage: Fix dest addr") changed kwbimage to do this adjustment. So now the adjustment in kwboot is not nee
tools: kwboot: don't adjust destaddr when patching the image
Commit 94084eea3bd3 ("tools: kwbimage: Fix dest addr") changed kwbimage to do this adjustment. So now the adjustment in kwboot is not needed (and would prevent UART booting for images generated by the new kwbimage). Remove the destaddr adjustment in kwboot.
Signed-off-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| d726f225 | 30-Jan-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
cmd: rework "license" command
The previous commit ("add a new command to show .config contents") improves the basic infrastructure of "embed a compressed file into the U-Boot image, and print it by
cmd: rework "license" command
The previous commit ("add a new command to show .config contents") improves the basic infrastructure of "embed a compressed file into the U-Boot image, and print it by a command". The same pattern for the "license" command.
This commit reworks the command to improve the following:
[1] Improve log style
Kbuild style log
GZIP cmd/license_data.gz CHK cmd/license_data_gz.h UPD cmd/license_data_gz.h CHK cmd/license_data_size.h UPD cmd/license_data_size.h
instead of the bare Make log:
cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \ tools/bin2header license_gzip > ./include/license.h
[2] Collect related code into the "cmd" directory
Prior to this commit, the license.h was created by tools/Makefile, placed under the "include" directory, included from cmd/license.c, and deleted by the top-level Makefile. It is not a good idea to scatter related code.
[3] Drop the fixed-malloc size LICENSE_MAX
Just allocate the minimum required size of buffer because we know the size of the original gpl-2.0.txt.
[4] Fix more issues
Terminate the buffer with zero to prevent puts() from over-running. Add "static" to do_license.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| f11a0af7 | 07-Feb-2017 |
Chris Packham <judge.packham@gmail.com> |
patman: Handle non-ascii characters in names
When gathering addresses for the Cc list patman would encounter a UnicodeDecodeError due to non-ascii characters in the author name. Address this by expl
patman: Handle non-ascii characters in names
When gathering addresses for the Cc list patman would encounter a UnicodeDecodeError due to non-ascii characters in the author name. Address this by explicitly using utf-8 when building the Cc list.
Signed-off-by: Chris Packham <judge.packham@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 8aa41363 | 17-Jan-2017 |
Simon Glass <sjg@chromium.org> |
patman: Format checkpatch messages for IDE throwback
It is convenient to be able to deal with checkpatch warnings in the same way as build warnings. Tools such as emacs and kate can quickly locate t
patman: Format checkpatch messages for IDE throwback
It is convenient to be able to deal with checkpatch warnings in the same way as build warnings. Tools such as emacs and kate can quickly locate the source file and line automatically.
To achieve this, adjust the format to match the C compiler, and output to stderr.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c25f01a6 | 25-Nov-2016 |
oliver@schinagl.nl <oliver@schinagl.nl> |
tools: Add tool to add crc8 to a mac address
This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators
tools: Add tool to add crc8 to a mac address
This patch adds a little tool that takes a generic MAC address and generates a CRC byte for it. The output is the full MAC address without any separators, ready written into an EEPROM.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 9d1adf04 | 18-Jan-2017 |
Bin Meng <bmeng.cn@gmail.com> |
tools: binman: Handle optional microcode case in SPL image
On platforms which do not require microcode in SPL, handle such case like U-Boot proper.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Revi
tools: binman: Handle optional microcode case in SPL image
On platforms which do not require microcode in SPL, handle such case like U-Boot proper.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 4991b4f7 | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Refactor line parsing and fix error
The function image_create_config_parse_oneline is pretty complex, and since more parameters will be added to support secure booting, we refactor
tools: kwbimage: Refactor line parsing and fix error
The function image_create_config_parse_oneline is pretty complex, and since more parameters will be added to support secure booting, we refactor the function to make it more readable.
Also, when a line contained just a keyword without any parameters, strtok_r returned NULL, which was then indiscriminately fed into atoi, causing a segfault. To correct this, we add a NULL check before feeding the extracted token to atoi, and print an error message in case the token is NULL.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| 79066ef8 | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Factor out add_binary_header_v1
In preparation of adding the creation of secure headers, we factor the add_binary_header_v1 function out of the image_create_v1 function.
Signed-off
tools: kwbimage: Factor out add_binary_header_v1
In preparation of adding the creation of secure headers, we factor the add_binary_header_v1 function out of the image_create_v1 function.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| e93cf53f | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Remove unused parameter
The parameter 'params' of the image_headersz_v1 function is never used by the function.
Hence, remove it.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Rev
tools: kwbimage: Remove unused parameter
The parameter 'params' of the image_headersz_v1 function is never used by the function.
Hence, remove it.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| e89016c4 | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Reduce scope of variables
This patch reduces the scope of some variables.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan
tools: kwbimage: Reduce scope of variables
This patch reduces the scope of some variables.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| 885fba15 | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Fix arithmetic with void pointers
Arithmetic with void pointers, e.g. a - b where both a and b are void pointers, is undefined in the C standard. Since we are operating with byte da
tools: kwbimage: Fix arithmetic with void pointers
Arithmetic with void pointers, e.g. a - b where both a and b are void pointers, is undefined in the C standard. Since we are operating with byte data here, we switch the void pointers to uint8_t pointers, and add the necessary casts.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|
| 94490a4a | 11-Jan-2017 |
Mario Six <mario.six@gdsys.cc> |
tools: kwbimage: Fix style violations
Fix some style violations:
- nine instances of missing blank lines after declarations - one overly long line - one split string (which also rewords an error me
tools: kwbimage: Fix style violations
Fix some style violations:
- nine instances of missing blank lines after declarations - one overly long line - one split string (which also rewords an error message more concisely) - two superfluous else
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
show more ...
|