Lines Matching defs:build

12 # expect to learn how to build the kernel reading this file.
21 # We are using a recursive build, so we need to do a little thinking
223 # directory of external module to build. Setting M= takes precedence.
261 # mixing *config targets and build targets.
279 config-build :=
280 mixed-build :=
283 single-build :=
303 config-build := 1
305 mixed-build := 1
310 # We cannot build single targets and the others at the same time
312 single-build := 1
314 mixed-build := 1
321 mixed-build := 1
328 mixed-build := 1
332 ifdef mixed-build
334 # We're called with mixed targets (*config and build targets).
348 else # !mixed-build
542 # Rules shared between *config targets and build targets
547 $(Q)$(MAKE) $(build)=scripts/basic
551 # Before starting out-of-tree build, make sure the source tree is clean.
571 { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore
584 ifdef config-build
596 $(Q)$(MAKE) $(build)=scripts/kconfig $@
599 $(Q)$(MAKE) $(build)=scripts/kconfig $@
601 else #!config-build
615 # Decide whether to build built-in, modular, or both.
628 # Just "make" or "make all" shall build modules as well
656 # This allow a user to issue only 'make' to build a kernel including modules
706 # The actual configuration files used during the build are stored in
791 # These warnings generated too much noise in a regular build.
987 # Prohibit date/time macros, which would make the build non-deterministic
1010 # Do not add $(call cc-option,...) below this line. When you build the kernel
1018 KBUILD_LDFLAGS_MODULE += --build-id=sha1
1019 LDFLAGS_vmlinux += --build-id=sha1
1051 # Default kernel image to build when no specific target is given.
1064 # INSTALL_DTBS_PATH specifies a prefix for relocations required by build roots.
1072 # relocations required by build roots. This is not defined in the
1171 build-dirs := $(vmlinux-dirs)
1174 subdir-modorder := $(addsuffix /modules.order, $(build-dirs))
1199 # we have to build modules as well to determine what those symbols are.
1241 # Carefully list dependencies so we do not try to build scripts twice
1245 $(Q)$(MAKE) $(build)=$(@)
1260 $(Q)$(MAKE) $(build)=scripts/mod
1261 $(Q)$(MAKE) $(build)=.
1372 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1401 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1405 $(Q)$(MAKE) $(build)=$(dtstree)
1425 $(Q)$(MAKE) $(build)=scripts/dtc
1433 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1440 # By default, build modules as well
1474 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1483 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
1484 rm -f $(MODLIB)/build ; \
1485 ln -s $(CURDIR) $(MODLIB)/build ; \
1502 # Leave enough to build external modules
1525 # clean - Delete most, but leave enough to build external modules
1584 @echo ' enough build support to build external modules'
1601 @echo ' (requires a recent binutils and recent build (System.map))'
1669 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
1676 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1682 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1706 $(Q)$(MAKE) $(build)=Documentation $@
1713 $(Q)$(MAKE) $(build)=scripts/gdb
1743 build-dirs := $(KBUILD_EXTMOD)
1759 @echo ' modules - default target, build the module(s)'
1806 # To build individual files in subdirectories, you can do like this:
1812 # To build only under specific subdirectories, you can do like this:
1816 ifdef single-build
1837 build-dirs := $(foreach d, $(build-dirs), \
1842 # Handle descending into subdirectories listed in $(build-dirs)
1843 # Preset locale variables to speed up the build process. Limit locale
1847 PHONY += descend $(build-dirs)
1848 descend: $(build-dirs)
1849 $(build-dirs): prepare
1850 $(Q)$(MAKE) $(build)=$@ \
1851 single-build=$(if $(filter-out $@/, $(filter $@/%, $(KBUILD_SINGLE_TARGETS))),1) \
1987 endif # config-build
1988 endif # mixed-build