Lines Matching full:make

9 # To see a list of typical targets execute "make help"
15 $(error GNU Make >= 4.0 is required. Your Make version is $(MAKE_VERSION))
32 # turn into vmlinux), we will call a sub make in that other dir, and
47 # Do not use make's built-in rules and variables
74 # $(Q)$(MAKE) $(build)=scripts/basic
80 # Use 'make V=1' to see the full commands
94 # If the user is running make -s (silent mode), suppress echoing of
106 # Use 'make C=1' to enable checking of only re-compiled files.
107 # Use 'make C=2' to enable checking of *all* source files, regardless
124 # Use 'make CLIPPY=1' to enable it.
131 # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
164 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
170 # Use "make O=dir/to/store/output/files/"
174 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
205 need-sub-make := 1
210 # You may end up recursing into __sub-make twice. This is needed due to the
211 # behavior change in GNU Make 4.4.1.
212 need-sub-make := 1
215 ifeq ($(need-sub-make),1)
217 PHONY += $(MAKECMDGOALS) __sub-make
219 $(filter-out $(this-makefile), $(MAKECMDGOALS)) __all: __sub-make
222 # Invoke a second make in the output directory, passing relevant variables
223 __sub-make:
224 $(Q)$(MAKE) $(no-print-directory) -C $(abs_objtree) \
227 else # need-sub-make
229 # We process the rest of the Makefile if this is the final invocation of make
261 # To make sure we do not include .config for any of the *config targets
263 # It is allowed to specify more targets when calling make, including
265 # For example 'make oldconfig all'.
266 # Detect when mixed targets is specified, and make a second invocation
267 # of make so .config is not included in this case either (for *config).
322 # For "make -j clean all", "make -j mrproper defconfig all", etc.
349 $(MAKE) -f $(srctree)/Makefile $$i; \
368 # ARCH can be set during invocation of make:
369 # make ARCH=arm64
371 # The default ARCH is the host where make is executed.
377 # make CROSS_COMPILE=aarch64-linux-gnu-
471 # Make variables (CC, etc...)
589 export PERL PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
613 $(Q)$(MAKE) $(build)=scripts/basic
617 # Before starting out-of-tree build, make sure the source tree is clean.
619 # separate output directory. This allows convenient use of make in the
635 …echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(orig…
666 # *config targets only - make sure prerequisites are updated, and descend
667 # in scripts/kconfig to make the *config target
671 # used for 'make defconfig'
676 $(Q)$(MAKE) $(build)=scripts/kconfig $@
679 $(Q)$(MAKE) $(build)=scripts/kconfig $@
703 # If we have only "make modules", don't compile built-in objects.
708 # If we have "make <whatever> modules", compile modules
710 # Just "make" or "make all" shall build modules as well
735 # This allow a user to issue only 'make' to build a kernel including modules
754 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
763 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
764 @echo >&2 '*** "make menuconfig" or "make xconfig").'
773 # The syncconfig should be executed only once to make all the targets.
774 # (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
780 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
792 echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
823 # Disable optimizations that make assembler listings hard to read.
1000 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
1062 # make the checker run with the right architecture
1093 # makefile but the argument can be passed to make if needed.
1147 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o
1161 # For Make > 4.4, the following simple code will work:
1166 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux
1169 # make sure no implicit rule kicks in
1187 $(Q)$(MAKE) $(build)=$(@)
1202 $(Q)$(MAKE) $(build)=scripts/mod
1203 $(Q)$(MAKE) $(build)=. prepare
1209 $(Q)$(MAKE) $(build)=rust
1221 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1224 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1299 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1300 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1308 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1314 # If DKMS is installed, 'make install' will eventually recurse back
1327 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vdsoinst
1356 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1366 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1370 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1377 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1380 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1387 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1399 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1402 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1406 $(Q)$(MAKE) $(build)=$(dtstree) need-dtbslist=1
1409 # INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1424 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.dtbinst obj=$(dtstree)
1434 $(Q)$(MAKE) $(build)=scripts/dtc
1442 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings $@
1445 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1449 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings $@
1462 # make sure the checksums are up to date before we record them.
1481 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1487 # make clean Delete most generated files
1489 # make mrproper Delete the current configuration, and all generated files
1490 # make distclean Remove editor backup files, patch leftover files and the like
1492 # Directories & files removed with 'make clean'
1499 # Directories & files removed with 'make mrproper'
1519 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1530 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1555 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1557 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1575 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1594 @echo ' kernelrelease - Output the release version string (use with make -s)'
1595 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1596 @echo ' image_name - Output the image name (use with make -s)'
1653 @echo ' use "make tools/help"'
1654 @echo ' or "cd tools; make help"'
1657 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1660 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1676 @echo ' make V=n [targets] 1: verbose build'
1679 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1680 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1682 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1683 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1684 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3,c,e where'
1692 echo ' make CHECK_DTBS=1 [targets] Check all generated dtb files against schema'; \
1696 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1720 $(Q)$(MAKE) $(build)=Documentation $@
1736 $(Q)$(MAKE) $(build)=rust $@
1741 $(Q)$(MAKE) $(build)=rust $@
1774 $(Q)$(MAKE) $(build)=scripts/gdb
1788 # read-only, and no consistency checks are made and the make
1790 # in the basis kernel ordinary make commands (without M=...) must be used.
1818 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
1844 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst \
1849 # 'make modules_install modules_sign' is equivalent to 'make modules_install'.
1869 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1888 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1894 # make foo/bar/baz.s
1900 # make foo/bar/baz/
1918 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1920 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1932 # make menuconfig etc.
1936 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
1941 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1978 $(Q)$(MAKE) $(build)=rust $@
2075 endif # need-sub-make