]> git.baikalelectronics.ru Git - kernel.git/commit
kheaders: Do not regenerate archive if config is not changed
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Wed, 15 May 2019 21:35:52 +0000 (17:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:16:01 +0000 (20:16 +0200)
commitbc4a04f15e48b261eec37736a33f28561550096d
tree174c5f2906d6276236d378bb52ab31eb657baa8e
parentb40d0c6e8a3311e8f33ab431e0489fdd3ce8ae83
kheaders: Do not regenerate archive if config is not changed

Linus reported an issue that doing an allmodconfig was causing the
kheaders archive to be regenerated even though the config is the same.
This patch fixes the issue by ignoring the config-related header files
for "knowing when to regenerate based on timestamps".  Instead, if the
CONFIG_X_Y option really changes, then we there are the
include/config/X/Y.h which will already tells us "if a config really
changed". So we don't really need these files for regeneration detection
anyway, and ignoring them fixes Linus's issue.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/gen_kheaders.sh