Lines Matching defs:config
258 # To make sure we do not include .config for any of the *config targets
261 # mixing *config targets and build targets.
264 # of make so .config is not included in this case either (for *config).
270 no-dot-config-targets := $(clean-targets) \
275 no-sync-config-targets := $(no-dot-config-targets) %install kernelrelease \
279 config-build :=
281 need-config := 1
282 may-sync-config := 1
285 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
286 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),)
287 need-config :=
291 ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),)
292 ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),)
293 may-sync-config :=
298 may-sync-config :=
302 ifneq ($(filter %config,$(MAKECMDGOALS)),)
303 config-build := 1
334 # We're called with mixed targets (*config and build targets).
352 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
353 KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
404 KCONFIG_CONFIG ?= .config
542 # Rules shared between *config targets and build targets
559 $(Q)if [ -f $(srctree)/.config -o \
560 -d $(srctree)/include/config -o \
581 # and from include/config/auto.conf.cmd to detect the compiler upgrade.
584 ifdef config-build
586 # *config targets only - make sure prerequisites are updated, and descend
587 # in scripts/kconfig to make the *config target
595 config: outputmakefile scripts_basic FORCE
598 %config: outputmakefile scripts_basic FORCE
601 else #!config-build
604 # targets and others. In general all targets except *config targets.
640 ifdef need-config
641 include include/config/auto.conf
690 ifdef need-config
691 ifdef may-sync-config
695 include include/config/auto.conf.cmd
707 # include/generated/ and include/config/. Update them if .config is newer than
708 # include/config/auto.conf (which mirrors .config).
716 %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h: $(KCONFIG_CONFIG)
719 else # !may-sync-config
721 # and include/config/auto.conf but do not care if they are up-to-date.
723 PHONY += include/config/auto.conf
725 include/config/auto.conf:
734 endif # may-sync-config
735 endif # need-config
1120 HOST_LIBELF_LIBS = $(shell pkg-config libelf --libs 2>/dev/null || echo -lelf)
1200 # (this can be evaluated only once include/config/auto.conf has been included)
1236 # Store (new) KERNELRELEASE string in include/config/kernel.release
1237 include/config/kernel.release: FORCE
1255 archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \
1326 include/generated/utsrelease.h: include/config/kernel.release FORCE
1386 $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
1387 $(Q)find $(srctree)/tools/testing/selftests -name config | \
1388 xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config
1400 %.dtb: include/config/kernel.release scripts_dtc
1404 dtbs: include/config/kernel.release scripts_dtc
1512 MRPROPER_FILES += include/config include/generated \
1515 .config .config.old .version \
1537 # mrproper - Delete all generated files, including .config
1569 %pkg: include/config/kernel.release FORCE
1583 @echo ' clean - Remove most generated files but keep the config and'
1585 @echo ' mrproper - Remove all generated files + config + various backup files'
1634 @echo ' kselftest-merge - Merge all the config dependencies of'
1635 @echo ' kselftest to existing .config.'
1671 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1987 endif # config-build