Commit 851e89ce authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

Default to ARMv7

The current mechanism for determining ARM architecture version
breaks down when cross-compiling. Default to ARMv7 if the user
specifies ARCH=arm. Users wishing to cross-compile for ARMv6
platforms such as the Raspberry Pi should use ARCH=armv6 as
previously required.
Acked-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a37b9589
...@@ -56,7 +56,7 @@ ifeq ($(ARCH),x86_64) ...@@ -56,7 +56,7 @@ ifeq ($(ARCH),x86_64)
endif endif
ifeq ($(shell echo $(ARCH) | sed -e 's/arm.*/arm/'),arm) ifeq ($(shell echo $(ARCH) | sed -e 's/arm.*/arm/'),arm)
ARMV := $(shell echo $(ARCH) | sed -r -e 's/armv([[:digit:]]).*/\1/') ARMV := $(shell echo $(ARCH) | sed -nr 's/armv([[:digit:]]).*/\1/p; t; i7')
SRCARCH := arm SRCARCH := arm
DEFINES := -DCONFIG_ARM -DCONFIG_ARMV$(ARMV) DEFINES := -DCONFIG_ARM -DCONFIG_ARMV$(ARMV)
......
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