Skip to contentSkip to conversation

Add tune for Cortex-A5 chips

PATCH In review Ulf Samuelsson 3 participants 4 messages Oct 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add tune for Cortex-A5 chips

---
 meta/conf/machine/include/tune-cortexa5.inc |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa5.inc
meta/conf/machine/include/tune-cortexa5.inc new file +24 -0
new file mode 100644
index 0000000..69c945e
@@ -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}"
+
Signature · 1 line
1.7.9.5
#1 lore raw

meta/conf/machine/include/tune-cortexa5.inc line 1

Quoted 13 lines · Ulf Samuelsson
---
 meta/conf/machine/include/tune-cortexa5.inc |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa5.inc
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
new file mode 100644
index 0000000..69c945e
@@ -0,0 +1,24 @@
+DEFAULTTUNE ?= "cortexa5thf"

wasn't cortexa5 added already in:

commit 50bc63c5c377d9fbb87b3efefc8c6f5473ba642a

Author: Andy Voltz <[email protected]>
Date:   Wed Jun 5 11:52:30 2013 -0400

tune-cortexa5.inc: Add tune file for cortex-a5

I think that one was better, because it had optional neon support and default DEFAULTTUNE should be something more generic (at least to stay consistent with other tunes) it's DISTRO decision to select common denominator (or more specific tunes for each MACHINE) for binary feeds they want to manage.

see
commit a11bdc36a1be18cc5aa14682b2a2c9ee83141f51

Author: Martin Jansa <[email protected]>
Date:   Tue Oct 2 13:21:08 2012 +0000

tune-*: define more generic DEFAULTTUNE to share feed between
machines

Quoted 30 lines
meta/conf/machine/include/tune-cortexa5.inc new file +23 -0
+# TUNE_FEATU4RES     = "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}"
+
Signature · 6 lines
1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 20 lines · Martin Jansa

meta/conf/machine/include/tune-cortexa5.inc line 1

Quoted 13 lines · Ulf Samuelsson
---
  meta/conf/machine/include/tune-cortexa5.inc |   24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

create mode 100644 meta/conf/machine/include/tune-cortexa5.inc

meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
new file mode 100644
index 0000000..69c945e
@@ -0,0 +1,24 @@
+DEFAULTTUNE ?= "cortexa5thf"

wasn't cortexa5 added already in:

commit 50bc63c5c377d9fbb87b3efefc8c6f5473ba642a

Author: Andy Voltz <[email protected]>
Date:   Wed Jun 5 11:52:30 2013 -0400
Quoted 7 lines

tune-cortexa5.inc: Add tune file for cortex-a5

I think that one was better, because it had optional neon support and default DEFAULTTUNE should be something more generic (at least to stay consistent with other tunes) it's DISTRO decision to select common denominator (or more specific tunes for each MACHINE) for binary feeds they want to manage.

Looks like you are right.
I looked at the openembedded-core in Angstrom master, and it wasn't there. (
because Angstrom master checks out "openembedded-core/remotes/origin/angstrom-staging-yocto1.3"
)

Sorry.

/Ulf

Quoted 39 lines

see
commit a11bdc36a1be18cc5aa14682b2a2c9ee83141f51

Author: Martin Jansa <[email protected]>
Date:   Tue Oct 2 13:21:08 2012 +0000

tune-*: define more generic DEFAULTTUNE to share feed between
machines

Quoted 30 lines
meta/conf/machine/include/tune-cortexa5.inc new file +23 -0
+# TUNE_FEATU4RES     = "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}"
+
Signature · 6 lines
1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 4 lines
Best Regards
Ulf Samuelsson
[email protected]
+46 722 427437
#3 lore raw
Quoted 7 lines · Ulf Samuelsson
Quoted 6 lines · Martin Jansa
Quoted 4 lines · Ulf Samuelsson
---
  meta/conf/machine/include/tune-cortexa5.inc |   24

++++++++++++++++++++++++

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines
  1 file changed, 24 insertions(+)

create mode 100644 meta/conf/machine/include/tune-cortexa5.inc

(quoted diff) +0 -0

b/meta/conf/machine/include/tune-cortexa5.inc

Quoted 21 lines
Quoted 13 lines

meta/conf/machine/include/tune-cortexa5.inc line 1

Quoted 6 lines

new file mode 100644
index 0000000..69c945e

meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
@@ -0,0 +1,24 @@
+DEFAULTTUNE ?= "cortexa5thf"

wasn't cortexa5 added already in:

commit 50bc63c5c377d9fbb87b3efefc8c6f5473ba642a

Author: Andy Voltz <[email protected]>
Date:   Wed Jun 5 11:52:30 2013 -0400
Quoted 7 lines

tune-cortexa5.inc: Add tune file for cortex-a5

I think that one was better, because it had optional neon support and default DEFAULTTUNE should be something more generic (at least to stay consistent with other tunes) it's DISTRO decision to select common denominator (or more specific tunes for each MACHINE) for binary feeds they want to manage.

Quoted 7 lines

Looks like you are right.
I looked at the openembedded-core in Angstrom master, and it wasn't there. (
because Angstrom master checks out "openembedded-core/remotes/origin/angstrom-staging-yocto1.3"
)

thats default checkout of setup hopefully will change to 2013.12 release soon which will be based on dora release

Quoted 13 lines

Sorry.

/Ulf

Quoted 9 lines

see
commit a11bdc36a1be18cc5aa14682b2a2c9ee83141f51

Author: Martin Jansa <[email protected]>
Date:   Tue Oct 2 13:21:08 2012 +0000

tune-*: define more generic DEFAULTTUNE to share feed between
machines

Quoted 6 lines
Quoted 6 lines

meta/conf/machine/include/tune-cortexa5.inc

Quoted 6 lines
meta/conf/machine/include/tune-cortexa5.inc new file +6 -0
+# TUNE_FEATU4RES     = "armv7a vfp callconvention-hard"
+# TARGET_FPU        = "vfp"
+
+require conf/machine/include/arm/arch-armv7a.inc
+
+TUNEVALID[cortexa5] = "Enable Cortex-A5 specific processor

optimizations"

Quoted 1 line
Quoted 1 line

meta/conf/machine/include/tune-cortexa5.inc line 8

Quoted 1 line
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
+TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "cortexa5",

"-mtune=cortex-a5", "", d)}"

Quoted 7 lines
Quoted 7 lines

meta/conf/machine/include/tune-cortexa5.inc

Quoted 7 lines
meta/conf/machine/include/tune-cortexa5.inc new file +7 -0
+
+# 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}"

Quoted 1 line
Quoted 1 line

meta/conf/machine/include/tune-cortexa5.inc line 16

Quoted 1 line
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
+PACKAGE_EXTRA_ARCHS_tune-cortexa5t =

"${PACKAGE_EXTRA_ARCHS_tune-armv7at}"

Quoted 4 lines
Quoted 4 lines

meta/conf/machine/include/tune-cortexa5.inc

Quoted 4 lines
meta/conf/machine/include/tune-cortexa5.inc new file +4 -0
+
+# VFP Tunes
+AVAILTUNES += "cortexa5hf cortexa5thf"
+TUNE_FEATURES_tune-cortexa5hf ?= "${TUNE_FEATURES_tune-armv7ahf}

cortexa5"

Quoted 1 line
Quoted 1 line

meta/conf/machine/include/tune-cortexa5.inc line 21

Quoted 1 line
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
+TUNE_FEATURES_tune-cortexa5thf ?= "${TUNE_FEATURES_tune-armv7athf}

cortexa5"

Quoted 1 line
Quoted 1 line

meta/conf/machine/include/tune-cortexa5.inc line 22

Quoted 1 line
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
+PACKAGE_EXTRA_ARCHS_tune-cortexa5hf =

"${PACKAGE_EXTRA_ARCHS_tune-armv7ahf}"

Quoted 1 line
Quoted 1 line

meta/conf/machine/include/tune-cortexa5.inc line 23

Quoted 1 line
meta/conf/machine/include/tune-cortexa5.inc new file +1 -0
+PACKAGE_EXTRA_ARCHS_tune-cortexa5thf =

"${PACKAGE_EXTRA_ARCHS_tune-armv7athf}"

Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
meta/conf/machine/include/tune-cortexa5.inc new file +1 -1
+
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Best Regards
Ulf Samuelsson
[email protected]
+46 722 427437

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core