From d2ae519cc3db827aa4b74b300da6dc696200bea1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Jun 2008 11:36:33 +0000 Subject: conf/machine/include: Add tuning .inc files from OE.dev git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4615 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/conf/machine/include/tune-armv7.inc | 6 ++++++ meta/conf/machine/include/tune-cortexa8.inc | 8 ++++++++ meta/conf/machine/include/tune-cortexm1.inc | 3 +++ meta/conf/machine/include/tune-cortexm3.inc | 4 ++++ meta/conf/machine/include/tune-cortexr4.inc | 4 ++++ 5 files changed, 25 insertions(+) create mode 100644 meta/conf/machine/include/tune-armv7.inc create mode 100644 meta/conf/machine/include/tune-cortexa8.inc create mode 100644 meta/conf/machine/include/tune-cortexm1.inc create mode 100644 meta/conf/machine/include/tune-cortexm3.inc create mode 100644 meta/conf/machine/include/tune-cortexr4.inc (limited to 'meta') 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" -- cgit v1.2.3