diff --git a/include/target.mk b/include/target.mk index 15230eebc2..fe46550858 100644 --- a/include/target.mk +++ b/include/target.mk @@ -216,7 +216,8 @@ __linux_confcmd = $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1) LINUX_CONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_KCONFIG_LIST)) LINUX_RECONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_RECONFIG_LIST)) -LINUX_RECONF_DIFF = $(SCRIPT_DIR)/kconfig.pl - '>' $(call __linux_confcmd,$(filter-out $(LINUX_RECONFIG_TARGET),$(LINUX_RECONFIG_LIST))) $(1) $(GENERIC_PLATFORM_DIR)/config-filter +LINUX_RECONF_DIFF = $(SCRIPT_DIR)/kconfig.pl - '>' $(call __linux_confcmd,$(filter-out $(LINUX_RECONFIG_TARGET),$(LINUX_RECONFIG_LIST))) $(1) \ + $(if $(wildcard $(GENERIC_PLATFORM_DIR)/config-filter), $(GENERIC_PLATFORM_DIR)/config-filter, $(TOPDIR)/target/linux/generic/config-filter) ifeq ($(DUMP),1) BuildTarget=$(BuildTargets/DumpCurrent)