From: Paul Kocialkowski Date: Tue, 12 Jul 2016 20:24:16 +0000 (+0200) Subject: Proper armv7l host arch detection X-Git-Url: http://git.legacy.paulk.fr/gitweb/?p=vboot.git;a=commitdiff_plain;h=3467bd7c1e7c376e86908fc7cacbd262dec8dbb1 Proper armv7l host arch detection This allows properly detecting an armv7l host architecture and setting the right ARCH value so that e.g. crossystem can build fine. BRANCH=none BUG=none TEST=Build host_stuff on an armv7l machine Change-Id: I6a6ac74477eff41e73eca671d9dac229888c4e77 Signed-off-by: Paul Kocialkowski Reviewed-on: https://chromium-review.googlesource.com/360160 Reviewed-by: Randall Spangler Reviewed-by: Julius Werner --- diff --git a/Makefile b/Makefile index 2cfd2060..b0fdf08e 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,10 @@ HOST_ARCH ?= ${_machname} # Pick a sane target architecture if none is defined. ifeq (${ARCH},) ARCH := ${HOST_ARCH} +endif + +ifeq (${ARCH},armv7l) + override ARCH := arm else ifeq (${ARCH},i386) override ARCH := x86 else ifeq (${ARCH},amd64)