From 3b28c2820bf7c6113afd08ab2105e2775013f0c7 Mon Sep 17 00:00:00 2001 From: Piotr Gaczkowski Date: Wed, 8 Apr 2015 20:52:56 +0200 Subject: [PATCH] Better ARM recognition for compilers like arm-cortexa8-linux-gnueabihf --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a98ae13..675e4b6 100644 --- a/Makefile +++ b/Makefile @@ -66,14 +66,15 @@ else else ifneq (,$(findstring linux,$(gcc_machine))) detected_openhome_system = Linux endif - ifeq ($(gcc_machine),arm-none-linux-gnueabi) - detected_openhome_architecture = armel + ifneq (,$(findstring arm,$(gcc_machine))) + ifneq (,$(findstring linux-gnueabi,$(gcc_machine))) + detected_openhome_architecture = armel + endif endif - ifeq ($(gcc_machine),arm-linux-gnueabi) - detected_openhome_architecture = armel - endif - ifeq ($(gcc_machine),arm-linux-gnueabihf) - detected_openhome_architecture = armhf + ifneq (,$(findstring arm,$(gcc_machine))) + ifneq (,$(findstring linux-gnueabihf,$(gcc_machine))) + detected_openhome_architecture = armhf + endif endif ifneq (,$(findstring i686,$(gcc_machine))) detected_openhome_architecture = x86