diff --git a/Makefile.cache b/Makefile.cache index 9772471749..2a47c9427e 100644 --- a/Makefile.cache +++ b/Makefile.cache @@ -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) diff --git a/rules/linux-kernel.dep b/rules/linux-kernel.dep index 6063ddded9..4706f56afb 100644 --- a/rules/linux-kernel.dep +++ b/rules/linux-kernel.dep @@ -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) \