diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-10-20 22:23:36 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-10-22 22:49:42 +0200 |
commit | 8201c362d788b11f85a7a9c28fa16382d830d6e0 (patch) | |
tree | 3f4d9593870306f8783e829c5a308e58b7b7a81a /package/libxml-parser-perl | |
parent | 879255ad1ead6a63b66c7341a053fe91683cddd0 (diff) | |
download | buildroot-8201c362d788b11f85a7a9c28fa16382d830d6e0.tar.gz buildroot-8201c362d788b11f85a7a9c28fa16382d830d6e0.zip |
infra/pkg-kconfig: fix saving the config file
When saving (aka updating) the configuration file of a kconfig package,
a subsequent call to "make" would rebuild the package, even though the
configuration did not actually change.
It took quite a while to understand why. But the reason is so simple and
obvious, when you think about it:
- $(@D)/.config depends on the config file $(BUSYBOX_CONFIG_FILE)
- busybox-update-config then copies $(@D)/.config back to the config
file $(BUSYBOX_CONFIG_FILE)
- so the config file is newer than $(@D)/.config
So, in the next run, pkg-kconfig believes that it has to rebuild
busybox. Bummer... :-/
So, the fix is very trivial, and just requires asking "cp" to preserve
timestamps, so the dependency does not kick in at the next run.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libxml-parser-perl')
0 files changed, 0 insertions, 0 deletions