mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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>
This commit is contained in:
parent
9504bbe91e
commit
e578edc722
@ -384,16 +384,14 @@ $(obj)/%/built-in.a: $(obj)/% ;
|
|||||||
#
|
#
|
||||||
# Rule to compile a set of .o files into one .a file (without symbol table)
|
# Rule to compile a set of .o files into one .a file (without symbol table)
|
||||||
#
|
#
|
||||||
ifdef builtin-target
|
|
||||||
|
|
||||||
quiet_cmd_ar_builtin = AR $@
|
quiet_cmd_ar_builtin = AR $@
|
||||||
cmd_ar_builtin = rm -f $@; $(AR) cDPrST $@ $(real-prereqs)
|
cmd_ar_builtin = rm -f $@; $(AR) cDPrST $@ $(real-prereqs)
|
||||||
|
|
||||||
$(builtin-target): $(real-obj-y) FORCE
|
$(obj)/built-in.a: $(real-obj-y) FORCE
|
||||||
$(call if_changed,ar_builtin)
|
$(call if_changed,ar_builtin)
|
||||||
|
|
||||||
targets += $(builtin-target)
|
targets += $(builtin-target)
|
||||||
endif # builtin-target
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Rule to create modules.order file
|
# Rule to create modules.order file
|
||||||
@ -408,15 +406,11 @@ $(modorder-target): $(subdir-ym) FORCE
|
|||||||
#
|
#
|
||||||
# Rule to compile a set of .o files into one .a file (with symbol table)
|
# Rule to compile a set of .o files into one .a file (with symbol table)
|
||||||
#
|
#
|
||||||
ifdef lib-target
|
$(obj)/lib.a: $(lib-y) FORCE
|
||||||
|
|
||||||
$(lib-target): $(lib-y) FORCE
|
|
||||||
$(call if_changed,ar)
|
$(call if_changed,ar)
|
||||||
|
|
||||||
targets += $(lib-target)
|
targets += $(lib-target)
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# Do not replace $(filter %.o,^) with $(real-prereqs). When a single object
|
# Do not replace $(filter %.o,^) with $(real-prereqs). When a single object
|
||||||
# module is turned into a multi object module, $^ will contain header file
|
# module is turned into a multi object module, $^ will contain header file
|
||||||
|
Loading…
Reference in New Issue
Block a user