|
@@ -76,7 +76,7 @@ lib-target := $(obj)/lib.a
|
|
|
obj-y += $(obj)/lib-ksyms.o
|
|
|
endif
|
|
|
|
|
|
-ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),)
|
|
|
+ifneq ($(strip $(obj-y) $(need-builtin)),)
|
|
|
builtin-target := $(obj)/built-in.o
|
|
|
endif
|
|
|
|
|
@@ -561,7 +561,7 @@ targets := $(filter-out $(PHONY), $(targets))
|
|
|
|
|
|
PHONY += $(subdir-ym)
|
|
|
$(subdir-ym):
|
|
|
- $(Q)$(MAKE) $(build)=$@
|
|
|
+ $(Q)$(MAKE) $(build)=$@ need-builtin=$(if $(findstring $@,$(subdir-obj-y)),1)
|
|
|
|
|
|
# Add FORCE to the prequisites of a target to force it to be always rebuilt.
|
|
|
# ---------------------------------------------------------------------------
|