blob: 30be86941ae53d844e35b32fe5e4c6d964f22a4a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "ppc64p5"
2
3require conf/machine/include/powerpc/arch-powerpc64.inc
4
5TUNEVALID[power5] = "Enable IBM Power5 specific processor optimizations"
6TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "power5", " -mcpu=power5", "", d)}"
7
8AVAILTUNES += "ppcp5 ppc64p5"
9TUNE_FEATURES_tune-ppcp5 = "m32 fpu-hard power5 altivec"
10BASE_LIB_tune-ppcp5 = "lib"
11TUNE_PKGARCH_tune-ppcp5 = "ppcp5"
12PACKAGE_EXTRA_ARCHS_tune-ppcp5 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppcp5"
13
14TUNE_FEATURES_tune-ppc64p5 = "m64 fpu-hard power5 altivec"
15BASE_LIB_tune-ppc64p5 = "lib64"
16TUNE_PKGARCH_tune-ppc64p5 = "ppc64p5"
17PACKAGE_EXTRA_ARCHS_tune-ppc64p5 = "${PACKAGE_EXTRA_ARCHS_tune-powerpc64} ppc64p5"
18
19# glibc configure options to get power5 specific library
20GLIBC_EXTRA_OECONF_powerpc64 += "${@bb.utils.contains("TUNE_FEATURES", "power5", "--with-cpu=power5", "", d)}"
21GLIBC_EXTRA_OECONF_powerpc += "${@bb.utils.contains("TUNE_FEATURES", "power5", "--with-cpu=power5", "", d)}"