1*d159c7fbSAndrew GeisslerDEFAULTTUNE ?= "ppcp7" 2*d159c7fbSAndrew Geissler 3*d159c7fbSAndrew Geisslerrequire conf/machine/include/powerpc/arch-powerpc64.inc 4*d159c7fbSAndrew Geissler 5*d159c7fbSAndrew GeisslerTUNEVALID[power7] = "Enable IBM Power7 specific processor optimizations" 6*d159c7fbSAndrew GeisslerTUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'power7', ' -mcpu=power7', '', d)}" 7*d159c7fbSAndrew Geissler 8*d159c7fbSAndrew GeisslerAVAILTUNES += "ppcp7 ppc64p7" 9*d159c7fbSAndrew GeisslerTUNE_FEATURES:tune-ppcp7 = "m32 fpu-hard power7 altivec bigendian" 10*d159c7fbSAndrew GeisslerBASE_LIB:tune-ppcp7 = "lib" 11*d159c7fbSAndrew GeisslerTUNE_PKGARCH:tune-ppcp7 = "ppcp7" 12*d159c7fbSAndrew GeisslerPACKAGE_EXTRA_ARCHS:tune-ppcp7 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc} ppcp7" 13*d159c7fbSAndrew Geissler 14*d159c7fbSAndrew GeisslerTUNE_FEATURES:tune-ppc64p7 = "m64 fpu-hard power7 altivec bigendian" 15*d159c7fbSAndrew GeisslerBASE_LIB:tune-ppc64p7 = "lib64" 16*d159c7fbSAndrew GeisslerTUNE_PKGARCH:tune-ppc64p7 = "ppc64p7" 17*d159c7fbSAndrew GeisslerPACKAGE_EXTRA_ARCHS:tune-ppc64p7 = "${PACKAGE_EXTRA_ARCHS:tune-powerpc64} ppc64p7" 18*d159c7fbSAndrew Geissler 19*d159c7fbSAndrew Geissler# glibc configure options to get power7 specific library 20*d159c7fbSAndrew GeisslerGLIBC_EXTRA_OECONF:powerpc64 += "${@bb.utils.contains('TUNE_FEATURES', 'power7', '--with-cpu=power7', '', d)}" 21*d159c7fbSAndrew GeisslerGLIBC_EXTRA_OECONF:powerpc += "${@bb.utils.contains('TUNE_FEATURES', 'power7', '--with-cpu=power7', '', 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', 'power7', ' qemu-usermode', '', d)}" 25