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
108 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
114 # Use "make O=dir/to/store/output/files/"
118 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
129 # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
145 need-sub-make := 1
155 # Look for make include files relative to root of kernel src
158 # once after the Makefile is read. We need to invoke sub-make.
160 need-sub-make := 1
166 # 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
167 # We need to invoke sub-make to avoid implicit rules in the top Makefile.
168 need-sub-make := 1
176 ifeq ($(need-sub-make),1)
178 PHONY += $(MAKECMDGOALS) __sub-make
180 $(filter-out $(this-makefile), $(MAKECMDGOALS)) __all: __sub-make
183 # Invoke a second make in the output directory, passing relevant variables
184 __sub-make:
185 $(Q)$(MAKE) -C $(abs_objtree) -f $(abs_srctree)/Makefile $(MAKECMDGOALS)
187 endif # need-sub-make
190 # We process the rest of the Makefile if this is the final invocation of make
191 ifeq ($(need-sub-make),)
201 # Use 'make C=1' to enable checking of only re-compiled files.
202 # Use 'make C=2' to enable checking of *all* source files, regardless
215 # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
251 # To make sure we do not include .config for any of the *config targets
253 # It is allowed to specify more targets when calling make, including
255 # For example 'make oldconfig all'.
256 # Detect when mixed targets is specified, and make a second invocation
257 # of make so .config is not included in this case either (for *config).
310 # For "make -j clean all", "make -j mrproper defconfig all", etc.
337 $(MAKE) -f $(srctree)/Makefile $$i; \
356 # ARCH can be set during invocation of make:
357 # make ARCH=ia64
359 # The default ARCH is the host where make is executed.
365 # make CROSS_COMPILE=ia64-linux-
399 # Default file for 'make defconfig'. This may be overridden by arch-Makefile.
426 # Make variables (CC, etc...)
511 export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
535 $(Q)$(MAKE) $(build)=scripts/basic
539 # Before starting out-of-tree build, make sure the source tree is clean.
541 # separate output directory. This allows convenient use of make in the
551 …echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(orig…
589 # *config targets only - make sure prerequisites are updated, and descend
590 # in scripts/kconfig to make the *config target
594 # used for 'make defconfig'
599 $(Q)$(MAKE) $(build)=scripts/kconfig $@
602 $(Q)$(MAKE) $(build)=scripts/kconfig $@
624 # If we have only "make modules", don't compile built-in objects.
629 # If we have "make <whatever> modules", compile modules
631 # Just "make" or "make all" shall build modules as well
658 # This allow a user to issue only 'make' to build a kernel including modules
685 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
694 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
695 @echo >&2 '*** "make menuconfig" or "make xconfig").'
704 # The syncconfig should be executed only once to make all the targets.
705 # (Note: use the grouped target '&:' when we bump to GNU Make 4.3)
707 cmd_syncconfig = $(MAKE) -f $(srctree)/Makefile syncconfig
722 echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
748 # Disable optimizations that make assembler listings hard to read.
778 # Use make W=1 to enable them (see scripts/Makefile.extrawarn)
933 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
939 # Prohibit date/time macros, which would make the build non-deterministic
997 # make the checker run with the right architecture
1028 # makefile but the argument can be passed to make if needed.
1150 "$(MAKE) -f $(srctree)/Makefile vmlinux"
1167 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
1175 # make sure no implicit rule kicks in
1190 $(Q)$(MAKE) $(build)=$(@)
1205 $(Q)$(MAKE) $(build)=scripts/mod
1206 $(Q)$(MAKE) $(build)=.
1216 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1219 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1295 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1296 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1309 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1316 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1319 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1326 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1338 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1342 $(Q)$(MAKE) $(build)=$(dtstree)
1352 $(Q)$(MAKE) $(dtbinst)=$(dtstree) dst=$(INSTALL_DTBS_PATH)
1362 $(Q)$(MAKE) $(build)=scripts/dtc
1370 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1383 # make sure the checksums are up to date before we record them.
1396 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1412 $(Q)$(MAKE) $(build)=scripts scripts/module.lds
1431 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1443 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modsign
1455 @echo >&2 "Type 'make config' and enable loadable module support."
1464 # make clean Delete most generated files
1466 # make mrproper Delete the current configuration, and all generated files
1467 # make distclean Remove editor backup files, patch leftover files and the like
1469 # Directories & files removed with 'make clean'
1474 # Directories & files removed with 'make mrproper'
1485 # Directories & files removed with 'make distclean'
1496 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1507 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1531 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1533 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1552 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1570 @echo ' kernelrelease - Output the release version string (use with make -s)'
1571 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1572 @echo ' image_name - Output the image name (use with make -s)'
1609 @echo ' use "make tools/help"'
1610 @echo ' or "cd tools; make help"'
1613 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1616 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1632 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
1633 @echo ' make V=2 [targets] 2 => give reason for rebuild of target'
1634 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1635 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK'
1637 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1638 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1639 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1645 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1669 $(Q)$(MAKE) $(build)=Documentation $@
1676 $(Q)$(MAKE) $(build)=scripts/gdb
1688 # read-only, and no consistency checks are made and the make
1690 # in the basis kernel ordinary make commands (without M=...) must
1695 # make M=dir clean Delete all automatically generated files
1696 # make M=dir modules Make all modules in specified dir
1697 # make M=dir Same as 'make M=dir modules'
1698 # make M=dir modules_install
1709 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1721 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1737 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
1753 # make foo/bar/baz.s
1759 # make foo/bar/baz/
1781 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1800 # make menuconfig etc.
1805 $(Q)$(MAKE) $(build)=$@ \
1812 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1927 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1931 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1948 endif # need-sub-make