Lines Matching full:modules

142 	$(error building multiple external modules is not supported))
195 # source directory or kernel build directory), external modules
687 @if [ -f $(srcroot)/modules.order ]; then \
742 # but instead __all depend on modules
747 __all: modules
758 # If we have only "make modules", don't compile built-in objects.
759 ifeq ($(MAKECMDGOALS),modules)
763 # If we have "make <whatever> modules", compile modules
765 # Just "make" or "make all" shall build modules as well
767 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
790 # This allow a user to issue only 'make' to build a kernel including modules
837 # External modules and some install targets need include/generated/autoconf.h
1165 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1195 # we have to build modules as well to determine what those symbols are.
1214 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1255 # or the modules are listed in "prepare".
1385 # to this Makefile to build and install external modules.
1521 # Modules
1525 # By default, build modules as well
1527 all: modules
1529 # When we're building modules with modversions, we need to consider
1536 # Build modules
1543 modules: vmlinux target
1546 modules: modules_prepare target
1548 # Target to prepare building external modules
1557 # Leave enough to build external modules
1562 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1563 modules.builtin modules.builtin.modinfo modules.nsdeps \
1564 modules.builtin.ranges vmlinux.o.map \
1581 # clean - Delete most, but leave enough to build external modules
1641 @echo ' enough build support to build external modules'
1650 @echo '* modules - Build all modules'
1651 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1660 @echo ' modules_prepare - Set up for building external modules'
1847 # When building external modules the kernel used as basis is considered
1852 # We are always building only modules.
1859 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
1873 @echo ' Building external modules.'
1876 @echo ' modules - default target, build the module(s)'
1883 modules modules_install: __external_modules_error target
1887 @echo >&2 '*** You cannot build or install external modules.'
1895 # Modules
1897 PHONY += modules modules_install modules_sign modules_prepare
1911 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
1918 modules.order: $(build-dir)
1921 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
1923 modules: modpost target
1929 modules_check: modules.order
1930 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
1934 modules: target
1970 # Remove modules.order when done because it is not the real one.
1973 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
1978 $(Q)rm -f modules.order
2014 -o -name '*.symtypes' -o -name 'modules.order' \
2037 # FIXME: external modules must not descend into a sub-directory of the kernel
2048 nsdeps: modules
2059 $(if $(CONFIG_MODULES), modules.order) FORCE