#
0dbc9b59 |
| 19-Oct-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: support wildcards in --defconfigs file
Supporting shell-style wildcards for the --defconfigs option will be useful to run the moveconfig tool against a specific platform. For exa
tools: moveconfig: support wildcards in --defconfigs file
Supporting shell-style wildcards for the --defconfigs option will be useful to run the moveconfig tool against a specific platform. For example, "uniphier*" in the file passed by --defconfigs option will be expanded to defconfig files that start with "uniphier". This is easier than listing out all defconfig files you are interested in.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
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 ...
|
#
6b403dfd |
| 13-Sep-2016 |
Simon Glass <sjg@chromium.org> |
moveconfig: Add an option to skip prompts
At present it is not easy to use moveconfig from a script since it asks for user input a few times. Add a -y option to skip this and assume that 'y' was ent
moveconfig: Add an option to skip prompts
At present it is not easy to use moveconfig from a script since it asks for user input a few times. Add a -y option to skip this and assume that 'y' was entered.
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 ...
|
#
e1a99626 |
| 22-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: remove document about deprecated error message
Since commit cc008299f852 ("tools: moveconfig: do not rely on type and default value given by users"), we do not have this error cas
tools: moveconfig: remove document about deprecated error message
Since commit cc008299f852 ("tools: moveconfig: do not rely on type and default value given by users"), we do not have this error case.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
#
c21fc7e2 |
| 21-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: fix "followings" to "following"
Most of them are my mistakes.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
|
#
88e1346e |
| 21-Aug-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: add Xtensa GCC prefix to CROSS_COMPILE list
This is needed to move CONFIG options for the recently-added xtfpga_defconfig.
The tarball of the pre-built toolchain can be downloade
tools: moveconfig: add Xtensa GCC prefix to CROSS_COMPILE list
This is needed to move CONFIG options for the recently-added xtfpga_defconfig.
The tarball of the pre-built toolchain can be downloaded from: https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.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 ...
|
#
dc6de50b |
| 25-Jul-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: do not cleanup headers in include/generated
The files in include/generated are generated during build and removed by "make mrproper", so it has no point to touch them by this tool
tools: moveconfig: do not cleanup headers in include/generated
The files in include/generated are generated during build and removed by "make mrproper", so it has no point to touch them by this tool.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
Revision tags: v2016.07, openbmc-20160624-1 |
|
#
b66a5c03 |
| 21-Jun-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
|
#
fc2661ee |
| 15-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: show suspicious boards with possible misconversion
There are some cases where config options are moved, but they are ripped off at the final savedefconfig stage:
- The moved op
tools: moveconfig: show suspicious boards with possible misconversion
There are some cases where config options are moved, but they are ripped off at the final savedefconfig stage:
- The moved option is not user-configurable, for example, due to a missing prompt in the Kconfig entry
- The config was not defined in the original config header despite the Kconfig specifies it as non-bool type
- The config define in the header contains reference to another macro, for example: #define CONFIG_CONS_INDEX (CONFIG_SYS_LPC32XX_UART - 2) The current moveconfig does not support recursive macro expansion.
In these cases, the conversion is very likely to be an unexpected result. That is why I decided to display the log in yellow color in commit 5da4f857beac ("tools: moveconfig: report when CONFIGs are removed by savedefconfig").
It would be nice to display the list of suspicious boards when the tool finishes processing. It is highly recommended to check the defconfigs once again when this message is displayed.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
#
96dccd97 |
| 15-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: simplify show_failed_boards() and show more info
Since commit 1d085568b3de ("tools: moveconfig: display log atomically in more readable format"), the function color_text() is clev
tools: moveconfig: simplify show_failed_boards() and show more info
Since commit 1d085568b3de ("tools: moveconfig: display log atomically in more readable format"), the function color_text() is clever enough to exclude LF from escape sequences. Exploit it for removing the "for" loops from Slots.show_failed_boards().
Also, display "(the list has been saved in moveconfig.failed)" if there are failed boards.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
#
f432c33f |
| 15-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: simplify source tree switching
The subprocess.Popen() does not change the child process's working directory if cwd=None is given. Let's exploit this fact to refactor the source d
tools: moveconfig: simplify source tree switching
The subprocess.Popen() does not change the child process's working directory if cwd=None is given. Let's exploit this fact to refactor the source directory handling.
We no longer have to pass "-C <reference_src_dir>" to the sub-process because self.current_src_dir tracks the source tree against which we want to run defconfig/autoconf.
The flag self.use_git_ref is not necessary either because we can know the current state by checking whether the self.current_src_dir is a valid string or None.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|
#
5cc42a51 |
| 15-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: change class WorkDir to class ReferenceSource
The class WorkDir can be used in a very generic way, but currently it is only used for containing a reference source directory.
This
tools: moveconfig: change class WorkDir to class ReferenceSource
The class WorkDir can be used in a very generic way, but currently it is only used for containing a reference source directory.
This commit changes it for a more dedicated use. The move_config function can be more readable by enclosing the git-clone and git- checkout in the class constructor.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
#
5030159e |
| 15-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
tools: moveconfig: fix needless move for config with default 1
When moving an integer type option with default value 1, the tool moves configs with the same value as the default (, and then removed
tools: moveconfig: fix needless move for config with default 1
When moving an integer type option with default value 1, the tool moves configs with the same value as the default (, and then removed by the later savedefconfig). This is a needless operation.
The KconfigParser.parse_one_config() should compare the config after the "=y -> =1" fixup.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
#
a5214285 |
| 12-Jun-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
|
#
6b96c1a1 |
| 10-Jun-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
tools: moveconfig: Add a new --git-ref option
This option allows the 'make autoconf.mk' step to run against a former repo state, while the savedefconfig step runs against the current repo state. Thi
tools: moveconfig: Add a new --git-ref option
This option allows the 'make autoconf.mk' step to run against a former repo state, while the savedefconfig step runs against the current repo state. This is convenient for the case where something in the Kconfig has changed such that the defconfig is no longer complete with the new Kconfigs. This feature allows the .config to be built assuming those old Kconfigs, but then savedefconfig based on the new state of the Kconfigs.
If in doubt, always specify this switch. It will always do the right thing even if not required, but if it was required and you don't use it, the moved configs will be incorrect. When not using this switch, you must very carefully evaluate that all moved configs are correct.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|