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)),)
rm -f $(__clean-files)
$(clean-rule)
else
@/bin/true
@:
endif
else
......@@ -182,7 +182,7 @@ ifeq ($(strip $(export-objs)),)
# ---------------------------------------------------------------------------
fastdep: $(subdir-ym)
@/bin/true
@:
else
......@@ -274,7 +274,7 @@ modules_install: $(subdir-ym)
ifneq ($(obj-m),)
$(call cmd,modules_install)
else
@/bin/true
@:
endif
else # ! modules_install
......@@ -283,23 +283,18 @@ else # ! modules_install
# Building
# ==========================================================================
# If a Makefile does define neither O_TARGET nor L_TARGET,
# use a standard O_TARGET named "built-in.o"
ifndef O_TARGET
ifndef L_TARGET
O_TARGET := $(obj)/built-in.o
endif
endif
# If a Makefile does not define a L_TARGET, link an object called "built-in.o"
ifdef L_TARGET
L_TARGET := $(obj)/$(L_TARGET)
else
O_TARGET := $(obj)/built-in.o
endif
first_rule: $(if $(KBUILD_BUILTIN),$(O_TARGET) $(L_TARGET) $(EXTRA_TARGETS)) \
$(if $(KBUILD_MODULES),$(obj-m)) \
$(subdir-ym)
@/bin/true
@:
# Compile C sources (.c)
# ---------------------------------------------------------------------------
......
......@@ -32,7 +32,7 @@ ifneq ($(strip $(__clean-files) $(clean-rule)),)
rm -f $(__clean-files)
$(clean-rule)
else
@/bin/true
@:
endif
.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