Download this file

0001-t4-arm.patch    48 lines (44 with data), 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Note: the 'make: o: Command not found' errors originate in
common.mak and are due to variable t4 being undefined. t4 is
normally defined as 'mono' in T4Linux.mak, included in Makefile
only if 'uset4' is set (which it is not by default). Common.mak
should heed uset4, but it does not. This does not seem to have
consequences, and the errors are suppressed by defining t4 as 'echo'
Recognize more architectures:
odroid64: aarch64-linux-gnu.
odroid32,rasp30: arm-linux-gnueabihf,
cubox: armv7hl-redhat-linux-gnueabi
diff --git a/Makefile b/Makefile
index 29f2d6a..038b05e 100644
--- a/Makefile
+++ b/Makefile
@@ -82,12 +82,19 @@ else
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 aarch64,$(gcc_machine)))
+ # odroid64: aarch64-linux-gnu
+ detected_openhome_architecture = arm64
+ endif
ifneq (,$(findstring i686,$(gcc_machine)))
detected_openhome_architecture = x86
endif
@@ -375,6 +382,10 @@ mkdir = mkdir -p
rmdir = rm -rf
uset4 = no
+# This avoids errors in Generated/Devices.mak (they apparently have no
+# consequences anyway because we use make native_only=yes)
+t4 = echo
+
ifeq ($(managed_only), yes)
build_targets_base = make_obj_dir ohNet.net.dll CpProxyDotNetAssemblies DvDeviceDotNetAssemblies
else