Commit 685953e4 authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

test/arm: Fix building on armv7l architecture

The issue here is that ARCH is not overwritten if the caller Makefile
already define it, and the upper Makefile is not overwriting the ARCH
define to "arm", when it is "armv7l" for instance, so the SRCARCH is
set to "armv7l" which is wrong.

With this patch, SRCARCH is using the inherinted define if called from
the top level Makefile.

This is required to build test on armv7l architecture (qemu).
Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent ca784160
......@@ -8,7 +8,7 @@ ARCH ?= $(shell uname -m | sed \
-e s/mips.*/mips/ \
-e s/sh[234].*/sh/)
SRCARCH := $(ARCH)
SRCARCH ?= $(ARCH)
ifeq ($(ARCH),i386)
SRCARCH := x86
......
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