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).
345 # For "make -j clean all", "make -j mrproper defconfig all", etc.
372 $(MAKE) -f $(srctree)/Makefile $$i; \
391 # ARCH can be set during invocation of make:
392 # make ARCH=arm64
394 # The default ARCH is the host where make is executed.
400 # make CROSS_COMPILE=aarch64-linux-gnu-
512 # Make variables (CC, etc...)
634 export PERL PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
658 $(Q)$(MAKE) $(build)=scripts/basic
662 # Before starting out-of-tree build, make sure the source tree is clean.
664 # separate output directory. This allows convenient use of make in the
692 …echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(orig…
701 echo >&2 "*** Please run 'make -C $(abs_srctree) M=$(realpath $(srcroot)) clean'"; \
733 # *config targets only - make sure prerequisites are updated, and descend
734 # in scripts/kconfig to make the *config target
738 # used for 'make defconfig'
743 $(Q)$(MAKE) $(build)=scripts/kconfig $@
746 $(Q)$(MAKE) $(build)=scripts/kconfig $@
770 # If we have only "make modules", don't compile built-in objects.
775 # If we have "make <whatever> modules", compile modules
777 # Just "make" or "make all" shall build modules as well
802 # This allow a user to issue only 'make' to build a kernel including modules
821 # make UT=1
840 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
849 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
850 @echo >&2 '*** "make menuconfig" or "make xconfig").'
859 # The syncconfig should be executed only once to make all the targets.
860 # (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
866 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
882 @echo >&2 '*** Run "make oldconfig && make prepare" on kernel source to fix it.'
914 # Disable optimizations that make assembler listings hard to read.
1102 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
1192 # make the checker run with the right architecture
1231 # makefile but the argument can be passed to make if needed.
1276 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o
1290 # For Make > 4.4, the following simple code will work:
1295 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux
1298 # make sure no implicit rule kicks in
1316 $(Q)$(MAKE) $(build)=$(@)
1332 $(Q)$(MAKE) $(build)=scripts/mod
1333 $(Q)$(MAKE) $(build)=. prepare
1339 $(Q)$(MAKE) $(build)=rust
1351 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1354 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1429 $(Q)$(MAKE) -f $(srctree)/Makefile HEADER_ARCH= SRCARCH=$(HEADER_ARCH) headers
1431 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1432 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1441 $(Q)$(MAKE) $(build)=usr usr/gen_init_cpio
1445 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1449 $(Q)$(MAKE) $(build)=scripts scripts/gen_packed_field_checks
1455 # If DKMS is installed, 'make install' will eventually recurse back
1468 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vdsoinst
1497 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1506 $(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) clean
1511 $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/
1515 $(Q)$(MAKE) O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*
1522 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1525 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1532 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1544 $(Q)$(MAKE) $(build)=$(dtbindingtree) \
1550 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1553 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1557 $(Q)$(MAKE) $(build)=$(dtstree) need-dtbslist=1
1560 # INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1575 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.dtbinst obj=$(dtstree)
1589 $(Q)$(MAKE) $(build)=scripts/dtc
1597 $(Q)$(MAKE) $(build)=$(dtbindingtree) $@
1600 $(Q)$(MAKE) $(build)=$(dtbindingtree)
1604 $(Q)$(MAKE) $(build)=$(dtbindingtree) $@
1617 # make sure the checksums are up to date before we record them.
1636 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1642 # make clean Delete most generated files
1644 # make mrproper Delete the current configuration, and all generated files
1645 # make distclean Remove editor backup files, patch leftover files and the like
1647 # Directories & files removed with 'make clean'
1655 # Directories & files removed with 'make mrproper'
1676 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1687 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1714 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1716 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1734 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1753 @echo ' kernelrelease - Output the release version string (use with make -s)'
1754 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1755 @echo ' image_name - Output the image name (use with make -s)'
1812 @echo ' use "make tools/help"'
1813 @echo ' or "cd tools; make help"'
1816 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1819 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1835 @echo ' make V=n [targets] 1: verbose build'
1838 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1839 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1841 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1842 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1843 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3,c,e where'
1850 @echo ' make UT=1 [targets] Warn if a tracepoint is defined but not used.'
1853 echo ' make CHECK_DTBS=1 [targets] Check all generated dtb files against schema'; \
1857 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1883 $(Q)$(MAKE) $(build)=Documentation $@
1899 $(Q)$(MAKE) $(build)=rust $@
1904 $(Q)$(MAKE) $(build)=rust $@
1935 $(Q)$(MAKE) $(build)=scripts/gdb
1949 # read-only, and no consistency checks are made and the make
1951 # in the basis kernel ordinary make commands (without M=...) must be used.
1981 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
2007 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst \
2012 # 'make modules_install modules_sign' is equivalent to 'make modules_install'.
2032 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
2051 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
2057 # make foo/bar/baz.s
2063 # make foo/bar/baz/
2081 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
2083 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
2097 # make menuconfig etc.
2101 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
2106 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
2145 $(Q)$(MAKE) $(build)=$(objtree)/rust src=$(srctree)/rust $@
2147 $(Q)$(MAKE) $(build)=rust $@
2242 endif # need-sub-make