Lines Matching full:modules
142 $(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
699 @if [ -f $(srcroot)/modules.order ]; then \
755 # but instead __all depend on modules
760 __all: modules
771 # If we have only "make modules", don't compile built-in objects.
772 ifeq ($(MAKECMDGOALS),modules)
776 # If we have "make <whatever> modules", compile modules
778 # Just "make" or "make all" shall build modules as well
780 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
803 # This allow a user to issue only 'make' to build a kernel including modules
869 # External modules and some install targets need include/generated/autoconf.h
1238 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1263 # we have to build modules as well to determine what those symbols are.
1282 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1323 # or the modules are listed in "prepare".
1460 # to this Makefile to build and install external modules.
1611 # Modules
1615 # By default, build modules as well
1617 all: modules
1619 # When we're building modules with modversions, we need to consider
1626 # Build modules
1633 modules: vmlinux target
1636 modules: modules_prepare target
1638 # Target to prepare building external modules
1647 # Leave enough to build external modules
1652 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1653 modules.builtin modules.builtin.modinfo modules.nsdeps \
1654 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1672 # clean - Delete most, but leave enough to build external modules
1715 modules-cpio-pkg: usr_gen_init_cpio
1734 @echo ' enough build support to build external modules'
1743 @echo '* modules - Build all modules'
1744 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1753 @echo ' modules_prepare - Set up for building external modules'
1952 # When building external modules the kernel used as basis is considered
1957 # We are always building only modules.
1964 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
1984 @echo ' Building external modules.'
1987 @echo ' modules - default target, build the module(s)'
1994 modules modules_install: __external_modules_error target
1998 @echo >&2 '*** You cannot build or install external modules.'
2006 # Modules
2008 PHONY += modules modules_install modules_sign modules_prepare
2022 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
2029 modules.order: $(build-dir)
2032 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
2034 modules: modpost target
2040 modules_check: modules.order
2041 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
2045 modules: target
2081 # Remove modules.order when done because it is not the real one.
2084 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2089 $(Q)rm -f modules.order
2125 -o -name '*.symtypes' -o -name 'modules.order' \
2148 # FIXME: external modules must not descend into a sub-directory of the kernel
2159 nsdeps: modules
2170 $(if $(CONFIG_MODULES), modules.order) FORCE