Lines Matching refs:config
251 # To make sure we do not include .config for any of the *config targets
254 # mixing *config targets and build targets.
257 # of make so .config is not included in this case either (for *config).
263 no-dot-config-targets := $(clean-targets) \
268 no-sync-config-targets := $(no-dot-config-targets) %install kernelrelease \
272 config-build :=
274 need-config := 1
275 may-sync-config := 1
278 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
279 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),)
280 need-config :=
284 ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),)
285 ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),)
286 may-sync-config :=
291 may-sync-config :=
295 ifneq ($(filter %config,$(MAKECMDGOALS)),)
296 config-build := 1
327 # We're called with mixed targets (*config and build targets).
345 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
346 KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
397 KCONFIG_CONFIG ?= .config
533 # Rules shared between *config targets and build targets
550 $(Q)if [ -f $(srctree)/.config -o \
551 -d $(srctree)/include/config -o \
587 # and from include/config/auto.conf.cmd to detect the compiler upgrade.
590 ifdef config-build
592 # *config targets only - make sure prerequisites are updated, and descend
593 # in scripts/kconfig to make the *config target
601 config: outputmakefile scripts_basic FORCE
604 %config: outputmakefile scripts_basic FORCE
607 else #!config-build
610 # targets and others. In general all targets except *config targets.
646 ifdef need-config
647 include include/config/auto.conf
695 ifdef need-config
696 ifdef may-sync-config
700 include include/config/auto.conf.cmd
712 # include/generated/ and include/config/. Update them if .config is newer than
713 # include/config/auto.conf (which mirrors .config).
721 %/config/auto.conf %/config/auto.conf.cmd %/generated/autoconf.h: $(KCONFIG_CONFIG)
724 else # !may-sync-config
726 # and include/config/auto.conf but do not care if they are up-to-date.
728 PHONY += include/config/auto.conf
730 include/config/auto.conf:
739 endif # may-sync-config
740 endif # need-config
1112 HOST_LIBELF_LIBS = $(shell pkg-config libelf --libs 2>/dev/null || echo -lelf)
1194 # (this can be evaluated only once include/config/auto.conf has been included)
1230 # Store (new) KERNELRELEASE string in include/config/kernel.release
1231 include/config/kernel.release: FORCE
1249 archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \
1320 include/generated/utsrelease.h: include/config/kernel.release FORCE
1380 $(if $(wildcard $(objtree)/.config),, $(error No .config exists, config your kernel first!))
1381 $(Q)find $(srctree)/tools/testing/selftests -name config | \
1382 xargs $(srctree)/scripts/kconfig/merge_config.sh -m $(objtree)/.config
1394 %.dtb: include/config/kernel.release scripts_dtc
1398 dtbs: include/config/kernel.release scripts_dtc
1512 @echo >&2 "Type 'make config' and enable loadable module support."
1532 MRPROPER_FILES += include/config include/generated \
1535 .config .config.old .version \
1557 # mrproper - Delete all generated files, including .config
1589 %pkg: include/config/kernel.release FORCE
1603 @echo ' clean - Remove most generated files but keep the config and'
1605 @echo ' mrproper - Remove all generated files + config + various backup files'
1654 @echo ' kselftest-merge - Merge all the config dependencies of'
1655 @echo ' kselftest to existing .config.'
1691 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
2004 endif # config-build