blob: 9f8a17280419db13ea2482b0ad2a7fe6f01a2e97 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEFAULTTUNE ?= "ppce500mc"
2
3require conf/machine/include/powerpc/arch-powerpc.inc
4
5TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'ppce500mc', ' -mcpu=e500mc', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8AVAILTUNES += "ppce500mc"
Brad Bishop79641f22019-09-10 07:20:22 -04009TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc bigendian"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010TUNE_PKGARCH_tune-ppce500mc = "ppce500mc"
11PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce500mc"
12
13# glibc configure options to get e500mc specific library (for sqrt)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'ppce500mc', '-with-cpu=e500mc', '', d)}"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060015
16# pass -mcpu=e500mc for ppce500mc kernel cross compile
17TARGET_CC_KERNEL_ARCH = "-mcpu=e500mc"