Lines Matching refs:modules
222 $(error building multiple external modules is not supported))
615 # but instead __all depend on modules
620 __all: modules
629 # If we have only "make modules", don't compile built-in objects.
630 ifeq ($(MAKECMDGOALS),modules)
634 # If we have "make <whatever> modules", compile modules
636 # Just "make" or "make all" shall build modules as well
638 ifneq ($(filter all modules nsdeps %compile_commands.json clang-%,$(MAKECMDGOALS)),)
664 # This allow a user to issue only 'make' to build a kernel including modules
728 # External modules and some install targets need include/generated/autoconf.h
1080 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1084 # INSTALL_MOD_STRIP, if defined, will cause modules to be
1161 export MODORDER := $(extmod-prefix)modules.order
1162 export MODULES_NSDEPS := $(extmod-prefix)modules.nsdeps
1178 subdir-modorder := $(addsuffix /modules.order, $(build-dirs))
1203 # we have to build modules as well to determine what those symbols are.
1207 autoksyms_recursive: descend modules.order
1252 # or the modules are listed in "prepare".
1444 # By default, build modules as well
1446 all: modules
1448 # When we're building modules with modversions, we need to consider
1455 # Build modules
1458 # duplicate lines in modules.order files. Those are removed
1461 PHONY += modules
1462 modules: $(if $(KBUILD_BUILTIN),vmlinux) modules_check modules_prepare
1465 modules_check: modules.order
1466 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
1470 modules.order: $(subdir-modorder) FORCE
1473 targets += modules.order
1475 # Target to prepare building external modules
1491 @sed 's:^:kernel/:' modules.order > $(MODLIB)/modules.order
1492 @cp -f modules.builtin $(MODLIB)/
1493 @cp -f $(objtree)/modules.builtin.modinfo $(MODLIB)/
1506 # Leave enough to build external modules
1511 CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
1512 modules.builtin modules.builtin.modinfo modules.nsdeps \
1529 # clean - Delete most, but leave enough to build external modules
1588 @echo ' enough build support to build external modules'
1598 @echo '* modules - Build all modules'
1599 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1607 @echo ' modules_prepare - Set up for building external modules'
1728 # When building external modules the kernel used as basis is considered
1735 # modules.
1737 # make M=dir modules Make all modules in specified dir
1738 # make M=dir Same as 'make M=dir modules'
1740 # Install the modules built in the module directory
1743 # We are always building only modules.
1755 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers $(KBUILD_EXTMOD)/modules.nsdeps \
1760 @echo ' Building external modules.'
1763 @echo ' modules - default target, build the module(s)'
1776 PHONY += modules modules_install
1780 modules: $(MODORDER)
1796 modules modules_install:
1798 @echo >&2 '*** The present kernel configuration has modules disabled.'
1874 -o -name '*.symtypes' -o -name 'modules.order' \
1894 nsdeps: modules