Two or more arguments are always expected. Show usage and exit if
given less.
Signed-off-by: Olof Johansson <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Viresh noticed when using merge_config.sh that a source softlink
was being created even when he didn't specify the -O option.
The problem arises due to the previous commit 409f117e2d
which added the -O option. Basically if -O is not specified,
we still pass '-O=.' to the make command, which then generates
a source softlink to ./
This patch adds an extra check so if there is no -O specified
to merge_config.sh, we don't pass one on to make.
Cc: Zhangfei Gao <[email protected]>
Cc: Bruce Ashfield <[email protected]>
Acked-by: Darren Hart <[email protected]>
Reported-and-tested-by: Viresh Kumar <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Provide a -O option to specify dir to put generated .config
Then merge_config.sh does not need to be copied to target dir,
for easy re-usage in other script
Signed-off-by: Zhangfei Gao <[email protected]>
Tested-by: Jon Medhurst (Tixy) <[email protected]>
Acked-by: John Stultz <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Provide a -r option to display when fragments contain redundant
options. This is really useful when breaking apart a config into
fragments, as well as cleaning up older fragments.
Signed-off-by: John Stultz <[email protected]>
Acked-by: Darren Hart <[email protected]>
Acked-by: Bruce Ashfield <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Somehow the merge_config.sh script didn't get its execute bit
set when it was merged. Fix this.
Signed-off-by: John Stultz <[email protected]>
Acked-by: Darren Hart <[email protected]>
Acked-by: Bruce Ashfield <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Take the first config fragment and use it verbatim as the initial config
set. This avoids running the verification loop for the first file, as
nothing has actually been merged at this point. This significantly
increases performance for large config fragments.
Signed-off-by: Josh Boyer <[email protected]>
Acked-by: John Stultz <[email protected]>
Acked-by: Darren Hart <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
Arnaud Lacombe pointed out the final checking that the requested configs
were included in the final .config was broken.
The example was that if you had a fragment that disabled
CONFIG_DECOMPRESS_GZIP applied to a normal defconfig, there would be no
final warning that CONFIG_DECOMPRESS_GZIP was acutally set in the final
.config.
This bug was introduced by me in v3 of the original patch, and the
following patch reverts the invalid change.
Signed-off-by: John Stultz <[email protected]>
Reported-by: Arnaud Lacombe <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: Michal Marek <[email protected]>
Cc: Arnaud Lacombe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
The SIGHUP SIGINT and SIGTERM names caused failures when running
merge_config.sh with the dash shell. Dropping the "SIG" component makes
the script work in both bash and dash.
Signed-off-by: Darren Hart <[email protected]>
Acked-by: John Stultz <[email protected]>
Cc: Michal Marek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
After noticing almost every distro has their own method of managing config
fragments, I went looking at some best practices, and wanted to try to
consolidate some of the different approaches so this fairly simple
infrastructure can be shared (and new distros/build systems don't have to
implement yet another config fragment merge script).
This script is most influenced by the Windriver tools used in the Yocto
Project, reusing some portions found there.
This script merges multiple config fragments, warning on any overridden
values. It then sets any unspecified values to their default, then
finally checks to make sure no specified value was dropped due to
unsatisfied dependencies.
I'm sure this implementation won't work for everyone, and I expect it will
need to evolve to adapt for various use cases. But I think its a
reasonable starting point.
Cc: Sam Ravnborg <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Reinhard Tartler <[email protected]>
Cc: Dmitry Fink <[email protected]>
Cc: Darren Hart <[email protected]>
Cc: Eric B Munson <[email protected]>
Cc: Bruce Ashfield <[email protected]>
Cc: Michal Marek <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Michal Marek <[email protected]>