Lines Matching full:modules
142 $(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
719 @if [ -f $(srcroot)/modules.order ]; then \
774 # but instead __all depend on modules
779 __all: modules
790 # If we have only "make modules", don't compile built-in objects.
791 ifeq ($(MAKECMDGOALS),modules)
795 # If we have "make <whatever> modules", compile modules
797 # Just "make" or "make all" shall build modules as well
799 ifneq ($(filter all modules nsdeps compile_commands.json clang-% sbom,$(MAKECMDGOALS)),)
834 # This allow a user to issue only 'make' to build a kernel including modules
908 # External modules and some install targets need include/generated/autoconf.h
1230 # groups when linking modules. The option is available from ld.bfd 2.29 and
1319 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1344 # we have to build modules as well to determine what those symbols are.
1400 # or the modules are listed in "prepare".
1537 # to this Makefile to build and install external modules.
1692 # Modules
1696 # By default, build modules as well
1698 all: modules
1700 # When we're building modules with modversions, we need to consider
1707 # Build modules
1714 modules: vmlinux target
1717 modules: modules_prepare target
1719 # Target to prepare building external modules
1728 # Leave enough to build external modules
1733 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1734 modules.builtin modules.builtin.modinfo modules.nsdeps \
1735 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1755 # clean - Delete most, but leave enough to build external modules
1798 modules-cpio-pkg: usr_gen_init_cpio
1817 @echo ' enough build support to build external modules'
1826 @echo '* modules - Build all modules'
1827 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1836 @echo ' modules_prepare - Set up for building external modules'
2040 # When building external modules the kernel used as basis is considered
2045 # We are always building only modules.
2052 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
2072 @echo ' Building external modules.'
2075 @echo ' modules - default target, build the module(s)'
2082 modules modules_install: __external_modules_error target
2086 @echo >&2 '*** You cannot build or install external modules.'
2094 # Modules
2096 PHONY += modules modules_install modules_sign modules_prepare
2110 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
2117 modules.order: $(build-dir)
2120 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
2122 modules: modpost target
2128 modules_check: modules.order
2129 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
2133 modules: target
2169 # Remove modules.order when done because it is not the real one.
2172 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2177 $(Q)rm -f modules.order
2213 -o -name '*.symtypes' -o -name 'modules.order' \
2237 # FIXME: external modules must not descend into a sub-directory of the kernel
2248 nsdeps: modules
2260 … $(if $(CONFIG_MODULES),sed 's/\.o$$/.ko/' $(objtree)/modules.order >> "$(tmp-target)";) \
2271 sbom: $(notdir $(KBUILD_IMAGE)) include/generated/autoconf.h $(if $(CONFIG_MODULES),modules modules…
2282 $(if $(CONFIG_MODULES), modules.order) FORCE