Lines Matching full:modules

142 	$(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
713 @if [ -f $(srcroot)/modules.order ]; then \
768 # but instead __all depend on modules
773 __all: modules
784 # If we have only "make modules", don't compile built-in objects.
785 ifeq ($(MAKECMDGOALS),modules)
789 # If we have "make <whatever> modules", compile modules
791 # Just "make" or "make all" shall build modules as well
793 ifneq ($(filter all modules nsdeps compile_commands.json clang-% sbom,$(MAKECMDGOALS)),)
828 # This allow a user to issue only 'make' to build a kernel including modules
902 # External modules and some install targets need include/generated/autoconf.h
1304 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1329 # we have to build modules as well to determine what those symbols are.
1344 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1385 # or the modules are listed in "prepare".
1522 # to this Makefile to build and install external modules.
1677 # Modules
1681 # By default, build modules as well
1683 all: modules
1685 # When we're building modules with modversions, we need to consider
1692 # Build modules
1699 modules: vmlinux
1702 modules: modules_prepare
1704 # Target to prepare building external modules
1713 # Leave enough to build external modules
1718 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1719 modules.builtin modules.builtin.modinfo modules.nsdeps \
1720 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1740 # clean - Delete most, but leave enough to build external modules
1783 modules-cpio-pkg: usr_gen_init_cpio
1802 @echo ' enough build support to build external modules'
1811 @echo '* modules - Build all modules'
1812 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1821 @echo ' modules_prepare - Set up for building external modules'
2025 # When building external modules the kernel used as basis is considered
2030 # We are always building only modules.
2037 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
2057 @echo ' Building external modules.'
2060 @echo ' modules - default target, build the module(s)'
2067 modules modules_install: __external_modules_error
2071 @echo >&2 '*** You cannot build or install external modules.'
2079 # Modules
2081 PHONY += modules modules_install modules_sign modules_prepare
2095 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
2102 modules.order: $(build-dir)
2105 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
2107 modules: modpost
2113 modules_check: modules.order
2114 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
2118 modules:
2154 # Remove modules.order when done because it is not the real one.
2157 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2162 $(Q)rm -f modules.order
2198 -o -name '*.symtypes' -o -name 'modules.order' \
2222 # FIXME: external modules must not descend into a sub-directory of the kernel
2233 nsdeps: modules
2245 $(if $(CONFIG_MODULES),sed 's/\.o$$/.ko/' $(objtree)/modules.order >> "$(tmp-target)";) \
2256 sbom: $(notdir $(KBUILD_IMAGE)) include/generated/autoconf.h $(if $(CONFIG_MODULES),modules modules.order)
2267 $(if $(CONFIG_MODULES), modules.order) FORCE