Lines Matching refs: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
216 # directory of external module to build. Setting M= takes precedence.
254 # mixing *config targets and build targets.
272 config-build :=
273 mixed-build :=
276 single-build :=
296 config-build := 1
298 mixed-build := 1
303 # We cannot build single targets and the others at the same time
305 single-build := 1
307 mixed-build := 1
314 mixed-build := 1
321 mixed-build := 1
325 ifdef mixed-build
327 # We're called with mixed targets (*config and build targets).
341 else # !mixed-build
533 # Rules shared between *config targets and build targets
538 $(Q)$(MAKE) $(build)=scripts/basic
542 # Before starting out-of-tree build, make sure the source tree is clean.
562 { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore
590 ifdef config-build
602 $(Q)$(MAKE) $(build)=scripts/kconfig $@
605 $(Q)$(MAKE) $(build)=scripts/kconfig $@
607 else #!config-build
621 # Decide whether to build built-in, modular, or both.
634 # Just "make" or "make all" shall build modules as well
662 # This allow a user to issue only 'make' to build a kernel including modules
711 # The actual configuration files used during the build are stored in
796 # These warnings generated too much noise in a regular build.
980 # Prohibit date/time macros, which would make the build non-deterministic
1003 # Do not add $(call cc-option,...) below this line. When you build the kernel
1011 KBUILD_LDFLAGS_MODULE += --build-id=sha1
1012 LDFLAGS_vmlinux += --build-id=sha1
1043 # Default kernel image to build when no specific target is given.
1056 # INSTALL_DTBS_PATH specifies a prefix for relocations required by build roots.
1064 # relocations required by build roots. This is not defined in the
1167 build-dirs := $(vmlinux-dirs)
1193 # we have to build modules as well to determine what those symbols are.
1235 # Carefully list dependencies so we do not try to build scripts twice
1239 $(Q)$(MAKE) $(build)=$(@)
1254 $(Q)$(MAKE) $(build)=scripts/mod
1255 $(Q)$(MAKE) $(build)=.
1366 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1395 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1399 $(Q)$(MAKE) $(build)=$(dtstree)
1419 $(Q)$(MAKE) $(build)=scripts/dtc
1427 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1434 # By default, build modules as well
1469 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1481 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
1482 rm -f $(MODLIB)/build ; \
1483 ln -s $(CURDIR) $(MODLIB)/build ; \
1513 @echo >&2 "Then build a kernel with module support enabled."
1522 # Leave enough to build external modules
1545 # clean - Delete most, but leave enough to build external modules
1604 @echo ' enough build support to build external modules'
1621 @echo ' (requires a recent binutils and recent build (System.map))'
1689 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
1696 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1702 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1726 $(Q)$(MAKE) $(build)=Documentation $@
1733 $(Q)$(MAKE) $(build)=scripts/gdb
1763 build-dirs := $(KBUILD_EXTMOD)
1796 @echo ' modules - default target, build the module(s)'
1808 # To build individual files in subdirectories, you can do like this:
1814 # To build only under specific subdirectories, you can do like this:
1818 ifdef single-build
1830 # For the single build of in-tree modules, use a temporary file to avoid
1845 build-dirs := $(foreach d, $(build-dirs), \
1854 # Handle descending into subdirectories listed in $(build-dirs)
1855 # Preset locale variables to speed up the build process. Limit locale
1859 PHONY += descend $(build-dirs)
1860 descend: $(build-dirs)
1861 $(build-dirs): prepare
1862 $(Q)$(MAKE) $(build)=$@ \
1863 single-build=$(if $(filter-out $@/, $(filter $@/%, $(KBUILD_SINGLE_TARGETS))),1) \
2004 endif # config-build
2005 endif # mixed-build