Commit 366b173e authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: another "make clean" micro-optimization

Patch by Peter Samuelson, merged to current code, actually has a noticable
impact on "make clean" speed.
parent 6d65aab5
...@@ -166,7 +166,7 @@ ifneq ($(strip $(__clean-files) $(clean-rule)),) ...@@ -166,7 +166,7 @@ ifneq ($(strip $(__clean-files) $(clean-rule)),)
rm -f $(__clean-files) rm -f $(__clean-files)
$(clean-rule) $(clean-rule)
else else
@/bin/true @:
endif endif
else else
...@@ -182,7 +182,7 @@ ifeq ($(strip $(export-objs)),) ...@@ -182,7 +182,7 @@ ifeq ($(strip $(export-objs)),)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
fastdep: $(subdir-ym) fastdep: $(subdir-ym)
@/bin/true @:
else else
...@@ -274,7 +274,7 @@ modules_install: $(subdir-ym) ...@@ -274,7 +274,7 @@ modules_install: $(subdir-ym)
ifneq ($(obj-m),) ifneq ($(obj-m),)
$(call cmd,modules_install) $(call cmd,modules_install)
else else
@/bin/true @:
endif endif
else # ! modules_install else # ! modules_install
...@@ -283,23 +283,18 @@ else # ! modules_install ...@@ -283,23 +283,18 @@ else # ! modules_install
# Building # Building
# ========================================================================== # ==========================================================================
# If a Makefile does define neither O_TARGET nor L_TARGET, # If a Makefile does not define a L_TARGET, link an object called "built-in.o"
# use a standard O_TARGET named "built-in.o"
ifndef O_TARGET
ifndef L_TARGET
O_TARGET := $(obj)/built-in.o
endif
endif
ifdef L_TARGET ifdef L_TARGET
L_TARGET := $(obj)/$(L_TARGET) L_TARGET := $(obj)/$(L_TARGET)
else
O_TARGET := $(obj)/built-in.o
endif endif
first_rule: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \ first_rule: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \
$(if $(KBUILD_MODULES),$(obj-m)) \ $(if $(KBUILD_MODULES),$(obj-m)) \
$(subdir-ym) $(subdir-ym)
@/bin/true @:
# Compile C sources (.c) # Compile C sources (.c)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
......
...@@ -32,7 +32,7 @@ ifneq ($(strip $(__clean-files) $(clean-rule)),) ...@@ -32,7 +32,7 @@ ifneq ($(strip $(__clean-files) $(clean-rule)),)
rm -f $(__clean-files) rm -f $(__clean-files)
$(clean-rule) $(clean-rule)
else else
@/bin/true @:
endif endif
.PHONY: $(subdir-ymn) .PHONY: $(subdir-ymn)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment