Skip to contentSkip to conversation

powerpc: fix overly aggressive TUNE_PKGARCH set

PATCH In review Christopher Larson 5 participants 9 messages Mar 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix overly aggressive TUNE_PKGARCH set

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +3 -2
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e
 PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
 
 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
 
 # Basic tune definitions
-AVAILTUNES += "powerpc powerpc-nf" 
+AVAILTUNES += "powerpc powerpc-nf"
 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft"
+TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}"
 BASE_LIB_tune-powerpc-nf = "lib"
 PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf"
 TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard"
+TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}"
 BASE_LIB_tune-powerpc = "lib"
 PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc"
Signature · 1 line
1.7.7
#1 lore raw
Quoted 31 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

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

 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e

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

 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"

 # Basic tune definitions

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -1
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"
Quoted 8 lines

 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" +TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}" BASE_LIB_tune-powerpc-nf = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}" BASE_LIB_tune-powerpc = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

Signature · 1 line
Christopher Larson
#2 lore raw
Quoted 29 lines · Chris Larson
Quoted 28 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

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

 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e

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

 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"

Quoted 16 lines
Quoted 11 lines

 # Basic tune definitions

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -1
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"

 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" +TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}" BASE_LIB_tune-powerpc-nf = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}" BASE_LIB_tune-powerpc = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

I thought this was already fixed in my patch. Seems like it was not applied?

-M

commit 216b54e23a995aea79499b88a99f606bb65579af

Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

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

(quoted diff) +0 -0

b/meta/conf/machine/include/powerpc/arch-powerp
index c9b2829..9f588e8 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)}"
-
-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"

#3 lore raw
Quoted 55 lines · On Thu, Mar 22, 2012 at 8:21 AM, McClintock Matthew-B29882…
Quoted 29 lines · Chris Larson
Quoted 28 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

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

 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e

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

 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"

Quoted 16 lines
Quoted 11 lines

 # Basic tune definitions

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -1
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"

 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" +TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}" BASE_LIB_tune-powerpc-nf = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}" BASE_LIB_tune-powerpc = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

I thought this was already fixed in my patch. Seems like it was not applied?

-M

commit 216b54e23a995aea79499b88a99f606bb65579af
Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

Quoted 6 lines

   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

Ah, indeed, apparently it was not. That said, it looks like your version will end up with TUNE_PKGARCH like ppce500mc-nf, is that correct? You know this stuff better than I do.

Signature · 1 line
Christopher Larson
#4 lore raw
Quoted 59 lines · Chris Larson
Quoted 57 lines · On Thu, Mar 22, 2012 at 8:21 AM, McClintock Matthew-B29882…
Quoted 29 lines · Chris Larson
Quoted 28 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

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

 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e

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

 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"

Quoted 16 lines
Quoted 11 lines

 # Basic tune definitions

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -1
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"

 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" +TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}" BASE_LIB_tune-powerpc-nf = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}" BASE_LIB_tune-powerpc = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

I thought this was already fixed in my patch. Seems like it was not applied?

-M

commit 216b54e23a995aea79499b88a99f606bb65579af
Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

   arch-powerpc.inc: use default value of TUNE_PKGARCH

Quoted 8 lines
Quoted 4 lines

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

Ah, indeed, apparently it was not. That said, it looks like your version will end up with TUNE_PKGARCH like ppce500mc-nf, is that correct? You know this stuff better than I do.

Ugh. I pasted an old version of my patch the correct version is here:

commit 216b54e23a995aea79499b88a99f606bb65579af

Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

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

(quoted diff) +0 -0

b/meta/conf/machine/include/powerpc/arch-powerpc.inc index c9b2829..9f588e8 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)}"
-
-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"

#5 lore raw
Quoted 95 lines · On Thu, Mar 22, 2012 at 8:32 AM, McClintock Matthew-B29882…
Quoted 59 lines · Chris Larson
Quoted 57 lines · On Thu, Mar 22, 2012 at 8:21 AM, McClintock Matthew-B29882…
Quoted 29 lines · Chris Larson
Quoted 28 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

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

 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -0
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e

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

 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"

Quoted 16 lines
Quoted 11 lines

 # Basic tune definitions

meta/conf/machine/include/powerpc/arch-powerpc.inc +1 -1
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"

 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" +TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}" BASE_LIB_tune-powerpc-nf = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}" BASE_LIB_tune-powerpc = "lib" PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

I thought this was already fixed in my patch. Seems like it was not applied?

-M

commit 216b54e23a995aea79499b88a99f606bb65579af
Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

   arch-powerpc.inc: use default value of TUNE_PKGARCH

Quoted 8 lines
Quoted 4 lines

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

Ah, indeed, apparently it was not. That said, it looks like your version will end up with TUNE_PKGARCH like ppce500mc-nf, is that correct? You know this stuff better than I do.

Ugh. I pasted an old version of my patch the correct version is here:

commit 216b54e23a995aea79499b88a99f606bb65579af
Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

   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 +0 -0
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)}"

meta/conf/machine/include/powerpc/arch-powerpc.inc

Quoted 6 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -3
-
-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}"

Cool, thanks. For what it's worth, oe-core folk, this has my ack, as Mentor is going to need this fix also in the long term :)

Signature · 1 line
Christopher Larson
#6 lore raw
Quoted 101 lines · Chris Larson
Quoted 99 lines · On Thu, Mar 22, 2012 at 8:32 AM, McClintock Matthew-B29882…
Quoted 59 lines · Chris Larson
Quoted 57 lines · On Thu, Mar 22, 2012 at 8:21 AM, McClintock Matthew-B29882…
Quoted 29 lines · Chris Larson
Quoted 28 lines · Christopher Larson

From: Christopher Larson <[email protected]>

There's a problem in arch-powerpc.inc today, wherein it directly sets TUNE_PKGARCH, rather than setting TUNE_PKGARCH_tune-<tuning>. As a result, more specific tuning files (e.g. ppce500mc) then see their TUNE_PKGARCH_tune-<tuning> variable definitions no longer obeyed. As a consequence, the TUNE_PKGARCH ends up as 'powerpc' or 'powerpc-nf' rather than 'ppce500mc', which in turn causes a 'TUNE_PKGARCH not in PACKAGE_ARCHS' failure in the build.

To fix, the .inc now sets TUNE_PKGARCH_tune-powerpc and TUNE_PKGARCH_tune-powerpc-nf rather than TUNE_PKGARCH.

---
 meta/conf/machine/include/powerpc/arch-powerpc.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -1
index c9b2829..f811a3e 100644
@@ -21,13 +21,14 @@ ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e
 PPCPKGSFX_FPU = "${@bb.utils.contains("TUNE_FEATURES", "fpu-hard" , "", "-nf", d)}"
 
 PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
 
Quoted 16 lines

meta/conf/machine/include/powerpc/arch-powerpc.inc ABIEXTENSION = "${@['','spe'][d.getVar('TARGET_FPU', True) in ['ppc-efd', 'ppc-e · line 34

Quoted 11 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +3 -1
 # Basic tune definitions
-AVAILTUNES += "powerpc powerpc-nf"
+AVAILTUNES += "powerpc powerpc-nf"
 TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft"
+TUNE_PKGARCH_tune-powerpc-nf = "${PPCPKGARCH}"
 BASE_LIB_tune-powerpc-nf = "lib"
 PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf"
 TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard"
+TUNE_PKGARCH_tune-powerpc = "${PPCPKGARCH}"
 BASE_LIB_tune-powerpc = "lib"
 PACKAGE_EXTRA_ARCHS_tune-powerpc = "powerpc

Hmm, actually, there's no reason these can't just set TUNE_PKGARCH_tune-powerpc = "powerpc", etc rather than using the PPCPKGARCH indirection. Anyone more familiar with the tuning code have an opinion here?

I thought this was already fixed in my patch. Seems like it was not applied?

-M

commit 216b54e23a995aea79499b88a99f606bb65579af

Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

arch-powerpc.inc: use default value of TUNE_PKGARCH

Quoted 8 lines
Quoted 4 lines

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

Ah, indeed, apparently it was not. That said, it looks like your version will end up with TUNE_PKGARCH like ppce500mc-nf, is that correct? You know this stuff better than I do.

Ugh. I pasted an old version of my patch the correct version is here:

commit 216b54e23a995aea79499b88a99f606bb65579af

Author: Matthew McClintock <[email protected]>
Date:   Mon Feb 27 10:58:45 2012 -0600

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 +0 -0
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)}"

meta/conf/machine/include/powerpc/arch-powerpc.inc +0 -3
-
-PPCPKGARCH = "${TUNE_ARCH}${PPCPKGSFX_FPU}"
-TUNE_PKGARCH ?= "${PPCPKGARCH}"
Quoted 5 lines

meta/conf/machine/include/powerpc/arch-powerpc.inc

Quoted 2 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +2 -0
+PPCPKGSFX_FPU = "${@['', '-nf'][d.getVar('TARGET_FPU',d,1) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"

Cool, thanks. For what it's worth, oe-core folk, this has my ack, as Mentor is going to need this fix also in the long term :)

d.getVar('TARGET_FPU',d,1) is not valid.

Can someone please send me a correct version of this patch! :)

Cheers,

Richard

#7 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..c5fd6b7 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', True) in ['fpu-soft']]}"
+TUNE_PKGARCH_append = "${PPCPKGSFX_FPU}"
 
 # Basic tune definitions
 AVAILTUNES += "powerpc powerpc-nf" 
Signature · 1 line
1.7.6.1
#8 lore raw

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

Quoted 7 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(-)

Merged to master, thanks.

Richard