kbuild: move "_all" target out of $(KBUILD_SRC) conditional
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Oct 2017 03:56:05 +0000 (12:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Mar 2018 09:54:21 +0000 (10:54 +0100)
commit31c4bc6e01e5219283c81fcfa61eb242d87965c7
tree0028c73dcdf87c34d608cfd5545b3b837b838580
parent96427a5164f3eff6ee6eb924dbb53adb6eaa082d
kbuild: move "_all" target out of $(KBUILD_SRC) conditional

commit ba634eceb535d95e87ef09caae7814b3687c6036 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile