Lines Matching full:modules

142 	$(error building multiple external modules is not supported))
195 # source directory or kernel build directory), external modules
686 @if [ -f $(srcroot)/modules.order ]; then \
741 # but instead __all depend on modules
746 __all: modules
757 # If we have only "make modules", don't compile built-in objects.
758 ifeq ($(MAKECMDGOALS),modules)
762 # If we have "make <whatever> modules", compile modules
764 # Just "make" or "make all" shall build modules as well
766 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
789 # This allow a user to issue only 'make' to build a kernel including modules
836 # External modules and some install targets need include/generated/autoconf.h
1167 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1197 # we have to build modules as well to determine what those symbols are.
1216 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1257 # or the modules are listed in "prepare".
1387 # to this Makefile to build and install external modules.
1523 # Modules
1527 # By default, build modules as well
1529 all: modules
1531 # When we're building modules with modversions, we need to consider
1538 # Build modules
1545 modules: vmlinux target
1548 modules: modules_prepare target
1550 # Target to prepare building external modules
1559 # Leave enough to build external modules
1564 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1565 modules.builtin modules.builtin.modinfo modules.nsdeps \
1566 modules.builtin.ranges vmlinux.o.map \
1583 # clean - Delete most, but leave enough to build external modules
1643 @echo ' enough build support to build external modules'
1652 @echo '* modules - Build all modules'
1653 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1662 @echo ' modules_prepare - Set up for building external modules'
1849 # When building external modules the kernel used as basis is considered
1854 # We are always building only modules.
1861 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
1875 @echo ' Building external modules.'
1878 @echo ' modules - default target, build the module(s)'
1885 modules modules_install: __external_modules_error target
1889 @echo >&2 '*** You cannot build or install external modules.'
1897 # Modules
1899 PHONY += modules modules_install modules_sign modules_prepare
1913 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
1920 modules.order: $(build-dir)
1923 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
1925 modules: modpost target
1931 modules_check: modules.order
1932 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
1936 modules: target
1972 # Remove modules.order when done because it is not the real one.
1975 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
1980 $(Q)rm -f modules.order
2016 -o -name '*.symtypes' -o -name 'modules.order' \
2039 # FIXME: external modules must not descend into a sub-directory of the kernel
2050 nsdeps: modules
2061 $(if $(CONFIG_MODULES), modules.order) FORCE