Skip to content

Commit a749926

Browse files
committed
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>
1 parent 56d5893 commit a749926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ $(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler
372372
# ---------------------------------------------------------------------------
373373

374374
# To build objects in subdirs, we need to descend into the directories
375-
$(sort $(subdir-obj-y)): $(subdir-ym) ;
375+
$(obj)/%/built-in.a: $(obj)/% ;
376376

377377
#
378378
# Rule to compile a set of .o files into one .a file (without symbol table)

0 commit comments

Comments
 (0)