summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/conf/machine/include/tune-armv7.inc6
-rw-r--r--meta/conf/machine/include/tune-cortexa8.inc8
-rw-r--r--meta/conf/machine/include/tune-cortexm1.inc3
-rw-r--r--meta/conf/machine/include/tune-cortexm3.inc4
-rw-r--r--meta/conf/machine/include/tune-cortexr4.inc4
5 files changed, 25 insertions, 0 deletions
diff --git a/meta/conf/machine/include/tune-armv7.inc b/meta/conf/machine/include/tune-armv7.inc
new file mode 100644
index 000000000..6276fe679
--- /dev/null
+++ b/meta/conf/machine/include/tune-armv7.inc
@@ -0,0 +1,6 @@
+# valid options for -march: `armv7', `armv7-a', `armv7-r', `armv7-m'
+# valid option for -mtune: `cortex-a8', `cortex-r4', `cortex-m3', `cortex-m1'
+# This will NOT compile programs in 'ARM' mode, which is what you really want
+TARGET_CC_ARCH = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp"
+FEED_ARCH = "armv7"
+PACKAGE_ARCH = "armv7"
diff --git a/meta/conf/machine/include/tune-cortexa8.inc b/meta/conf/machine/include/tune-cortexa8.inc
new file mode 100644
index 000000000..f886366f1
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa8.inc
@@ -0,0 +1,8 @@
+# Instead of using -mfpu=vfp[2] we can use -mfpu=neon to make use of gcc intrinsics[1] and vectorize loops with -ftree-vectorize[3]
+# [1] http://gcc.gnu.org/onlinedocs/gcc/ARM-NEON-Intrinsics.html
+# [2] http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
+# [3] https://support.codesourcery.com/GNUToolchain/kbentry29
+
+TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp"
+FEED_ARCH = "armv7a"
+PACKAGE_ARCH = "armv7a"
diff --git a/meta/conf/machine/include/tune-cortexm1.inc b/meta/conf/machine/include/tune-cortexm1.inc
new file mode 100644
index 000000000..a0d18b69c
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexm1.inc
@@ -0,0 +1,3 @@
+TARGET_CC_ARCH = "-march=armv7 -mtune=cortex-m1 -mfpu=vfp -mfloat-abi=softfp"
+FEED_ARCH = "armv6"
+PACKAGE_ARCH = "armv6"
diff --git a/meta/conf/machine/include/tune-cortexm3.inc b/meta/conf/machine/include/tune-cortexm3.inc
new file mode 100644
index 000000000..3598998a7
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexm3.inc
@@ -0,0 +1,4 @@
+# valid options for -march: `armv7', `armv7-m'
+TARGET_CC_ARCH = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp"
+FEED_ARCH = "armv7"
+PACKAGE_ARCH = "armv7"
diff --git a/meta/conf/machine/include/tune-cortexr4.inc b/meta/conf/machine/include/tune-cortexr4.inc
new file mode 100644
index 000000000..93c82e860
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexr4.inc
@@ -0,0 +1,4 @@
+# valid options for -march: `armv7', `armv7-r'
+TARGET_CC_ARCH = "-march=armv7-r -mtune=cortex-r4 -mfpu=vfp -mfloat-abi=softfp"
+FEED_ARCH = "armv7"
+PACKAGE_ARCH = "armv7"