Lines Matching refs:modules

575 # but instead _all depend on modules
580 _all: modules
589 # If we have only "make modules", don't compile built-in objects.
590 # When we're building modules with modversions, we need to consider
594 ifeq ($(MAKECMDGOALS),modules)
598 # If we have "make <whatever> modules", compile modules
600 # Just "make" or "make all" shall build modules as well
602 ifneq ($(filter all _all modules nsdeps,$(MAKECMDGOALS)),)
630 # This allow a user to issue only 'make' to build a kernel including modules
680 # External modules and some install targets need include/generated/autoconf.h
954 MODLIB = $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
958 # INSTALL_MOD_STRIP, if defined, will cause modules to be
1013 export MODORDER := $(extmod-prefix)modules.order
1051 autoksyms_recursive: descend modules.order
1057 # we have to build modules as well to determine what those symbols are.
1100 # or the modules are listed in "prepare".
1273 # By default, build modules as well
1275 all: modules
1277 # Build modules
1280 # duplicate lines in modules.order files. Those are removed
1283 PHONY += modules
1284 modules: $(if $(KBUILD_BUILTIN),vmlinux) modules.order modules.builtin
1286 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh
1288 modules.order: descend
1293 modules.builtin: $(modbuiltin-dirs)
1302 # Target to prepare building external modules
1306 # Target to install modules
1320 @sed 's:^:kernel/:' modules.order > $(MODLIB)/modules.order
1321 @sed 's:^:kernel/:' modules.builtin > $(MODLIB)/modules.builtin
1322 @cp -f $(objtree)/modules.builtin.modinfo $(MODLIB)/
1326 # boot a modules.dep even before / is mounted read-write. However the
1343 PHONY += modules modules_install
1344 modules modules_install:
1346 @echo >&2 "The present kernel configuration has modules disabled."
1357 # Leave enough to build external modules
1363 CLEAN_FILES += modules.builtin.modinfo
1380 # clean - Delete most, but leave enough to build external modules
1444 @echo ' enough build support to build external modules'
1454 @echo '* modules - Build all modules'
1455 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1463 @echo ' modules_prepare - Set up for building external modules'
1580 # When building external modules the kernel used as basis is considered
1587 # modules.
1589 # make M=dir modules Make all modules in specified dir
1590 # make M=dir Same as 'make M=dir modules'
1592 # Install the modules built in the module directory
1595 # We are always building modules
1603 echo " is missing; modules will have no dependencies and modversions."; \
1607 PHONY += modules
1608 modules: descend $(objtree)/Module.symvers
1633 @echo ' Building external modules.'
1636 @echo ' modules - default target, build the module(s)'
1671 -o -name '*.symtypes' -o -name 'modules.order' \
1672 -o -name modules.builtin -o -name '.tmp_*.o.*' \
1690 nsdeps: modules
1782 # For the single build of in-tree modules, use a temporary file to avoid
1783 # the situation of modules_install installing an invalid modules.order.
1784 MODORDER := .modules.tmp