]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
Make savedefconfig save to a configured file.
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 5 Feb 2013 07:16:02 +0000 (07:16 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 5 Feb 2013 20:43:51 +0000 (21:43 +0100)
commit1ed4996346c6504241c7a2c7541fefc914790219
tree9bb9783b406ea8ea76c915bd5ec2f2ff17d3eec1
parentf026d3642d9ea3bcbc85f2f1ab302a3e35eaa0de
Make savedefconfig save to a configured file.

Store BR2_DEFCONFIG in .config, and use it to update the original input
defconfig file after updating the configuration.  When a config is
created by using the BR2_DEFCONFIG=... option, this is saved in the
.config file; later runs of savedefconfig will update that same location.
It is also possible to configure this place in the interactive
configuration.

The BR2_DEFCONFIG value itself is not saved into the generated
defconfig, since Kconfig considers it at its default. This is
intentional, to avoid hard-coding an absolute path in the defconfig.
It will anyway be set again when the defconfig is used with the
'make BR2_DEFCONFIG=... defconfig' command.

As a side-effect of this change, the *config options have been moved out
of the BR2_HAVE_DOT_CONFIG condition.  This doesn't make any functional
difference, because the .config is still not read for the *config targets.
However, the defconfig and savedefconfig targets do need to include
.config now, which makes them slightly slower.

[Peter: slightly tweak help text]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Config.in
Makefile
docs/manual/customize-store.txt