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
165 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
171 # Use "make O=dir/to/store/output/files/"
175 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
191 # If Make is invoked from the kernel directory (either kernel
197 # Make changes the working directory.
229 need-sub-make := 1
234 # You may end up recursing into __sub-make twice. This is needed due to the
235 # behavior change in GNU Make 4.4.1.
236 need-sub-make := 1
239 ifeq ($(need-sub-make),1)
241 PHONY += $(MAKECMDGOALS) __sub-make
243 $(filter-out $(this-makefile), $(MAKECMDGOALS)) __all: __sub-make
246 # Invoke a second make in the output directory, passing relevant variables
247 __sub-make:
248 $(Q)$(MAKE) $(no-print-directory) -C $(abs_output) \
251 else # need-sub-make
253 # We process the rest of the Makefile if this is the final invocation of make
283 # To make sure we do not include .config for any of the *config targets
285 # It is allowed to specify more targets when calling make, including
287 # For example 'make oldconfig all'.
288 # Detect when mixed targets is specified, and make a second invocation
289 # of make so .config is not included in this case either (for *config).
348 # For "make -j clean all", "make -j mrproper defconfig all", etc.
375 $(MAKE) -f $(srctree)/Makefile $$i; \
394 # ARCH can be set during invocation of make:
395 # make ARCH=arm64
397 # The default ARCH is the host where make is executed.
403 # make CROSS_COMPILE=aarch64-linux-gnu-
527 # Make variables (CC, etc...)
574 # The kernel image is compressed with pigz, on the job slots make has free,
657 export PERL PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
683 $(Q)$(MAKE) $(build)=scripts/basic
687 # Before starting out-of-tree build, make sure the source tree is clean.
689 # separate output directory. This allows convenient use of make in the
720 echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(origin ARCH)), ARCH=$(ARCH)) mrproper'"; \
729 echo >&2 "*** Please run 'make -C $(abs_srctree) M=$(realpath $(srcroot)) clean'"; \
760 # *config targets only - make sure prerequisites are updated, and descend
761 # in scripts/kconfig to make the *config target
765 # used for 'make defconfig'
770 $(Q)$(MAKE) $(build)=scripts/kconfig $@
773 $(Q)$(MAKE) $(build)=scripts/kconfig $@
797 # If we have only "make modules", don't compile built-in objects.
802 # If we have "make <whatever> modules", compile modules
804 # Just "make" or "make all" shall build modules as well
841 # This allow a user to issue only 'make' to build a kernel including modules
854 # make UT=1
887 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
896 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
897 @echo >&2 '*** "make menuconfig" or "make xconfig").'
906 # The syncconfig should be executed only once to make all the targets.
907 # (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
913 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
929 @echo >&2 '*** Run "make oldconfig && make prepare" on kernel source to fix it.'
961 # Disable optimizations that make assembler listings hard to read.
1176 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
1280 # make the checker run with the right architecture
1319 # makefile but the argument can be passed to make if needed.
1353 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_a
1360 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o
1374 # For Make > 4.4, the following simple code will work:
1379 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux
1382 # make sure no implicit rule kicks in
1400 $(Q)$(MAKE) $(build)=$(@)
1416 $(Q)$(MAKE) $(build)=scripts/mod
1417 $(Q)$(MAKE) $(build)=. prepare
1423 $(Q)$(MAKE) $(build)=rust
1435 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1438 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1513 $(Q)$(MAKE) -f $(srctree)/Makefile HEADER_ARCH= SRCARCH=$(HEADER_ARCH) headers
1515 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1516 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1525 $(Q)$(MAKE) $(build)=scripts scripts/gen_init_cpio
1529 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1533 $(Q)$(MAKE) $(build)=scripts scripts/gen_packed_field_checks
1549 $(Q)$(MAKE) $(header-check-targets)
1559 # If DKMS is installed, 'make install' will eventually recurse back
1572 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vdsoinst
1600 $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ \
1617 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1626 $(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) $(patsubst objtool_%,%,$@)
1635 $(Q)$(MAKE) -sC $(srctree)/tools/bootconfig O=$(bootconfig_O) clean
1640 $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/
1644 $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*
1651 $(Q)unset sub_make_done; $(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1654 $(Q)unset sub_make_done; $(MAKE) -C $(srctree)/tools/testing/selftests $*
1661 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1673 $(Q)$(MAKE) $(build)=$(dtbindingtree) \
1679 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1682 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1686 $(Q)$(MAKE) $(build)=$(dtstree) need-dtbslist=1
1689 # INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1704 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.dtbinst obj=$(dtstree)
1718 $(Q)$(MAKE) $(build)=scripts/dtc
1726 $(Q)$(MAKE) $(build)=$(dtbindingtree) $@
1729 $(Q)$(MAKE) $(build)=$(dtbindingtree)
1733 $(Q)$(MAKE) $(build)=$(dtbindingtree) $@
1750 # make sure the checksums are up to date before we record them.
1769 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1775 # make clean Delete most generated files
1777 # make mrproper Delete the current configuration, and all generated files
1778 # make distclean Remove editor backup files, patch leftover files and the like
1780 # Directories & files removed with 'make clean'
1790 # Directories & files removed with 'make mrproper'
1812 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1823 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1850 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1852 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1870 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1889 @echo ' kernelrelease - Output the release version string (use with make -s)'
1890 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1891 @echo ' image_name - Output the image name (use with make -s)'
1953 @echo ' use "make tools/help"'
1954 @echo ' or "cd tools; make help"'
1957 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1960 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1976 @echo ' make V=n [targets] 1: verbose build'
1979 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1980 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1982 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1983 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1984 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3,c,e where'
1991 @echo ' make UT=1 [targets] Warn if a tracepoint is defined but not used.'
1994 echo ' make CHECK_DTBS=1 [targets] Check all generated dtb files against schema'; \
1998 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
2024 $(Q)$(MAKE) $(build)=Documentation $@
2040 $(Q)$(MAKE) $(build)=rust $@
2045 $(Q)$(MAKE) $(build)=rust $@
2078 $(Q)$(MAKE) $(build)=scripts/gdb
2092 # read-only, and no consistency checks are made and the make
2094 # in the basis kernel ordinary make commands (without M=...) must be used.
2124 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
2150 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst \
2155 # 'make modules_install modules_sign' is equivalent to 'make modules_install'.
2175 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
2194 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
2200 # make foo/bar/baz.s
2206 # make foo/bar/baz/
2224 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
2226 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
2240 # make menuconfig etc.
2244 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
2249 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
2290 $(Q)$(MAKE) $(build)=$(objtree)/rust src=$(srctree)/rust $@
2292 $(Q)$(MAKE) $(build)=rust $@
2413 endif # need-sub-make