mirror of
https://git.yoctoproject.org/poky
synced 2026-04-02 17:02:21 +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
663 B
PHP
15 lines
663 B
PHP
DEFAULTTUNE ?= "ppce500mc"
|
|
|
|
require conf/machine/include/powerpc/arch-powerpc.inc
|
|
|
|
TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations"
|
|
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "-mcpu=e500mc", "", d)}"
|
|
TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "${PPCPKGARCH}", d)}"
|
|
|
|
AVAILTUNES = "ppce500mc"
|
|
TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc"
|
|
PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "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)}"
|