diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-08-11 23:53:50 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-12 17:21:57 +0100 |
commit | 246dcc3a22b188faef452268654daeff2501b030 (patch) | |
tree | 8cdf106714a6a4ba35cd478ee75b087cee2f94df /meta/conf/machine/include | |
parent | 1319890793589baae62d48e80782800063bf92fe (diff) | |
download | poky-246dcc3a22b188faef452268654daeff2501b030.tar.gz |
tune-ppc: Update to pass glibc configure option to get cpu specific support
We need --with-cpu based to glibc to get proper support on 603e & e500mc
to pickup proper math libs to deal with sqrt. These core do not
implement the fsqrt[s] instructions that the normal PPC math libs
utilize.
This causes use to not set AVAILTUNES specifically to the sub-arch only
as we arent generically compatiable.
(From OE-Core rev: 078699cb8c707830c86b55787fd535d87171388e)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include')
-rw-r--r-- | meta/conf/machine/include/tune-ppc603e.inc | 5 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500mc.inc | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/meta/conf/machine/include/tune-ppc603e.inc b/meta/conf/machine/include/tune-ppc603e.inc index da8114fed4..c743dde96e 100644 --- a/meta/conf/machine/include/tune-ppc603e.inc +++ b/meta/conf/machine/include/tune-ppc603e.inc | |||
@@ -6,6 +6,9 @@ TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations" | |||
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}" |
7 | TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${PPCPKGARCH}', d)}" | 7 | TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${PPCPKGARCH}', d)}" |
8 | 8 | ||
9 | AVAILTUNES += "ppc603e" | 9 | AVAILTUNES = "ppc603e" |
10 | TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" | 10 | TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e" |
11 | PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e" | 11 | PACKAGE_EXTRA_ARCHS_tune-ppc603e = "powerpc ppc603e" |
12 | |||
13 | # glibc configure options to get 603e specific library (for sqrt) | ||
14 | GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-with-cpu=603e", "", d)}" | ||
diff --git a/meta/conf/machine/include/tune-ppce500mc.inc b/meta/conf/machine/include/tune-ppce500mc.inc index 64e7bdcf0e..33820ef0e8 100644 --- a/meta/conf/machine/include/tune-ppce500mc.inc +++ b/meta/conf/machine/include/tune-ppce500mc.inc | |||
@@ -6,6 +6,9 @@ TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations" | |||
6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}" | 6 | TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}" |
7 | TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "${PPCPKGARCH}", d)}" | 7 | TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "${PPCPKGARCH}", d)}" |
8 | 8 | ||
9 | AVAILTUNES += "ppce500mc" | 9 | AVAILTUNES = "ppce500mc" |
10 | TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" | 10 | TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc" |
11 | PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc" | 11 | PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "powerpc ppce500mc" |
12 | |||
13 | # glibc configure options to get e500mc specific library (for sqrt) | ||
14 | GLIBC_EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-with-cpu=e500mc", "", d)}" | ||