diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2019-12-18 17:05:14 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-01-06 18:18:38 +0100 |
commit | a7499267976ce014fbc6f7defe9080367f94d6cc (patch) | |
tree | 086ec5983a9c9ee8d4a70f033ac2e52d4a9170a2 /scripts | |
parent | kbuild: do not create orphan built-in.a or obj-y objects (diff) | |
download | linux-a7499267976ce014fbc6f7defe9080367f94d6cc.tar.xz linux-a7499267976ce014fbc6f7defe9080367f94d6cc.zip |
kbuild: use pattern rule for building built-in.a in sub-directories
The built-in.a in a sub-directory is created by descending into that
directory. It does not depend on the other sub-directories. Loosen
the dependency.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index e46b4ee9a120..a562d695f0fa 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -372,7 +372,7 @@ $(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler # --------------------------------------------------------------------------- # To build objects in subdirs, we need to descend into the directories -$(sort $(subdir-obj-y)): $(subdir-ym) ; +$(obj)/%/built-in.a: $(obj)/% ; # # Rule to compile a set of .o files into one .a file (without symbol table) |