Lines Matching defs:config

264 # To make sure we do not include .config for any of the *config targets
267 # mixing *config targets and build targets.
270 # of make so .config is not included in this case either (for *config).
275 no-dot-config-targets := $(clean-targets) \
282 no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
284 no-sync-config-targets := $(no-dot-config-targets) %install modules_sign kernelrelease \
288 config-build :=
290 need-config := 1
292 may-sync-config := 1
295 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
296 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),)
297 need-config :=
307 ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),)
308 ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),)
309 may-sync-config :=
314 may-sync-config :=
318 ifneq ($(filter %config,$(MAKECMDGOALS)),)
319 config-build := 1
350 # We're called with mixed targets (*config and build targets).
368 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
369 KERNELRELEASE = $(call read-file, include/config/kernel.release)
425 KCONFIG_CONFIG ?= .config
449 HOSTPKG_CONFIG = pkg-config
628 # Rules shared between *config targets and build targets
651 @if [ -f $(srctree)/.config -o \
652 -d $(srctree)/include/config -o \
669 # and from include/config/auto.conf.cmd to detect the compiler upgrade.
676 # Include this also for config targets because some architectures need
682 ifdef config-build
684 # *config targets only - make sure prerequisites are updated, and descend
685 # in scripts/kconfig to make the *config target
693 config: outputmakefile scripts_basic FORCE
696 %config: outputmakefile scripts_basic FORCE
699 else #!config-build
702 # targets and others. In general all targets except *config targets.
740 ifdef need-config
741 include include/config/auto.conf
770 ifdef need-config
771 ifdef may-sync-config
775 include include/config/auto.conf.cmd
787 # include/generated/ and include/config/. Update them if .config is newer than
788 # include/config/auto.conf (which mirrors .config).
796 %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h %/generated/rustc_cfg: $(KCONFIG_CONFIG)
799 else # !may-sync-config
801 # and include/config/auto.conf but do not care if they are up-to-date.
803 PHONY += include/config/auto.conf
805 include/config/auto.conf:
814 endif # may-sync-config
815 endif # need-config
1177 # Store (new) KERNELRELEASE string in include/config/kernel.release
1178 include/config/kernel.release: FORCE
1196 archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \
1261 include/generated/utsrelease.h: include/config/kernel.release FORCE
1369 $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
1370 $(Q)find $(srctree)/tools/testing/selftests -name config | \
1371 xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config
1393 # include/config/kernel.release is actually needed when installing DTBs because
1396 dtbs_prepare: include/config/kernel.release scripts_dtc
1481 MRPROPER_FILES += include/config include/generated \
1484 .config .config.old .version \
1504 # mrproper - Delete all generated files, including .config
1537 %pkg: include/config/kernel.release FORCE
1551 @echo ' clean - Remove most generated files but keep the config and'
1553 @echo ' mrproper - Remove all generated files + config + various backup files'
1601 @echo ' kselftest-merge - Merge all the config dependencies of'
1602 @echo ' kselftest to existing .config.'
1611 @echo ' (requires kernel .config)'
1613 @echo ' (requires kernel .config; downloads external repos)'
1615 @echo ' (requires kernel .config)'
1657 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1710 # Using the singular to avoid running afoul of `no-dot-config-targets`.
2046 endif # config-build