Lines Matching full:make

9 # To see a list of typical targets execute "make help"
15 $(error GNU Make >= 3.82 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
96 # make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
114 # Use 'make C=1' to enable checking of only re-compiled files.
115 # Use 'make C=2' to enable checking of *all* source files, regardless
132 # Use 'make CLIPPY=1' to enable it.
139 # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
163 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
169 # Use "make O=dir/to/store/output/files/"
173 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
184 # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
199 # 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
200 # We need to invoke sub-make to avoid implicit rules in the top Makefile.
201 need-sub-make := 1
215 need-sub-make := 1
220 # You may end up recursing into __sub-make twice. This is needed due to the
221 # behavior change in GNU Make 4.4.1.
222 need-sub-make := 1
225 ifeq ($(need-sub-make),1)
227 PHONY += $(MAKECMDGOALS) __sub-make
229 $(filter-out $(this-makefile), $(MAKECMDGOALS)) __all: __sub-make
232 # Invoke a second make in the output directory, passing relevant variables
233 __sub-make:
234 $(Q)$(MAKE) $(no-print-directory) -C $(abs_objtree) \
237 else # need-sub-make
239 # We process the rest of the Makefile if this is the final invocation of make
264 # To make sure we do not include .config for any of the *config targets
266 # It is allowed to specify more targets when calling make, including
268 # For example 'make oldconfig all'.
269 # Detect when mixed targets is specified, and make a second invocation
270 # of make so .config is not included in this case either (for *config).
334 # For "make -j clean all", "make -j mrproper defconfig all", etc.
361 $(MAKE) -f $(srctree)/Makefile $$i; \
380 # ARCH can be set during invocation of make:
381 # make ARCH=ia64
383 # The default ARCH is the host where make is executed.
389 # make CROSS_COMPILE=ia64-linux-
480 # 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, $(origin ARCH)), ARCH=$(ARCH)) mrproper'"; \
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."; \
841 # Disable optimizations that make assembler listings hard to read.
999 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
1060 # make the checker run with the right architecture
1091 # makefile but the argument can be passed to make if needed.
1145 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o
1159 # For Make > 4.4, the following simple code will work:
1164 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux
1167 # make sure no implicit rule kicks in
1185 $(Q)$(MAKE) $(build)=$(@)
1200 $(Q)$(MAKE) $(build)=scripts/mod
1201 $(Q)$(MAKE) $(build)=. prepare
1207 $(Q)$(MAKE) $(build)=rust
1219 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1222 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1297 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1298 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1306 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1312 # If DKMS is installed, 'make install' will eventually recurse back
1325 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vdsoinst
1348 $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
1353 $(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/
1357 $(Q)$(MAKE) LDFLAGS= O=$(abspath $(objtree)) subdir=tools -C $(srctree)/tools/ $*
1364 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1367 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1374 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1386 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1389 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1393 $(Q)$(MAKE) $(build)=$(dtstree)
1396 # INSTALL_DTBS_PATH contains $(KERNELRELEASE). However, we do not want to make
1411 $(Q)$(MAKE) $(dtbinst)=$(dtstree) dst=$(INSTALL_DTBS_PATH)
1421 $(Q)$(MAKE) $(build)=scripts/dtc
1429 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1433 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings $@
1446 # make sure the checksums are up to date before we record them.
1465 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1471 # make clean Delete most generated files
1473 # make mrproper Delete the current configuration, and all generated files
1474 # make distclean Remove editor backup files, patch leftover files and the like
1476 # Directories & files removed with 'make clean'
1482 # Directories & files removed with 'make mrproper'
1502 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1513 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1538 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1540 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1558 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1577 @echo ' kernelrelease - Output the release version string (use with make -s)'
1578 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1579 @echo ' image_name - Output the image name (use with make -s)'
1634 @echo ' use "make tools/help"'
1635 @echo ' or "cd tools; make help"'
1638 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1641 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1657 @echo ' make V=n [targets] 1: verbose build'
1660 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1661 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1663 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1664 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1665 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1672 echo ' make CHECK_DTBS=1 [targets] Check all generated dtb files against schema'; \
1676 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1700 $(Q)$(MAKE) $(build)=Documentation $@
1716 $(Q)$(MAKE) $(build)=rust $@
1721 $(Q)$(MAKE) $(build)=rust $@
1754 $(Q)$(MAKE) $(build)=scripts/gdb
1768 # read-only, and no consistency checks are made and the make
1770 # in the basis kernel ordinary make commands (without M=...) must be used.
1798 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
1824 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst \
1829 # 'make modules_install modules_sign' is equivalent to 'make modules_install'.
1849 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1868 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1874 # make foo/bar/baz.s
1880 # make foo/bar/baz/
1898 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1900 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modfinal
1912 # make menuconfig etc.
1916 $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
1921 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1955 $(Q)$(MAKE) $(build)=rust $@
2051 endif # need-sub-make