Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | DEFAULTTUNE ?= "mips64r2" |
| 2 | |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 3 | require conf/machine/include/mips/tune-mips64.inc |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | |
| 5 | TUNEVALID[mips64r2] = "Enable mips64r2 specific processor optimizations" |
| 6 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'mips64r2', ' -march=mips64r2', '', d)}" |
| 7 | |
| 8 | # Base tunes |
| 9 | AVAILTUNES += "mips64r2 mips64r2el" |
| 10 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 11 | TUNE_FEATURES:tune-mips64r2 = "${TUNE_FEATURES:tune-mips64} mips64r2" |
| 12 | BASE_LIB:tune-mips64r2 = "lib64" |
| 13 | MIPSPKGSFX_VARIANT:tune-mips64r2 = "mips64r2" |
| 14 | PACKAGE_EXTRA_ARCHS:tune-mips64r2 = "mips64 mips64r2" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | TUNE_FEATURES:tune-mips64r2el = "${TUNE_FEATURES:tune-mips64el} mips64r2" |
| 17 | BASE_LIB:tune-mips64r2el = "lib64" |
| 18 | MIPSPKGSFX_VARIANT:tune-mips64r2el = "mips64r2el" |
| 19 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el = "mips64el mips64r2el" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 20 | |
| 21 | # MIPS 64r2 Soft Float |
| 22 | AVAILTUNES += "mips64r2-nf mips64r2el-nf" |
| 23 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | TUNE_FEATURES:tune-mips64r2-nf = "${TUNE_FEATURES:tune-mips64-nf} mips64r2" |
| 25 | BASE_LIB:tune-mips64r2-nf = "lib64" |
| 26 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf = "${TUNE_ARCH}" |
| 27 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf = "mips64-nf mips64r2-nf" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 28 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 29 | TUNE_FEATURES:tune-mips64r2el-nf = "${TUNE_FEATURES:tune-mips64el-nf} mips64r2" |
| 30 | BASE_LIB:tune-mips64r2el-nf = "lib64" |
| 31 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf = "${TUNE_ARCH}" |
| 32 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf = "mips64el-nf mips64r2el-nf" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | |
| 34 | # MIPS 64r2 n32 |
| 35 | AVAILTUNES += "mips64r2-n32 mips64r2el-n32" |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | TUNE_FEATURES:tune-mips64r2-n32 = "${TUNE_FEATURES:tune-mips64-n32} mips64r2" |
| 38 | BASE_LIB:tune-mips64r2-n32 = "lib32" |
| 39 | MIPSPKGSFX_VARIANT:tune-mips64r2-n32 = "${TUNE_ARCH}" |
| 40 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-n32 = "mips64-n32 mips64r2-n32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | TUNE_FEATURES:tune-mips64r2el-n32 = "${TUNE_FEATURES:tune-mips64el-n32} mips64r2" |
| 43 | BASE_LIB:tune-mips64r2el-n32 = "lib32" |
| 44 | MIPSPKGSFX_VARIANT:tune-mips64r2el-n32 = "${TUNE_ARCH}" |
| 45 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-n32 = "mips64el-n32 mips64r2el-n32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | |
| 47 | # MIPS 64r2 n32 and Soft Float |
| 48 | AVAILTUNES += "mips64r2-nf-n32 mips64r2el-nf-n32" |
| 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | TUNE_FEATURES:tune-mips64r2-nf-n32 = "${TUNE_FEATURES:tune-mips64-nf-n32} mips64r2" |
| 51 | BASE_LIB:tune-mips64r2-nf-n32 = "lib32" |
| 52 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf-n32 = "${TUNE_ARCH}" |
| 53 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf-n32 = "mips64-nf-n32 mips64r2-nf-n32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | TUNE_FEATURES:tune-mips64r2el-nf-n32 = "${TUNE_FEATURES:tune-mips64el-nf-n32} mips64r2" |
| 56 | BASE_LIB:tune-mips64r2el-nf-n32 = "lib32" |
| 57 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf-n32 = "${TUNE_ARCH}" |
| 58 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf-n32 = "mips64el-nf-n32 mips64r2el-nf-n32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 59 | |
| 60 | # MIPS 64r2 o32 |
| 61 | AVAILTUNES += "mips64r2-o32 mips64r2el-o32" |
| 62 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 63 | TUNE_FEATURES:tune-mips64r2-o32 = "${TUNE_FEATURES:tune-mips64-o32} mips64r2" |
| 64 | BASE_LIB:tune-mips64r2-o32 = "lib" |
| 65 | MIPSPKGSFX_VARIANT:tune-mips64r2-o32 = "${TUNE_ARCH}" |
| 66 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-o32 = "mips mips64-o32 mips64r2-o32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 67 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 68 | TUNE_FEATURES:tune-mips64r2el-o32 = "${TUNE_FEATURES:tune-mips64el-o32} mips64r2" |
| 69 | BASE_LIB:tune-mips64r2el-o32 = "lib" |
| 70 | MIPSPKGSFX_VARIANT:tune-mips64r2el-o32 = "${TUNE_ARCH}" |
| 71 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-o32 = "mipsel mips64el-o32 mips64r2el-o32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 72 | |
| 73 | # MIPS 64r2 o32 and Soft Float |
| 74 | AVAILTUNES += "mips64r2-nf-o32 mips64r2el-nf-o32" |
| 75 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 76 | TUNE_FEATURES:tune-mips64r2-nf-o32 = "${TUNE_FEATURES:tune-mips64-nf-o32} mips64r2" |
| 77 | BASE_LIB:tune-mips64r2-nf-o32 = "lib" |
| 78 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf-o32 = "${TUNE_ARCH}" |
| 79 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf-o32 = "mips-nf mips64r2-nf-o32" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 80 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 81 | TUNE_FEATURES:tune-mips64r2el-nf-o32 = "${TUNE_FEATURES:tune-mips64el-nf-o32} mips64r2" |
| 82 | BASE_LIB:tune-mips64r2el-nf-o32 = "lib" |
| 83 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf-o32 = "${TUNE_ARCH}" |
| 84 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf-o32 = "mipsel-nf mips64r2el-nf-o32" |