Lines Matching full:modules

142 	$(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
698 @if [ -f $(srcroot)/modules.order ]; then \
754 # but instead __all depend on modules
759 __all: modules
770 # If we have only "make modules", don't compile built-in objects.
771 ifeq ($(MAKECMDGOALS),modules)
775 # If we have "make <whatever> modules", compile modules
777 # Just "make" or "make all" shall build modules as well
779 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
802 # This allow a user to issue only 'make' to build a kernel including modules
868 # External modules and some install targets need include/generated/autoconf.h
1234 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1259 # we have to build modules as well to determine what those symbols are.
1278 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1319 # or the modules are listed in "prepare".
1456 # to this Makefile to build and install external modules.
1607 # Modules
1611 # By default, build modules as well
1613 all: modules
1615 # When we're building modules with modversions, we need to consider
1622 # Build modules
1629 modules: vmlinux
1632 modules: modules_prepare
1634 # Target to prepare building external modules
1643 # Leave enough to build external modules
1648 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1649 modules.builtin modules.builtin.modinfo modules.nsdeps \
1650 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1668 # clean - Delete most, but leave enough to build external modules
1711 modules-cpio-pkg: usr_gen_init_cpio
1730 @echo ' enough build support to build external modules'
1739 @echo '* modules - Build all modules'
1740 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1749 @echo ' modules_prepare - Set up for building external modules'
1948 # When building external modules the kernel used as basis is considered
1953 # We are always building only modules.
1960 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
1980 @echo ' Building external modules.'
1983 @echo ' modules - default target, build the module(s)'
1990 modules modules_install: __external_modules_error
1994 @echo >&2 '*** You cannot build or install external modules.'
2002 # Modules
2004 PHONY += modules modules_install modules_sign modules_prepare
2018 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
2025 modules.order: $(build-dir)
2028 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
2030 modules: modpost
2036 modules_check: modules.order
2037 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
2041 modules:
2077 # Remove modules.order when done because it is not the real one.
2080 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2085 $(Q)rm -f modules.order
2121 -o -name '*.symtypes' -o -name 'modules.order' \
2144 # FIXME: external modules must not descend into a sub-directory of the kernel
2155 nsdeps: modules
2166 $(if $(CONFIG_MODULES), modules.order) FORCE