Skip to content

Commit e578edc

Browse files
committed
kbuild: remove ifdef builtin-target / lib-target
I do not see a good reason to add ifdef here. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 9504bbe commit e578edc

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎scripts/Makefile.build‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,14 @@ $(obj)/%/built-in.a: $(obj)/% ;
384384
#
385385
# Rule to compile a set of .o files into one .a file (without symbol table)
386386
#
387-
ifdef builtin-target
388387

389388
quiet_cmd_ar_builtin = AR $@
390389
cmd_ar_builtin = rm -f $@; $(AR) cDPrST $@ $(real-prereqs)
391390

392-
$(builtin-target): $(real-obj-y) FORCE
391+
$(obj)/built-in.a: $(real-obj-y) FORCE
393392
$(call if_changed,ar_builtin)
394393

395394
targets += $(builtin-target)
396-
endif # builtin-target
397395

398396
#
399397
# Rule to create modules.order file
@@ -408,15 +406,11 @@ $(modorder-target): $(subdir-ym) FORCE
408406
#
409407
# Rule to compile a set of .o files into one .a file (with symbol table)
410408
#
411-
ifdef lib-target
412-
413-
$(lib-target): $(lib-y) FORCE
409+
$(obj)/lib.a: $(lib-y) FORCE
414410
$(call if_changed,ar)
415411

416412
targets += $(lib-target)
417413

418-
endif
419-
420414
# NOTE:
421415
# Do not replace $(filter %.o,^) with $(real-prereqs). When a single object
422416
# module is turned into a multi object module, $^ will contain header file

0 commit comments

Comments
 (0)