summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-03 23:56:05 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-09 21:00:47 -0400
commitba634eceb535d95e87ef09caae7814b3687c6036 (patch)
treee8c1cd15128ffae56b79694e4c1543568c7273f0 /Makefile
parent9d022c540606a5a8ae5d1cc02fc12de362ba4585 (diff)
kbuild: move "_all" target out of $(KBUILD_SRC) conditional
The first "_all" occurrence around line 120 is only visible when KBUILD_SRC is unset. If O=... is specified, the working directory is relocated, then the only second occurrence around line 193 is visible, that is not set to PHONY. Move the first one to an always visible place. This clarifies "_all" is our default target and it is always set to PHONY. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 27fcdc1d4ec9..a793ed153f7a 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,10 @@ NAME = Fearless Coyote
10# Comments in this file are targeted only to the developer, do not 10# Comments in this file are targeted only to the developer, do not
11# expect to learn how to build the kernel reading this file. 11# expect to learn how to build the kernel reading this file.
12 12
13# That's our default target when none is given on the command line
14PHONY := _all
15_all:
16
13# o Do not use make's built-in rules and variables 17# o Do not use make's built-in rules and variables
14# (this increases performance and avoids hard-to-debug behaviour); 18# (this increases performance and avoids hard-to-debug behaviour);
15# o Look for make include files relative to root of kernel src 19# o Look for make include files relative to root of kernel src
@@ -116,10 +120,6 @@ ifeq ("$(origin O)", "command line")
116 KBUILD_OUTPUT := $(O) 120 KBUILD_OUTPUT := $(O)
117endif 121endif
118 122
119# That's our default target when none is given on the command line
120PHONY := _all
121_all:
122
123# Cancel implicit rules on top Makefile 123# Cancel implicit rules on top Makefile
124$(CURDIR)/Makefile Makefile: ; 124$(CURDIR)/Makefile Makefile: ;
125 125