Skip to content

merge_config misc reworks and testcases

Olof Johansson linux-kbuild lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10merge_config.sh: factor out value parsingscripts/kconfig/merge_config.sh+8 -41 reply
2/10merge_config.sh: print warnings on stderrscripts/kconfig/merge_config.sh+2 -21 reply
3/10merge_config.sh: minor argument parsing refactoringscripts/kconfig/merge_config.sh+3 -81 reply
4/10merge_config.sh: exit non-0 in case of failuresscripts/kconfig/merge_config.sh+16 -41 reply
5/10merge_config.sh: Better handling of CONFIG_FOO=nscripts/kconfig/merge_config.sh+1 -12 replies
6/10merge_config.sh: only consider last value of symbolsscripts/kconfig/merge_config.sh+1 -11 reply
7/10merge_config.sh: add testsscripts/kconfig/merge_config_test/01-no-fragment.sh scripts/kconfig/merge_config_test/02-already-set.sh scripts/kconfig/merge_config_test/03-turnoff-failure.sh +10 more+249 -02 replies
8/10merge_config.sh: use trap for cleanupscripts/kconfig/merge_config.sh+5 -32 replies
9/10merge_config.sh: allow single configs to be passed in on cmdlinescripts/kconfig/merge_config.sh+24 -51 reply
10/10merge_config.sh: add tests for cmdline configsscripts/kconfig/merge_config_test/12-cmdline-success.sh scripts/kconfig/merge_config_test/13-cmdline-failure.sh scripts/kconfig/merge_config_test/14-cmdline-reduntant.sh +1 more+69 -01 reply

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchDarren Hart
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] merge_config misc reworks and testcases

Hi,

Somewhat wide distribution list here, since I've added everyone who's touched the script, with the presumption that those have been the major users of it. Please make sure none of these changes break your use cases.

I've done some reworks of merge_config.sh. I was quite hesitant to start this since there are no good ways to see if your changes break others or not, so the first thing I did was to add some tests. I know this is highly unorthodox so try not to panic. :-)

As far as what this series does is:

- Adds a way to pass in CONFIG_FOO=<value> on the command line, it gets treated as a single-entry fragment file

- The script now prints the warnings on stderr, and returns non-0 when something is encountered

- Optionally, it'll also return non-0 when a redundant entry is found. I presumed people rely on -r not being a failure so I did this separately

- CONFIG_FOO=n and "# CONFIG_FOO is not set" is now treated the same, and using the former doesn't cause an invalid warning when the results are checked at the end

- Slightly odd things happened if a fragment contains the same option
twice: It'd produce a warning that was malformed. Now just ignore that and use only the latest value of said option.

-Olof