24b7030fe8
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).
15 lines
550 B
Plaintext
15 lines
550 B
Plaintext
|
|
SPATH := $($(LINUX_HEADERS_COMMON)_SRC_PATH)
|
|
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) \
|
|
$(KERNEL_PROCURE_METHOD) $(KERNEL_CACHE_PATH)
|
|
|
|
$(LINUX_HEADERS_COMMON)_CACHE_MODE := GIT_CONTENT_SHA
|
|
$(LINUX_HEADERS_COMMON)_DEP_FLAGS := $(DEP_FLAGS)
|
|
$(LINUX_HEADERS_COMMON)_DEP_FILES := $(DEP_FILES)
|
|
$(LINUX_HEADERS_COMMON)_SMDEP_FILES := $(SMDEP_FILES)
|
|
$(LINUX_HEADERS_COMMON)_SMDEP_PATHS := $(SPATH)
|
|
|