Lines Matching full:make
9 # To see a list of typical targets execute "make help"
28 # turn into vmlinux), we will call a sub make in that other dir, and
39 # Do not use make's built-in rules and variables
77 # Use 'make V=1' to see the full commands
94 # If the user is running make -s (silent mode), suppress echoing of
107 # Use 'make C=1' to enable checking of only re-compiled files.
108 # Use 'make C=2' to enable checking of *all* source files, regardless
125 # Use 'make CLIPPY=1' to enable it.
132 # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
156 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
162 # Use "make O=dir/to/store/output/files/"
166 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
177 # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
193 need-sub-make := 1
204 # Look for make include files relative to root of kernel src
212 # 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
213 # We need to invoke sub-make to avoid implicit rules in the top Makefile.
214 need-sub-make := 1
222 ifeq ($(need-sub-make),1)
224 PHONY += $(MAKECMDGOALS) __sub-make
226 $(filter-out $(this-makefile), $(MAKECMDGOALS)) __all: __sub-make
229 # Invoke a second make in the output directory, passing relevant variables
230 __sub-make:
231 $(Q)$(MAKE) -C $(abs_objtree) -f $(abs_srctree)/Makefile $(MAKECMDGOALS)
233 endif # need-sub-make
236 # We process the rest of the Makefile if this is the final invocation of make
237 ifeq ($(need-sub-make),)
267 # To make sure we do not include .config for any of the *config targets
269 # It is allowed to specify more targets when calling make, including
271 # For example 'make oldconfig all'.
272 # Detect when mixed targets is specified, and make a second invocation
273 # of make so .config is not included in this case either (for *config).
337 # For "make -j clean all", "make -j mrproper defconfig all", etc.
364 $(MAKE) -f $(srctree)/Makefile $$i; \
383 # ARCH can be set during invocation of make:
384 # make ARCH=ia64
386 # The default ARCH is the host where make is executed.
392 # make CROSS_COMPILE=ia64-linux-
483 # Make variables (CC, etc...)
606 export PERL PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
633 $(Q)$(MAKE) $(build)=scripts/basic
637 # Before starting out-of-tree build, make sure the source tree is clean.
639 # separate output directory. This allows convenient use of make in the
655 …echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(orig…
684 # *config targets only - make sure prerequisites are updated, and descend
685 # in scripts/kconfig to make the *config target
689 # used for 'make defconfig'
694 $(Q)$(MAKE) $(build)=scripts/kconfig $@
697 $(Q)$(MAKE) $(build)=scripts/kconfig $@
721 # If we have only "make modules", don't compile built-in objects.
726 # If we have "make <whatever> modules", compile modules
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
772 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
781 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
782 @echo >&2 '*** "make menuconfig" or "make xconfig").'
791 # The syncconfig should be executed only once to make all the targets.
792 # (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
798 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
810 echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
845 # Disable optimizations that make assembler listings hard to read.
879 # Use make W=1 to enable them (see scripts/Makefile.extrawarn)
1023 # In order to make sure new function cast mismatches are not introduced
1059 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
1067 # Prohibit date/time macros, which would make the build non-deterministic
1128 # make the checker run with the right architecture
1159 # makefile but the argument can be passed to make if needed.
1204 "$(MAKE) -f $(srctree)/Makefile autoksyms_recursive"
1229 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o
1236 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux
1239 # make sure no implicit rule kicks in
1254 $(Q)$(MAKE) $(build)=$(@)
1269 $(Q)$(MAKE) $(build)=scripts/mod
1270 $(Q)$(MAKE) $(build)=. prepare
1276 $(Q)$(MAKE) $(build)=rust
1288 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1291 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1366 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1367 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1375 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1381 # If DKMS is installed, 'make install' will eventually recurse back
1409 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1419 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1423 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1430 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1433 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1440 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1452 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1455 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1459 $(Q)$(MAKE) $(build)=$(dtstree)
1462 # INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1474 $(Q)$(MAKE) $(dtbinst)=$(dtstree) dst=$(INSTALL_DTBS_PATH)
1484 $(Q)$(MAKE) $(build)=scripts/dtc
1492 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1496 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings $@
1509 # make sure the checksums are up to date before we record them.
1527 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1537 # 'make modules_install modules_sign' is equivalent to 'make modules_install'.
1567 # make clean Delete most generated files
1569 # make mrproper Delete the current configuration, and all generated files
1570 # make distclean Remove editor backup files, patch leftover files and the like
1572 # Directories & files removed with 'make clean'
1578 # Directories & files removed with 'make mrproper'
1598 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1609 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1634 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1636 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1655 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1673 @echo ' kernelrelease - Output the release version string (use with make -s)'
1674 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1675 @echo ' image_name - Output the image name (use with make -s)'
1730 @echo ' use "make tools/help"'
1731 @echo ' or "cd tools; make help"'
1734 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1737 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1753 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
1754 @echo ' make V=2 [targets] 2 => give reason for rebuild of target'
1755 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1756 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1758 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1759 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1760 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1767 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1791 $(Q)$(MAKE) $(build)=Documentation $@
1807 $(Q)$(MAKE) $(build)=rust $@
1812 $(Q)$(MAKE) $(build)=rust $@
1837 $(Q)$(MAKE) $(build)=rust $@
1844 $(Q)$(MAKE) $(build)=scripts/gdb
1856 # read-only, and no consistency checks are made and the make
1858 # in the basis kernel ordinary make commands (without M=...) must be used.
1886 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
1909 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1921 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1932 @echo >&2 '*** To use the module feature, please run "make menuconfig" etc.'
1944 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1950 # make foo/bar/baz.s
1956 # make foo/bar/baz/
1974 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1976 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1988 # make menuconfig etc.
1992 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
1997 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
2115 endif # need-sub-make