1*d159c7fbSAndrew GeisslerDEFAULTTUNE ?= "ppcp5" 2*d159c7fbSAndrew Geissler 3*d159c7fbSAndrew Geisslerrequire conf/machine/include/powerpc/arch-powerpc64.inc 4*d159c7fbSAndrew Geissler 5*d159c7fbSAndrew GeisslerTUNEVALID[power5] = "Enable IBM Power5 specific processor optimizations" 6*d159c7fbSAndrew GeisslerTUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power5', ' -mcpu=power5', '', d)}" 7*d159c7fbSAndrew Geissler 8*d159c7fbSAndrew GeisslerAVAILTUNES += "ppcp5 ppc64p5" 9*d159c7fbSAndrew GeisslerTUNE_FEATURES:tune-ppcp5 = "m32 fpu-hard power5 altivec bigendian" 10*d159c7fbSAndrew GeisslerBASE_LIB:tune-ppcp5 = "lib" 11*d159c7fbSAndrew GeisslerTUNE_PKGARCH:tune-ppcp5 = "ppcp5" 12*d159c7fbSAndrew GeisslerPACKAGE_EXTRA_ARCHS:tune-ppcp5 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc} ppcp5" 13*d159c7fbSAndrew Geissler 14*d159c7fbSAndrew GeisslerTUNE_FEATURES:tune-ppc64p5 = "m64 fpu-hard power5 altivec bigendian" 15*d159c7fbSAndrew GeisslerBASE_LIB:tune-ppc64p5 = "lib64" 16*d159c7fbSAndrew GeisslerTUNE_PKGARCH:tune-ppc64p5 = "ppc64p5" 17*d159c7fbSAndrew GeisslerPACKAGE_EXTRA_ARCHS:tune-ppc64p5 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc64} ppc64p5" 18*d159c7fbSAndrew Geissler 19*d159c7fbSAndrew Geissler# glibc configure options to get power5 specific library 20*d159c7fbSAndrew GeisslerGLIBC_EXTRA_OECONF:powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'power5', '--with-cpu=power5', '', d)}" 21*d159c7fbSAndrew GeisslerGLIBC_EXTRA_OECONF:powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'power5', '--with-cpu=power5', '', d)}" 22*d159c7fbSAndrew Geissler 23*d159c7fbSAndrew Geissler# QEMU usermode fails with invalid instruction error 24*d159c7fbSAndrew GeisslerMACHINE_FEATURES_BACKFILL_CONSIDERED:append = "${@bb.utils.contains('TUNE_FEATURES', 'power5', ' qemu-usermode', '', d)}" 25