Makefile.modpost (728d90bdc9e480dc93913e59a0aa3c896c7aa697) | Makefile.modpost (fab546e6cd7aee6574472ad3239db07ee1d94c09) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# =========================================================================== 3# Module versions 4# =========================================================================== 5# 6# Stage one of module building created the following: 7# a) The individual .o files used for the module 8# b) A <module>.o file which is the .o files above linked together --- 53 unchanged lines hidden (view full) --- 62quiet_cmd_modpost = MODPOST vmlinux.o 63 cmd_modpost = $(MODPOST) vmlinux.o 64 65__modpost: 66 $(call cmd,modpost) 67 68else 69 | 1# SPDX-License-Identifier: GPL-2.0 2# =========================================================================== 3# Module versions 4# =========================================================================== 5# 6# Stage one of module building created the following: 7# a) The individual .o files used for the module 8# b) A <module>.o file which is the .o files above linked together --- 53 unchanged lines hidden (view full) --- 62quiet_cmd_modpost = MODPOST vmlinux.o 63 cmd_modpost = $(MODPOST) vmlinux.o 64 65__modpost: 66 $(call cmd,modpost) 67 68else 69 |
70# When building external modules load the Kbuild file to retrieve EXTRA_SYMBOLS info | |
71ifneq ($(KBUILD_EXTMOD),) 72 | 70ifneq ($(KBUILD_EXTMOD),) 71 |
73# set src + obj - they may be used when building the .mod.c file | 72# set src + obj - they may be used in the modules's Makefile |
74obj := $(KBUILD_EXTMOD) 75src := $(obj) 76 77# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS 78include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \ 79 $(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile) 80endif 81 --- 22 unchanged lines hidden --- | 73obj := $(KBUILD_EXTMOD) 74src := $(obj) 75 76# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS 77include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \ 78 $(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile) 79endif 80 --- 22 unchanged lines hidden --- |