mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-14 22:52:09 +00:00
build: filter out more autogenerated kernel config options
Define wildcard patterns for filtering in target/linux/generic/config-filter Preparation for supporting newer kernels Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
25c5cf48bd
commit
031074c676
@ -170,9 +170,7 @@ define BuildKernel
|
|||||||
) \
|
) \
|
||||||
YACC=$(STAGING_DIR_HOST)/bin/bison \
|
YACC=$(STAGING_DIR_HOST)/bin/bison \
|
||||||
$$@
|
$$@
|
||||||
$(LINUX_RECONF_DIFF) $(LINUX_DIR)/.config | \
|
$(call LINUX_RECONF_DIFF,$(LINUX_DIR)/.config) > $(LINUX_RECONFIG_TARGET)
|
||||||
grep -vE '(CONFIG_CC_(HAS_ASM_GOTO|IS_GCC|IS_CLANG)|GCC_VERSION)=' \
|
|
||||||
> $(LINUX_RECONFIG_TARGET)
|
|
||||||
|
|
||||||
install: $(LINUX_DIR)/.image
|
install: $(LINUX_DIR)/.image
|
||||||
+$(MAKE) -C image compile install TARGET_BUILD=
|
+$(MAKE) -C image compile install TARGET_BUILD=
|
||||||
|
@ -185,11 +185,11 @@ ifeq ($(CONFIG_TARGET),env)
|
|||||||
LINUX_RECONFIG_TARGET = $(TOPDIR)/env/kernel-config
|
LINUX_RECONFIG_TARGET = $(TOPDIR)/env/kernel-config
|
||||||
endif
|
endif
|
||||||
|
|
||||||
__linux_confcmd = $(SCRIPT_DIR)/kconfig.pl $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1)
|
__linux_confcmd = $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1)
|
||||||
|
|
||||||
LINUX_CONF_CMD = $(call __linux_confcmd,$(LINUX_KCONFIG_LIST),)
|
LINUX_CONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_KCONFIG_LIST))
|
||||||
LINUX_RECONF_CMD = $(call __linux_confcmd,$(LINUX_RECONFIG_LIST),)
|
LINUX_RECONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_RECONFIG_LIST))
|
||||||
LINUX_RECONF_DIFF = $(call __linux_confcmd,$(filter-out $(LINUX_RECONFIG_TARGET),$(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
|
||||||
|
|
||||||
ifeq ($(DUMP),1)
|
ifeq ($(DUMP),1)
|
||||||
BuildTarget=$(BuildTargets/DumpCurrent)
|
BuildTarget=$(BuildTargets/DumpCurrent)
|
||||||
|
7
target/linux/generic/config-filter
Normal file
7
target/linux/generic/config-filter
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# CONFIG_ARCH_(ENABLE|HAS|HAVE|INLINE|SUPPORTS|USE|WANT)_.* is not set
|
||||||
|
# CONFIG_AS_.* is not set
|
||||||
|
# CONFIG_CC_(CAN|HAS|IS|VERSION)_.* is not set
|
||||||
|
# CONFIG_LD_.* is not set
|
||||||
|
# CONFIG_GCC_VERSION is not set
|
||||||
|
# CONFIG_INLINE_.* is not set
|
||||||
|
# CONFIG_HAVE_(?!(ARCH_TIMER|TCM|SMP)).* is not set
|
Loading…
x
Reference in New Issue
Block a user