mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
kbuild: move subdir-obj-y to scripts/Makefile.build
Save $(addprefix ...) for subdir-obj-y. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
@@ -69,6 +69,8 @@ endif
|
|||||||
|
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
|
|
||||||
|
subdir-obj-y := $(filter %/built-in.a, $(real-obj-y))
|
||||||
|
|
||||||
ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)
|
ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),)
|
||||||
lib-target := $(obj)/lib.a
|
lib-target := $(obj)/lib.a
|
||||||
endif
|
endif
|
||||||
|
@@ -62,10 +62,6 @@ multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m
|
|||||||
multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m)) $($(m:.o=-))), $(m))))
|
multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m)) $($(m:.o=-))), $(m))))
|
||||||
multi-used := $(multi-used-y) $(multi-used-m)
|
multi-used := $(multi-used-y) $(multi-used-m)
|
||||||
|
|
||||||
# $(subdir-obj-y) is the list of objects in $(obj-y) which uses dir/ to
|
|
||||||
# tell kbuild to descend
|
|
||||||
subdir-obj-y := $(filter %/built-in.a, $(obj-y))
|
|
||||||
|
|
||||||
# Replace multi-part objects by their individual parts,
|
# Replace multi-part objects by their individual parts,
|
||||||
# including built-in.a from subdirectories
|
# including built-in.a from subdirectories
|
||||||
real-obj-y := $(foreach m, $(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m)))
|
real-obj-y := $(foreach m, $(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m)))
|
||||||
@@ -91,7 +87,6 @@ targets := $(addprefix $(obj)/,$(targets))
|
|||||||
modorder := $(addprefix $(obj)/,$(modorder))
|
modorder := $(addprefix $(obj)/,$(modorder))
|
||||||
obj-m := $(addprefix $(obj)/,$(obj-m))
|
obj-m := $(addprefix $(obj)/,$(obj-m))
|
||||||
lib-y := $(addprefix $(obj)/,$(lib-y))
|
lib-y := $(addprefix $(obj)/,$(lib-y))
|
||||||
subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y))
|
|
||||||
real-obj-y := $(addprefix $(obj)/,$(real-obj-y))
|
real-obj-y := $(addprefix $(obj)/,$(real-obj-y))
|
||||||
real-obj-m := $(addprefix $(obj)/,$(real-obj-m))
|
real-obj-m := $(addprefix $(obj)/,$(real-obj-m))
|
||||||
multi-used-m := $(addprefix $(obj)/,$(multi-used-m))
|
multi-used-m := $(addprefix $(obj)/,$(multi-used-m))
|
||||||
|
Reference in New Issue
Block a user