android_kernel_asus_sm8350/include
Masahiro Yamada eed9382d52 UPSTREAM: kbuild: ensure full rebuild when the compiler is updated
Commit 21c54b7747 ("kconfig: show compiler version text in the top
comment") added the environment variable, CC_VERSION_TEXT in the comment
of the top Kconfig file. It can detect the compiler update, and invoke
the syncconfig because all environment variables referenced in Kconfig
files are recorded in include/config/auto.conf.cmd

This commit makes it a CONFIG option in order to ensure the full rebuild
when the compiler is updated.

This works like follows:

include/config/kconfig.h contains "CONFIG_CC_VERSION_TEXT" in the comment
block.

The top Makefile specifies "-include $(srctree)/include/linux/kconfig.h"
to guarantee it is included from all kernel source files.

fixdep parses every source file and all headers included from it,
searching for words prefixed with "CONFIG_". Then, fixdep finds
CONFIG_CC_VERSION_TEXT in include/config/kconfig.h and adds
include/config/cc/version/text.h into every .*.cmd file.

When the compiler is updated, syncconfig is invoked because init/Kconfig
contains the reference to the environment variable CC_VERTION_TEXT.
CONFIG_CC_VERSION_TEXT is updated to the new version string, and
include/config/cc/version/text.h is touched.

In the next rebuild, Make will rebuild every files since the timestamp
of include/config/cc/version/text.h is newer than that of target.

Bug: 168274246

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 8b59cd81dc5e724eaea283fa6006985891c7bff4)
Signed-off-by: Mars Lin <marslin@google.com>
Change-Id: Ie52bb8e33b95d0e97998024d28c0d8d7caf8aa59
2020-09-24 10:02:38 +00:00
..
acpi x86: ACPI: fix CPU hotplug deadlock 2020-04-23 10:36:38 +02:00
asm-generic This is the 5.4.59 stable release 2020-08-19 08:40:57 +02:00
clocksource
crypto Revert "ANDROID: Revert: Merge 5.4.60 into android11-5.4" 2020-08-23 13:12:51 +02:00
drm ANDROID: include/linux: add low power mode and fps to notifier 2020-08-12 15:43:27 +00:00
dt-bindings FROMLIST: clk: sunxi-ng: add support for the Allwinner A100 CCU 2020-08-27 17:11:05 +08:00
keys KEYS: Don't write out to userspace while holding key semaphore 2020-04-23 10:36:45 +02:00
kvm
linux UPSTREAM: kbuild: ensure full rebuild when the compiler is updated 2020-09-24 10:02:38 +00:00
math-emu
media This is the 5.4.33 stable release 2020-04-17 11:26:58 +02:00
misc
net UPSTREAM: udp: Support UDP fraglist GRO/GSO. 2020-09-09 08:48:03 +00:00
pcmcia
ras
rdma This is the 5.4.56 stable release 2020-08-05 11:19:16 +02:00
scsi ANDROID: GKI: scsi: add Android ABI padding to some structures 2020-04-23 19:26:27 +02:00
soc
sound Revert "Revert "Revert "ANDROID: ALSA: jack: Update supported ja..." 2020-08-10 22:29:15 +00:00
target scsi: target: fix hang when multiple threads try to destroy the same iscsi session 2020-04-21 09:05:04 +02:00
trace ANDROID: vendor_hooks: Add hooks for debugging exception context 2020-09-15 18:02:49 +00:00
uapi ANDROID: Incremental fs: fix magic compatibility again 2020-08-26 14:05:41 +00:00
vdso UPSTREAM: vdso: Fix clocksource.h macro detection 2020-05-03 18:56:52 +00:00
video
xen