| ba482585 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move the fdt library selection into fdt_select
Rather than have dtc worry about which fdt library to use, move this into a helper file. Add a function which creates a new Fdt object and scans
dtoc: Move the fdt library selection into fdt_select
Rather than have dtc worry about which fdt library to use, move this into a helper file. Add a function which creates a new Fdt object and scans it, regardless of the implementation.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 9ede2123 | 13-Sep-2016 |
Simon Glass <sjg@chromium.org> |
moveconfig: Add an option to commit changes
The moveconfig tool is quite clever and generally produces results that are suitable for sending as a patch without further work. The main required step i
moveconfig: Add an option to commit changes
The moveconfig tool is quite clever and generally produces results that are suitable for sending as a patch without further work. The main required step is to add the changes to a commit.
Add an option to do this automatically. This allows moveconfig to be used from a script to convert multiple CONFIG options, once per commit.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 07913d1e | 22-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: add --spl option to move options for SPL build
Prior to this commit, the tool could not move options guarded by CONFIG_SPL_BUILD ifdef conditionals because they do not show up in
tools: moveconfig: add --spl option to move options for SPL build
Prior to this commit, the tool could not move options guarded by CONFIG_SPL_BUILD ifdef conditionals because they do not show up in include/autoconf.mk. This new option, if given, makes the tool parse spl/include/autoconf.mk instead of include/autoconf.mk, which is probably preferred behavior when moving options for SPL.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 916224c3 | 22-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: warn loudly if moved option has no entry in Kconfig
Currently, the tool gives up moving an option quietly if its entry was not found in Kconfig.
If the option is not defined in t
tools: moveconfig: warn loudly if moved option has no entry in Kconfig
Currently, the tool gives up moving an option quietly if its entry was not found in Kconfig.
If the option is not defined in the config header in the first place, it is no problem (as the Kconfig entry may have been hidden by reasonable "depends on").
However, if the option is defined in the config header, the missing Kconfig entry is a sign of possible behavior change. It is highly recommended to manually check if the option has been moved as expected. In this case, let's add "suspicious" in the log and change the log color (if --color option is given) to make it stand out.
This was suggested by Tom in [1].
[1] http://lists.denx.de/pipermail/u-boot/2016-July/261988.html
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Suggested-by: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 09c6c066 | 22-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: use sets instead of lists for failed/suspicious boards
The sets feature is handier for adding unique elements.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acke
tools: moveconfig: use sets instead of lists for failed/suspicious boards
The sets feature is handier for adding unique elements.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 4ed6f431 | 17-Aug-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: soften warning about erase block alignment
addon 183923d3e MMC/SATA have no erase blocks, only blocks. Hence the warning about erase block alignment might be confusing in such environment
tools/env: soften warning about erase block alignment
addon 183923d3e MMC/SATA have no erase blocks, only blocks. Hence the warning about erase block alignment might be confusing in such environment.
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 9ab0296a | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: support CONFIG_SYS_EXTRA_OPTIONS cleaning
We mostly move config options from board header files to Kconfig, but sometimes config defines come from CONFIG_SYS_EXTRA_OPTIONS.
Histo
tools: moveconfig: support CONFIG_SYS_EXTRA_OPTIONS cleaning
We mostly move config options from board header files to Kconfig, but sometimes config defines come from CONFIG_SYS_EXTRA_OPTIONS.
Historically, CONFIG_SYS_EXTRA_OPTIONS originates in boards.cfg, which was used as a central database of configuration prior to the Kconfig conversion.
Now, we want to migrate to primary entries in Kconfig rather than option list in CONFIG_SYS_EXTRA_OPTIONS, so it should be helpful to have the tool to cleanup CONFIG_SYS_EXTRA_OPTIONS automatically.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 684c306e | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: make getting all defconfigs into helper function
I want to reuse this routine in the next commit.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom
tools: moveconfig: make getting all defconfigs into helper function
I want to reuse this routine in the next commit.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| a3a779f7 | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: fix cleanup of defines across multiple lines
Correct the clean-up of such defines that continue across multiple lines, like follows:
#define CONFIG_FOO "this continues to the n
tools: moveconfig: fix cleanup of defines across multiple lines
Correct the clean-up of such defines that continue across multiple lines, like follows:
#define CONFIG_FOO "this continues to the next line " \ "this line should be removed too" \ "this line should be removed as well"
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| e9ea1221 | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: show diffs of cleaned headers in color
Show code diff in color if --color option is given.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <t
tools: moveconfig: show diffs of cleaned headers in color
Show code diff in color if --color option is given.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| f2f6981a | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: show result of header cleaning in unified diff
The header cleanup feature of this tool now removes empty ifdef's, successive blank lines as well as moved option defines. So, we w
tools: moveconfig: show result of header cleaning in unified diff
The header cleanup feature of this tool now removes empty ifdef's, successive blank lines as well as moved option defines. So, we want to see a little more context to check which lines were deleted.
It is true that we can see it by "git diff", but it would not work in the --dry-run mode. So, here, this commit.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|
| 8ba1f5de | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: trim garbage lines after header cleanups
The tools/moveconfig.py has a feature to cleanup #define/#undef's of moved config options, but I want this tool to do a better job.
For e
tools: moveconfig: trim garbage lines after header cleanups
The tools/moveconfig.py has a feature to cleanup #define/#undef's of moved config options, but I want this tool to do a better job.
For example, when we are moving CONFIG_FOO and its define is surrounded by #ifdef ... #endif, like follows:
#ifdef CONFIG_BAR # define CONFIG_FOO #endif
The header cleanup will leave empty #ifdef ... #endif:
#ifdef CONFIG_BAR #endif
Likewise, if a define line between two blank lines
<blank line> #define CONFIG_FOO <blank lines.
... is deleted, the result of the clean-up will be successive empty lines, which is a coding-style violation.
It is tedious to remove left-over garbage lines manually, so I want the tool to take care of this. The tool's job is still not perfect, so we should check the output of the tool, but I hope our life will be much easier with this patch.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|
| f7536f79 | 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: do not check clean tree and compilers for -H option
The clean tree (make mrproper) and compilers are required when moving config options, but not needed when we only cleanup heade
tools: moveconfig: do not check clean tree and compilers for -H option
The clean tree (make mrproper) and compilers are required when moving config options, but not needed when we only cleanup headers.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|