Lines Matching full:modules
142 $(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
710 @if [ -f $(srcroot)/modules.order ]; then \
765 # but instead __all depend on modules
770 __all: modules
781 # If we have only "make modules", don't compile built-in objects.
782 ifeq ($(MAKECMDGOALS),modules)
786 # If we have "make <whatever> modules", compile modules
788 # Just "make" or "make all" shall build modules as well
790 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
825 # This allow a user to issue only 'make' to build a kernel including modules
905 # External modules and some install targets need include/generated/autoconf.h
1276 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1301 # we have to build modules as well to determine what those symbols are.
1320 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1361 # or the modules are listed in "prepare".
1498 # to this Makefile to build and install external modules.
1649 # Modules
1653 # By default, build modules as well
1655 all: modules
1657 # When we're building modules with modversions, we need to consider
1664 # Build modules
1671 modules: vmlinux target
1674 modules: modules_prepare target
1676 # Target to prepare building external modules
1685 # Leave enough to build external modules
1690 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1691 modules.builtin modules.builtin.modinfo modules.nsdeps \
1692 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1710 # clean - Delete most, but leave enough to build external modules
1753 modules-cpio-pkg: usr_gen_init_cpio
1772 @echo ' enough build support to build external modules'
1781 @echo '* modules - Build all modules'
1782 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1791 @echo ' modules_prepare - Set up for building external modules'
1990 # When building external modules the kernel used as basis is considered
1995 # We are always building only modules.
2002 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
2022 @echo ' Building external modules.'
2025 @echo ' modules - default target, build the module(s)'
2032 modules modules_install: __external_modules_error target
2036 @echo >&2 '*** You cannot build or install external modules.'
2044 # Modules
2046 PHONY += modules modules_install modules_sign modules_prepare
2060 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
2067 modules.order: $(build-dir)
2070 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
2072 modules: modpost target
2078 modules_check: modules.order
2079 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
2083 modules: target
2119 # Remove modules.order when done because it is not the real one.
2122 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2127 $(Q)rm -f modules.order
2163 -o -name '*.symtypes' -o -name 'modules.order' \
2186 # FIXME: external modules must not descend into a sub-directory of the kernel
2197 nsdeps: modules
2208 $(if $(CONFIG_MODULES), modules.order) FORCE