Lines Matching defs:build

12 # expect to learn how to build the kernel reading this file.
25 # We are using a recursive build, so we need to do a little thinking
63 # Most of build commands in Kbuild start with "cmd_". You can optionally define
74 # $(Q)$(MAKE) $(build)=scripts/basic
140 # directory of external module to build. Setting M= takes precedence.
267 # mixing *config targets and build targets.
281 # is an exception where build artifacts may be updated. This must be fixed.
288 config-build :=
289 mixed-build :=
293 single-build :=
319 config-build := 1
321 mixed-build := 1
326 # We cannot build single targets and the others at the same time
328 single-build := 1
330 mixed-build := 1
337 mixed-build := 1
344 mixed-build := 1
348 ifdef mixed-build
350 # We're called with mixed targets (*config and build targets).
364 else # !mixed-build
628 # Rules shared between *config targets and build targets
633 $(Q)$(MAKE) $(build)=scripts/basic
637 # Before starting out-of-tree build, make sure the source tree is clean.
663 { echo "# this is build directory, ignore it"; echo "*"; } > .gitignore
682 ifdef config-build
694 $(Q)$(MAKE) $(build)=scripts/kconfig $@
697 $(Q)$(MAKE) $(build)=scripts/kconfig $@
699 else #!config-build
715 # Decide whether to build built-in, modular, or both.
728 # Just "make" or "make all" shall build modules as well
753 # This allow a user to issue only 'make' to build a kernel including modules
786 # The actual configuration files used during the build are stored in
1025 # Do not add $(call cc-option,...) below this line. When you build the kernel
1034 KBUILD_LDFLAGS_MODULE += --build-id=sha1
1035 LDFLAGS_vmlinux += --build-id=sha1
1070 # Default kernel image to build when no specific target is given.
1083 # INSTALL_DTBS_PATH specifies a prefix for relocations required by build roots.
1091 # relocations required by build roots. This is not defined in the
1106 build-dir := .
1129 # we have to build modules as well to determine what those symbols are.
1182 # Carefully list dependencies so we do not try to build scripts twice
1186 $(Q)$(MAKE) $(build)=$(@)
1201 $(Q)$(MAKE) $(build)=scripts/mod
1202 $(Q)$(MAKE) $(build)=. prepare
1208 $(Q)$(MAKE) $(build)=rust
1307 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1314 # to this Makefile to build and install external modules.
1384 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1387 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1391 $(Q)$(MAKE) $(build)=$(dtstree)
1419 $(Q)$(MAKE) $(build)=scripts/dtc
1427 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1431 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings $@
1438 # By default, build modules as well
1463 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1470 # Leave enough to build external modules
1492 # clean - Delete most, but leave enough to build external modules
1552 @echo ' enough build support to build external modules'
1568 @echo ' (requires a recent binutils and recent build (System.map))'
1654 @echo ' make V=n [targets] 1: verbose build'
1662 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1673 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1697 $(Q)$(MAKE) $(build)=Documentation $@
1713 $(Q)$(MAKE) $(build)=rust $@
1718 $(Q)$(MAKE) $(build)=rust $@
1751 $(Q)$(MAKE) $(build)=scripts/gdb
1773 build-dir := $(KBUILD_EXTMOD)
1787 echo >&2 "warning: the compiler differs from the one used to build the kernel"; \
1797 @echo ' modules - default target, build the module(s)'
1808 @echo >&2 '*** You cannot build or install external modules.'
1839 $(MODORDER): $(build-dir)
1863 modpost: $(if $(single-build),, $(if $(KBUILD_BUILTIN), vmlinux.o)) \
1869 # To build individual files in subdirectories, you can do like this:
1875 # To build only under specific subdirectories, you can do like this:
1879 ifdef single-build
1888 $(single-no-ko): $(build-dir)
1901 single-goals := $(addprefix $(build-dir)/, $(single-no-ko))
1907 # Preset locale variables to speed up the build process. Limit locale
1911 PHONY += $(build-dir)
1912 $(build-dir): prepare
1913 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
1952 $(Q)$(MAKE) $(build)=rust $@
2046 endif # config-build
2047 endif # mixed-build