mirror of
https://git.yoctoproject.org/poky
synced 2026-04-24 12:32:11 +02:00
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>
15 lines
633 B
HTML
15 lines
633 B
HTML
DEFAULTTUNE ?= "ppc603e"
|
|
|
|
require conf/machine/include/powerpc/arch-powerpc.inc
|
|
|
|
TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations"
|
|
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "-mcpu=603e", "", d)}"
|
|
TUNE_PKGARCH = "${@bb.utils.contains('TUNE_FEATURES', 'ppc603e', 'ppc603e', '${PPCPKGARCH}', d)}"
|
|
|
|
AVAILTUNES = "ppc603e"
|
|
TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e"
|
|
PACKAGE_EXTRA_ARCHS_tune-ppc603e = "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)}"
|