Lines Matching full:make
9 # To see a list of typical targets execute "make help"
25 # turn into vmlinux), we will call a sub make in that other dir, and
36 # Do not use make's built-in rules and variables
73 # Use 'make V=1' to see the full commands
90 # If the user is running make -s (silent mode), suppress echoing of
104 # cd /dir/to/store/output/files; make -f /dir/to/kernel/source/Makefile
110 # Use "make O=dir/to/store/output/files/"
114 # export KBUILD_OUTPUT=dir/to/store/output/files/; make
125 # Make's built-in functions such as $(abspath ...), $(realpath ...) cannot
141 need-sub-make := 1
151 # Look for make include files relative to root of kernel src
154 # once after the Makefile is read. We need to invoke sub-make.
156 need-sub-make := 1
160 # 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
161 # We need to invoke sub-make to avoid implicit rules in the top Makefile.
162 need-sub-make := 1
170 ifeq ($(need-sub-make),1)
172 PHONY += $(MAKECMDGOALS) sub-make
174 $(filter-out _all sub-make $(lastword $(MAKEFILE_LIST)), $(MAKECMDGOALS)) _all: sub-make
177 # Invoke a second make in the output directory, passing relevant variables
178 sub-make:
179 $(Q)$(MAKE) -C $(abs_objtree) -f $(abs_srctree)/Makefile $(MAKECMDGOALS)
181 endif # need-sub-make
184 # We process the rest of the Makefile if this is the final invocation of make
185 ifeq ($(need-sub-make),)
195 # Use 'make C=1' to enable checking of only re-compiled files.
196 # Use 'make C=2' to enable checking of *all* source files, regardless
209 # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
242 # To make sure we do not include .config for any of the *config targets
244 # It is allowed to specify more targets when calling make, including
246 # For example 'make oldconfig all'.
247 # Detect when mixed targets is specified, and make a second invocation
248 # of make so .config is not included in this case either (for *config).
301 # For "make -j clean all", "make -j mrproper defconfig all", etc.
328 $(MAKE) -f $(srctree)/Makefile $$i; \
347 # ARCH can be set during invocation of make:
348 # make ARCH=ia64
350 # The default ARCH is the host where make is executed.
356 # make CROSS_COMPILE=ia64-linux-
406 # Make variables (CC, etc...)
476 export PERL PYTHON PYTHON2 PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
500 $(Q)$(MAKE) $(build)=scripts/basic
504 # Before starting out-of-tree build, make sure the source tree is clean.
506 # separate output directory. This allows convenient use of make in the
516 …echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(orig…
554 # *config targets only - make sure prerequisites are updated, and descend
555 # in scripts/kconfig to make the *config target
559 # used for 'make defconfig'
564 $(Q)$(MAKE) $(build)=scripts/kconfig $@
567 $(Q)$(MAKE) $(build)=scripts/kconfig $@
589 # If we have only "make modules", don't compile built-in objects.
592 # make sure the checksums are up to date before we record them.
598 # If we have "make <whatever> modules", compile modules
600 # Just "make" or "make all" shall build modules as well
630 # This allow a user to issue only 'make' to build a kernel including modules
657 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
666 @echo >&2 '*** Please run some configurator (e.g. "make oldconfig" or'
667 @echo >&2 '*** "make menuconfig" or "make xconfig").'
676 # The syncconfig should be executed only once to make all the targets.
678 $(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
690 echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
722 # Disable optimizations that make assembler listings hard to read.
754 # Use make W=1 to enable them (see scripts/Makefile.extrawarn)
876 # Make sure -fstack-check isn't enabled (like gentoo apparently did)
882 # Prohibit date/time macros, which would make the build non-deterministic
920 # make the checker run with the right architecture
951 # makefile but the argument can be passed to make if needed.
1053 "$(MAKE) -f $(srctree)/Makefile vmlinux"
1074 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
1082 # make sure no implicit rule kicks in
1097 $(Q)$(MAKE) $(build)=$(@)
1111 $(Q)$(MAKE) $(build)=scripts/mod
1112 $(Q)$(MAKE) $(build)=.
1122 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1125 $(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1196 $(Q)$(MAKE) $(hdr-inst)=include/uapi
1197 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
1201 $(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1
1202 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi HDRCHECK=1
1214 $(Q)$(MAKE) $(build)=scripts scripts/unifdef
1221 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests run_tests
1224 $(Q)$(MAKE) -C $(srctree)/tools/testing/selftests $*
1231 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
1243 $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@
1247 $(Q)$(MAKE) $(build)=$(dtstree)
1253 $(Q)$(MAKE) $(dtbinst)=$(dtstree)
1263 $(Q)$(MAKE) $(build)=scripts/dtc
1266 $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings
1285 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1298 # here to make it self-healing in case somebody accidentally removes it.
1300 $(Q)$(MAKE) $(modbuiltin)=$(patsubst _modbuiltin_%,%,$@)
1323 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1335 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modsign
1347 @echo >&2 "Type 'make config' and enable loadable module support."
1356 # make clean Delete most generated files
1358 # make mrproper Delete the current configuration, and all generated files
1359 # make distclean Remove editor backup files, patch leftover files and the like
1361 # Directories & files removed with 'make clean'
1365 # Directories & files removed with 'make mrproper'
1376 # Directories & files removed with 'make distclean'
1389 $(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
1401 $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
1428 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1430 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.package $@
1449 @$(MAKE) -f $(srctree)/scripts/kconfig/Makefile help
1467 @echo ' kernelrelease - Output the release version string (use with make -s)'
1468 @echo ' kernelversion - Output the version stored in Makefile (use with make -s)'
1469 @echo ' image_name - Output the image name (use with make -s)'
1503 @echo ' use "make tools/help"'
1504 @echo ' or "cd tools; make help"'
1507 @$(MAKE) -f $(srctree)/scripts/Makefile.package help
1510 @$(MAKE) -f $(srctree)/Documentation/Makefile dochelp
1526 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
1527 @echo ' make V=2 [targets] 2 => give reason for rebuild of target'
1528 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1529 @echo ' make C=1 [targets] Check re-compiled c source with $$CHECK (sparse by default)'
1530 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1531 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections'
1532 @echo ' make W=n [targets] Enable extra build checks, n=1,2,3 where'
1538 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1562 $(Q)$(MAKE) $(build)=Documentation $@
1569 $(Q)$(MAKE) $(build)=scripts/gdb
1581 # read-only, and no consistency checks are made and the make
1583 # in the basis kernel ordinary make commands (without M=...) must
1588 # make M=dir clean Delete all automatically generated files
1589 # make M=dir modules Make all modules in specified dir
1590 # make M=dir Same as 'make M=dir modules'
1591 # make M=dir modules_install
1609 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1618 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1629 @echo >&2 '"$(MAKE) /" is no longer supported. Please use "$(MAKE) ./" instead.'
1634 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'
1647 # make menuconfig etc.
1652 $(Q)$(MAKE) $(build)=$@ single-build=$(single-build) need-builtin=1 need-modorder=1
1657 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1691 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost nsdeps
1750 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1754 …$(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objt…
1760 # make foo/bar/baz.s
1766 # make foo/bar/baz/
1790 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1800 # FIXME Should go into a make.lib or something
1821 endif # need-sub-make