Lines Matching refs:modules
142 $(error building multiple external modules is not supported))
192 # source directory or kernel build directory), external modules
695 @if [ -f $(srcroot)/modules.order ]; then \
750 # but instead __all depend on modules
755 __all: modules
766 # If we have only "make modules", don't compile built-in objects.
767 ifeq ($(MAKECMDGOALS),modules)
771 # If we have "make <whatever> modules", compile modules
773 # Just "make" or "make all" shall build modules as well
775 ifneq ($(filter all modules nsdeps compile_commands.json clang-%,$(MAKECMDGOALS)),)
798 # This allow a user to issue only 'make' to build a kernel including modules
864 # External modules and some install targets need include/generated/autoconf.h
1215 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
1240 # we have to build modules as well to determine what those symbols are.
1259 vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o
1300 # or the modules are listed in "prepare".
1433 # to this Makefile to build and install external modules.
1573 # By default, build modules as well
1575 all: modules
1577 # When we're building modules with modversions, we need to consider
1584 # Build modules
1591 modules: vmlinux
1594 modules: modules_prepare
1596 # Target to prepare building external modules
1605 # Leave enough to build external modules
1610 CLEAN_FILES += vmlinux.symvers modules-only.symvers \
1611 modules.builtin modules.builtin.modinfo modules.nsdeps \
1612 modules.builtin.ranges vmlinux.o.map vmlinux.unstripped \
1629 # clean - Delete most, but leave enough to build external modules
1689 @echo ' enough build support to build external modules'
1698 @echo '* modules - Build all modules'
1699 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1708 @echo ' modules_prepare - Set up for building external modules'
1907 # When building external modules the kernel used as basis is considered
1912 # We are always building only modules.
1919 clean: private rm-files := Module.symvers modules.nsdeps compile_commands.json
1933 @echo ' Building external modules.'
1936 @echo ' modules - default target, build the module(s)'
1943 modules modules_install: __external_modules_error
1947 @echo >&2 '*** You cannot build or install external modules.'
1957 PHONY += modules modules_install modules_sign modules_prepare
1971 @echo >&2 '*** CONFIG_MODULE_SIG is disabled. You cannot sign modules.'
1978 modules.order: $(build-dir)
1981 # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
1983 modules: modpost
1989 modules_check: modules.order
1990 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh $<
1994 modules:
2030 # Remove modules.order when done because it is not the real one.
2033 $(Q){ $(foreach m, $(single-ko), echo $(m:%.ko=%.o);) } > modules.order
2038 $(Q)rm -f modules.order
2074 -o -name '*.symtypes' -o -name 'modules.order' \
2097 # FIXME: external modules must not descend into a sub-directory of the kernel
2108 nsdeps: modules
2119 $(if $(CONFIG_MODULES), modules.order) FORCE