Makefile: include per-arch Makefile before Makefile.flags
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 14 Jul 2017 21:08:38 +0000 (23:08 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 15 Jul 2017 09:53:53 +0000 (11:53 +0200)
commite9a25ac92495d8276669574e03d3b03e9846dd1c
tree9c7e14801d9cdd428746b6ac5a38f80e617225a0
parente5b1f5af737078dfe4baba79dd0bc5a3b7616ad0
Makefile: include per-arch Makefile before Makefile.flags

Makefile.flags contains:

ARCH_FPIC ?= -fpic
ARCH_FPIE ?= -fpie

However, arch/$(ARCH)/Makefile gets included *after* Makefile.flags,
and therefore doesn't get the chance to provide its own value.

Fix this by including arch/$(ARCH)/Makefile *before* Makefile.flags.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile