diff options
author | Masahiro Yamada | 2022-04-07 00:30:22 +0900 |
---|---|---|
committer | Masahiro Yamada | 2022-05-08 03:16:59 +0900 |
commit | fc93a4cdce1db7568fcdff608924324f5754efe5 (patch) | |
tree | 783c2523980e27d9fcbc1be79fab97ca15635101 /Makefile | |
parent | 22f26f21774f838e97921952d8c5c4aab3da2ea4 (diff) |
kbuild: make *.mod not depend on *.o
The dependency
$(obj)/%.mod: $(obj)/%$(mod-prelink-ext).o
... exists because *.mod files previously contained undefined symbols,
which are computed from *.o files when CONFIG_TRIM_UNUSED_KSYMS=y.
Now that the undefined symbols are put into separate *.usyms files,
there is no reason to make *.mod depend on *.o files.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1792,7 +1792,8 @@ ifdef single-build # .ko is special because modpost is needed single-ko := $(sort $(filter %.ko, $(MAKECMDGOALS))) -single-no-ko := $(sort $(patsubst %.ko,%.mod, $(MAKECMDGOALS))) +single-no-ko := $(filter-out $(single-ko), $(MAKECMDGOALS)) \ + $(foreach x, o mod, $(patsubst %.ko, %.$x, $(single-ko))) $(single-ko): single_modpost @: |