Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf@emagii.com>
To: openembedded-core@lists.openembedded.org
Cc: Ulf Samuelsson <ulf@emagii.com>
Subject: [PATCH] Add tune for Cortex-A5 chips
Date: Mon, 21 Oct 2013 10:59:57 +0200	[thread overview]
Message-ID: <1382345997-28170-1-git-send-email-ulf@emagii.com> (raw)

Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
 meta/conf/machine/include/tune-cortexa5.inc |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa5.inc

diff --git a/meta/conf/machine/include/tune-cortexa5.inc b/meta/conf/machine/include/tune-cortexa5.inc
new file mode 100644
index 0000000..69c945e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa5.inc
@@ -0,0 +1,24 @@
+DEFAULTTUNE ?= "cortexa5thf"
+# TUNE_FEATURES     = "armv7a vfp callconvention-hard"
+# TARGET_FPU        = "vfp"
+
+require conf/machine/include/arm/arch-armv7a.inc
+
+TUNEVALID[cortexa5] = "Enable Cortex-A5 specific processor optimizations"
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "cortexa5", "-mtune=cortex-a5", "", d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa5 cortexa5t"
+TUNE_FEATURES_tune-cortexa5 = "${TUNE_FEATURES_tune-armv7a} cortexa5"
+TUNE_FEATURES_tune-cortexa5t = "${TUNE_FEATURES_tune-armv7at} cortexa5"
+
+PACKAGE_EXTRA_ARCHS_tune-cortexa5 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a}"
+PACKAGE_EXTRA_ARCHS_tune-cortexa5t = "${PACKAGE_EXTRA_ARCHS_tune-armv7at}"
+
+# VFP Tunes
+AVAILTUNES += "cortexa5hf cortexa5thf"
+TUNE_FEATURES_tune-cortexa5hf ?= "${TUNE_FEATURES_tune-armv7ahf} cortexa5"
+TUNE_FEATURES_tune-cortexa5thf ?= "${TUNE_FEATURES_tune-armv7athf} cortexa5"
+PACKAGE_EXTRA_ARCHS_tune-cortexa5hf = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf}"
+PACKAGE_EXTRA_ARCHS_tune-cortexa5thf = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf}"
+
-- 
1.7.9.5



             reply	other threads:[~2013-10-21  9:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-21  8:59 Ulf Samuelsson [this message]
2013-10-21 11:17 ` [PATCH] Add tune for Cortex-A5 chips Martin Jansa
2013-10-21 12:55   ` Ulf Samuelsson
2013-10-21 21:46     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382345997-28170-1-git-send-email-ulf@emagii.com \
    --to=ulf@emagii.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox