[Build]: Improve the linux kernel build cache hit rate (#9604)
Improve the Linux kernel build cache hit rate. Current the the hit rate is around 85.8% (based on the last 3 month, 3479 PR builds totally, 494 PR build not hit). We can improve the hit rate up to 95% or better. The Linux kernel build will take really long time, most of the PRs are nothing to do with the kernel change. The remaining cache options should be enough to detect the Linux kernel cache status (dirty or not).
This commit is contained in:
parent
d5d642f348
commit
24b7030fe8
@ -68,6 +68,7 @@
|
||||
# Run the 'touch cache.skip.common' command in the base directory to exclude the common files from caching
|
||||
SONIC_COMMON_FILES_LIST := $(if $(wildcard cache.skip.common),, .platform slave.mk rules/functions Makefile.cache)
|
||||
SONIC_COMMON_FLAGS_LIST := $(CONFIGURED_PLATFORM) \
|
||||
$(CONFIGURED_ARCH) \
|
||||
$(BLDENV) \
|
||||
$(SONIC_DEBUGGING_ON) \
|
||||
$(SONIC_PROFILING_ON) $(SONIC_ENABLE_SYNCD_RPC)
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
SPATH := $($(LINUX_HEADERS_COMMON)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/linux-kernel.mk rules/linux-kernel.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES := rules/linux-kernel.mk rules/linux-kernel.dep
|
||||
SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files))
|
||||
|
||||
DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) \
|
||||
|
Loading…
Reference in New Issue
Block a user