From: Masahiro Yamada Date: Wed, 18 Dec 2019 16:05:14 +0000 (+0900) Subject: kbuild: use pattern rule for building built-in.a in sub-directories X-Git-Tag: v5.6-rc1~90^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7499267976ce014fbc6f7defe9080367f94d6cc;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index e46b4ee9a1200..a562d695f0fab 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)