-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-v6j.patch
72 lines (69 loc) · 2.19 KB
/
build-v6j.patch
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
commit f4be5c43255c867f1b4bc17a9b29410c5a5e0eb6
Author: Arne Coucheron <arco68@gmail.com>
Date: Tue Nov 22 00:00:15 2011 +0100
Add ARMv6J and ARMv6-VFP processor combo option
Cherry-picked from gingerbread branch.
diff --git a/core/combo/arch/arm/armv6-vfp.mk b/core/combo/arch/arm/armv6-vfp.mk
new file mode 100644
index 0000000..a00a2d1
--- /dev/null
+++ b/core/combo/arch/arm/armv6-vfp.mk
@@ -0,0 +1,30 @@
+# Configuration for Linux on ARM.
+# Generating binaries for the ARMv6-VFP architecture and higher
+#
+ARCH_ARM_HAVE_THUMB_SUPPORT := true
+ARCH_ARM_HAVE_FAST_INTERWORKING := true
+ARCH_ARM_HAVE_64BIT_DATA := true
+ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true
+ARCH_ARM_HAVE_CLZ := true
+ARCH_ARM_HAVE_FFS := true
+ARCH_ARM_HAVE_VFP := true
+
+ifeq ($(strip $(TARGET_ARCH_VARIANT_FPU)),)
+TARGET_ARCH_VARIANT_FPU := vfp
+endif
+ifeq ($(strip $(TARGET_ARCH_VARIANT_CPU)),)
+TARGET_ARCH_VARIANT_CPU := arm1136jf-s
+endif
+
+# Note: Hard coding the 'tune' value here is probably not ideal,
+# and a better solution should be found in the future.
+#
+arch_variant_cflags := \
+ -mcpu=$(TARGET_ARCH_VARIANT_CPU) \
+ -mfloat-abi=softfp \
+ -mfpu=$(TARGET_ARCH_VARIANT_FPU) \
+ -D__ARM_ARCH_5__ \
+ -D__ARM_ARCH_5T__ \
+ -D__ARM_ARCH_5E__ \
+ -D__ARM_ARCH_5TE__
+
diff --git a/core/combo/arch/arm/armv6j.mk b/core/combo/arch/arm/armv6j.mk
new file mode 100644
index 0000000..beca884
--- /dev/null
+++ b/core/combo/arch/arm/armv6j.mk
@@ -0,0 +1,22 @@
+# Configuration for Linux on ARM.
+# Generating binaries for the ARMv6J architecture and higher
+#
+ARCH_ARM_HAVE_THUMB_SUPPORT := true
+ARCH_ARM_HAVE_FAST_INTERWORKING := true
+ARCH_ARM_HAVE_64BIT_DATA := true
+ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true
+ARCH_ARM_HAVE_CLZ := true
+ARCH_ARM_HAVE_FFS := true
+
+# Note: Hard coding the 'tune' value here is probably not ideal,
+# and a better solution should be found in the future.
+#
+arch_variant_cflags := \
+ -march=armv6j \
+ -mtune=arm1136jf-s \
+ -pipe \
+ -fomit-frame-pointer \
+ -D__ARM_ARCH_5__ \
+ -D__ARM_ARCH_5T__ \
+ -D__ARM_ARCH_5E__ \
+ -D__ARM_ARCH_5TE__