# Replace multi-part objects by their individual parts, look at local dir only
real-objs-y:=$(foreach m, $(filter-out$(subdir-obj-y), $(obj-y)), $(if$(strip$($(m:.o=-objs))$($(m:.o=-y))),$($(m:.o=-objs))$($(m:.o=-y)),$(m)))$(EXTRA_TARGETS)
real-objs-m:=$(foreach m, $(obj-m), $(if$(strip$($(m:.o=-objs))$($(m:.o=-y))),$($(m:.o=-objs))$($(m:.o=-y)),$(m)))
# Only build module versions for files which are selected to be built
# Replace multi-part objects by their individual parts, look at local dir only
real-objs-y:=$(foreach m, $(filter-out$(subdir-obj-y), $(obj-y)), $(if$(strip$($(m:.o=-objs))$($(m:.o=-y))),$($(m:.o=-objs))$($(m:.o=-y)),$(m)))$(EXTRA_TARGETS)
real-objs-m:=$(foreach m, $(obj-m), $(if$(strip$($(m:.o=-objs))$($(m:.o=-y))),$($(m:.o=-objs))$($(m:.o=-y)),$(m)))
# Only build module versions for files which are selected to be built