arch-powerpc: set PACKAGE_EXTRA_ARCHS
PATCH 1/1 arch-powerpc: set PACKAGE_EXTRA_ARCHS
Set PACKAGE_EXTRA_ARCHS for the generic tunes ("powerpc" and "powerpc-nf") thus allowing to use them instead of tuning to the specific CPU.
--- meta/conf/machine/include/powerpc/arch-powerpc.inc | 6 ++++-- meta/conf/machine/include/tune-ppc603e.inc | 2 +- meta/conf/machine/include/tune-ppce300c2.inc | 2 +- meta/conf/machine/include/tune-ppce500mc.inc | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc.inc +4 -2
@@ -25,9 +25,11 @@ TUNE_PKGARCH ?= "${PPCPKGARCH}" # Basic tune definitions AVAILTUNES += "powerpc powerpc-nf" -TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" -BASE_LIB_tune-powerpc = "lib" TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" BASE_LIB_tune-powerpc-nf = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" +TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +BASE_LIB_tune-powerpc = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} powerpc"
meta/conf/machine/include/tune-ppc603e.inc +1 -1
@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${P AVAILTUNES = "ppc603e" TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" -PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e" +PACKAGE_EXTRA_ARCHS_tune-ppc603e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc603e" # glibc configure options to get 603e specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-with-cpu=603e", "", d)}"
meta/conf/machine/include/tune-ppce300c2.inc +1 -1
@@ -8,4 +8,4 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "ppce300c2", AVAILTUNES += "ppce300c2" TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2" -PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "powerpc-nf ppce300c2" +PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c2"
meta/conf/machine/include/tune-ppce500mc.inc +1 -1
@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", AVAILTUNES = "ppce500mc" TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" -PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc" +PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc" # glibc configure options to get e500mc specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-with-cpu=e500mc", "", d)}"
Signature · 1 line
1.7.6
Hi guys,
any comments on this patch?
Regards, Ilya.
Quoted 66 lines · Ilya Yanok
Set
PACKAGE_EXTRA_ARCHSfor the generic tunes ("powerpc" and "powerpc-nf") thus allowing to use them instead of tuning to the specific CPU.Signed-off-by Ilya Yanok <[email protected]>--- meta/conf/machine/include/powerpc/arch-powerpc.inc | 6 ++++-- meta/conf/machine/include/tune-ppc603e.inc | 2 +- meta/conf/machine/include/tune-ppce300c2.inc | 2 +- meta/conf/machine/include/tune-ppce500mc.inc | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-)meta/conf/machine/include/powerpc/arch-powerpc.inc +4
-2@@ -25,9 +25,11 @@ TUNE_PKGARCH ?= "${PPCPKGARCH}" # Basic tune definitions AVAILTUNES += "powerpc powerpc-nf" -TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" -BASE_LIB_tune-powerpc = "lib" TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" BASE_LIB_tune-powerpc-nf = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" +TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +BASE_LIB_tune-powerpc = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} powerpc"meta/conf/machine/include/tune-ppc603e.inc +1
-1@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${P AVAILTUNES = "ppc603e" TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" -PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e" +PACKAGE_EXTRA_ARCHS_tune-ppc603e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc603e" # glibc configure options to get 603e specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-with-cpu=603e", "", d)}"meta/conf/machine/include/tune-ppce300c2.inc +1
-1@@ -8,4 +8,4 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "ppce300c2", AVAILTUNES += "ppce300c2" TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2" -PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "powerpc-nf ppce300c2" +PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c2"meta/conf/machine/include/tune-ppce500mc.inc +1
-1@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", AVAILTUNES = "ppce500mc" TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" -PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc" +PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc" # glibc configure options to get e500mc specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-with-cpu=e500mc", "", d)}"
Quoted 25 lines · Ilya Yanok
Hi guys,
any comments on this patch?
Regards, Ilya.
Quoted 18 lines · Ilya Yanok
Set
PACKAGE_EXTRA_ARCHSfor the generic tunes ("powerpc" and "powerpc-nf") thus allowing to use them instead of tuning to the specific CPU.Signed-off-by Ilya Yanok <[email protected]>--- meta/conf/machine/include/powerpc/arch-powerpc.inc | 6 ++++-- meta/conf/machine/include/tune-ppc603e.inc | 2 +- meta/conf/machine/include/tune-ppce300c2.inc | 2 +- meta/conf/machine/include/tune-ppce500mc.inc | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-)meta/conf/machine/include/powerpc/arch-powerpc.inc +0
-0@@ -25,9 +25,11 @@ TUNE_PKGARCH ?= "${PPCPKGARCH}"
Quoted 10 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc TUNE_PKGARCH ?= "${PPCPKGARCH}" · line 33
Quoted 10 lines
meta/conf/machine/include/powerpc/arch-powerpc.inc +4
-2# Basic tune definitions AVAILTUNES += "powerpc powerpc-nf" -TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" -BASE_LIB_tune-powerpc = "lib" TUNE_FEATURES_tune-powerpc-nf ?= "m32 fpu-soft" BASE_LIB_tune-powerpc-nf = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf" +TUNE_FEATURES_tune-powerpc ?= "m32 fpu-hard" +BASE_LIB_tune-powerpc = "lib" +PACKAGE_EXTRA_ARCHS_tune-powerpc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} powerpc"
Usually we try to match the order of the AVAILTUNES, it just makes it easier to look at, has no real technical consideration. So I'd change the order of what you have above.
The last line thought is wrong. powerpc-nf and powerpc are not compatible with each other. You can't list them both in the same EXTRA_ARCHS, as that indicates to the package feed a compatible set of packaging ABIs.
This is a place that people familiar with ARM architectures often get confused on PowerPC. The two ABIs often times can run together with limited problems, but there WILL be problems as register passing and context switching (setjmp/longjmp) are defined differently in the two ABIs.
So based on that, it appears to me that the only thing missing is:
PACKAGE_EXTRA_ARCHS_tune-powerpc-nf = "powerpc-nf"
Which I thought was automatic if the tune selected with powerpc-nf.
Quoted 11 lines
meta/conf/machine/include/tune-ppc603e.inc TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${P · line 11
Quoted 11 lines
meta/conf/machine/include/tune-ppc603e.inc +1
-1@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${P AVAILTUNES = "ppc603e" TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" -PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e" +PACKAGE_EXTRA_ARCHS_tune-ppc603e = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppc603e"
The above (assumine the previous comment on powerpc-nf) would result in the same thing. This should be ok, but I'm not sure I see any advantage to doing it this way.
Quoted 8 lines
Quoted 8 lines
meta/conf/machine/include/tune-ppc603e.inc +0
-0# glibc configure options to get 603e specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-with-cpu=603e", "", d)}"meta/conf/machine/include/tune-ppce300c2.inc +0
-0@@ -8,4 +8,4 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "ppce300c2",
Quoted 4 lines
meta/conf/machine/include/tune-ppce300c2.inc TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce300c2", "ppce300c2", · line 11
Quoted 4 lines
meta/conf/machine/include/tune-ppce300c2.inc +1
-1AVAILTUNES += "ppce300c2" TUNE_FEATURES_tune-ppce300c2 = "m32 fpu-soft ppce300c2" -PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "powerpc-nf ppce300c2" +PACKAGE_EXTRA_ARCHS_tune-ppce300c2 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c2"
Same as above...
Quoted 10 lines
meta/conf/machine/include/tune-ppce500mc.inc TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", · line 11
Quoted 10 lines
meta/conf/machine/include/tune-ppce500mc.inc +1
-1@@ -8,7 +8,7 @@ TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", AVAILTUNES = "ppce500mc" TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" -PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc" +PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc"
Same as above..
Quoted 8 lines
meta/conf/machine/include/tune-ppce500mc.inc TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", · line 14
Quoted 2 lines
meta/conf/machine/include/tune-ppce500mc.inc +0
-0# glibc configure options to get e500mc specific library (for sqrt) GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-with-cpu=e500mc", "", d)}"_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core