Download this file

001-makefile-arm-archs.patch    32 lines (30 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/Makefile b/Makefile
index bf7a1ba..49bffaf 100644
--- a/Makefile
+++ b/Makefile
@@ -70,14 +70,17 @@ else
else ifneq (,$(findstring linux,$(gcc_machine)))
detected_openhome_system = Linux
endif
- ifeq ($(gcc_machine),arm-none-linux-gnueabi)
- detected_openhome_architecture = armel
- 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
+ else ifneq (,$(findstring armv7hl,$(gcc_machine)))
+ # cubox: armv7hl-redhat-linux-gnueabi
+ detected_openhome_architecture = armhf
+ else ifeq (${detected_openhome_system},Qnap)
+ detected_openhome_architecture = x19
+ else
+ detected_openhome_architecture = armel
+ endif
endif
ifneq (,$(findstring i686,$(gcc_machine)))
detected_openhome_architecture = x86