Skip to contentSkip to conversation

arch-powerpc.inc: use default value of TUNE_PKGARCH

PATCH Superseded Matthew McClintock 5 participants 8 messages Mar 7, 2012 – Mar 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch-powerpc.inc: use default value of TUNE_PKGARCH

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -4
index c9b2829..abd72ed 100644
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
 
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"
 
 # Basic tune definitions
 AVAILTUNES += "powerpc powerpc-nf" 
Signature · 1 line
1.7.6.1
Tested-by on v1 1/1
#1 lore raw

Re: [PATCH] arch-powerpc.inc: use default value ofTUNE_PKGARCH

Quoted 31 lines

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc index c9b2829..abd72ed 100644

meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
@@ -18,10 +18,8 @@ TARGET_FPU .= 
 "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) 

in ['ppc-efd', 'ppc-efs']]}"

-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -3
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', 

'-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}" +TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"

Quoted 2 lines

# Basic tune definitions
AVAILTUNES += "powerpc powerpc-nf"

This fixes my issues with e500v2 cores.

#2 lore raw
In reply to Matthew McClintock
Quoted 13 lines · Matthew McClintock

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..abd72ed 100644

meta/conf/machine/include/powerpc/arch-powerpc.inc TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)} · line 22

Quoted 9 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -4
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
 
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"

Can we please do d.getVar(xxx, True) and not bb.data and ,1 :)

Cheers,

Richard

#3 lore raw

PATCH v2 1/1 arch-powerpc.inc: use default value of TUNE_PKGARCH

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -4
index c9b2829..9f588e8 100644
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
 
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][d.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"
 
 # Basic tune definitions
 AVAILTUNES += "powerpc powerpc-nf" 
Signature · 1 line
1.7.6.1
#4 lore raw
In reply to Richard Purdie
Quoted 17 lines · Richard Purdie
Quoted 16 lines · Matthew McClintock

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
  meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
  1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..abd72ed 100644
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
  ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
 
Quoted 8 lines

meta/conf/machine/include/powerpc/arch-powerpc.inc TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)} · line 22

Quoted 6 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -4
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"

Can we please do d.getVar(xxx, True) and not bb.data and ,1 :)

This was originally done with a check for fpu-hard and not fpu-soft to ensure that fpu-soft became the default value when one or the other wasn't set.

I don't know if it really matters which is used, but that is why it was done that way.

--Mark

Quoted 9 lines

Cheers,

Richard

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

#5 lore raw
Quoted 36 lines · Mark Hatle
Quoted 22 lines · Richard Purdie
Quoted 20 lines · Matthew McClintock

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----

 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..abd72ed 100644
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES",
 "fpu-soft", "soft", "", d)}
 

 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"

Quoted 11 lines
Quoted 8 lines

-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -3
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in

['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"

Can we please do d.getVar(xxx, True) and not bb.data and ,1 :)

Quoted 6 lines

This was originally done with a check for fpu-hard and not fpu-soft to ensure that fpu-soft became the default value when one or the other wasn't set.

I don't know if it really matters which is used, but that is why it was done that way.

That logic was not quite working for us - since we don't set fpu-hard, but rather ppc-efd and ppc-efs... so I had to invert this...

-M

#6 lore raw
In reply to Matthew McClintock
Quoted 13 lines · Matthew McClintock

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..abd72ed 100644

meta/conf/machine/include/powerpc/arch-powerpc.inc TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)} · line 21

Quoted 8 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -4
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 
 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"
 
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"

bb.data is deprecated and we should translate:

bb.data.getVar('TARGET_FPU',d,1) -> d.getVar('TARGET_FPU', True)

Cheers,

Richard

#7 lore raw
Quoted 25 lines · Richard Purdie
Quoted 16 lines · Matthew McClintock

We can use the default value for TUNE_PKGARCH, and now we just append "-nf" if TARGET_FPU is fpu-soft

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    6 ++----

 1 files changed, 2 insertions(+), 4 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..abd72ed 100644
@@ -18,10 +18,8 @@ TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)}
 

 ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-efs']]}"

meta/conf/machine/include/powerpc/arch-powerpc.inc TARGET_FPU .= "${@bb.utils.contains("TUNE_FEATURES", "fpu-soft", "soft", "", d)} · line 21

Quoted 5 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -4
-PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
+PPCPKGSFX_FPU = "${@['', '-nf'][bb.data.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"

bb.data is deprecated and we should translate:

Quoted 1 line

bb.data.getVar('TARGET_FPU',d,1) -> d.getVar('TARGET_FPU', True)

I already sent a new patch here:

http://patches.openembedded.org/patch/22931/

-M