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)
commit1457dc9ed8da871fbbc0a2ebdaed0405eeeed0cf
tree174c5f2906d6276236d378bb52ab31eb657baa8e
parentf7b101d33046a837c2aa4526cef28a3c785d7af2
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