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" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 15 | QEMU_EXTRAOPTIONS_mips64r2 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | TUNE_FEATURES:tune-mips64r2el = "${TUNE_FEATURES:tune-mips64el} mips64r2" |
| 18 | BASE_LIB:tune-mips64r2el = "lib64" |
| 19 | MIPSPKGSFX_VARIANT:tune-mips64r2el = "mips64r2el" |
| 20 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el = "mips64el mips64r2el" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 21 | QEMU_EXTRAOPTIONS_mips64r2el = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | |
| 23 | # MIPS 64r2 Soft Float |
| 24 | AVAILTUNES += "mips64r2-nf mips64r2el-nf" |
| 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | TUNE_FEATURES:tune-mips64r2-nf = "${TUNE_FEATURES:tune-mips64-nf} mips64r2" |
| 27 | BASE_LIB:tune-mips64r2-nf = "lib64" |
| 28 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf = "${TUNE_ARCH}" |
| 29 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf = "mips64-nf mips64r2-nf" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 30 | QEMU_EXTRAOPTIONS_mips64r2-nf = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | TUNE_FEATURES:tune-mips64r2el-nf = "${TUNE_FEATURES:tune-mips64el-nf} mips64r2" |
| 33 | BASE_LIB:tune-mips64r2el-nf = "lib64" |
| 34 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf = "${TUNE_ARCH}" |
| 35 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf = "mips64el-nf mips64r2el-nf" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 36 | QEMU_EXTRAOPTIONS_mips64r2el-nf = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | |
| 38 | # MIPS 64r2 n32 |
| 39 | AVAILTUNES += "mips64r2-n32 mips64r2el-n32" |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | TUNE_FEATURES:tune-mips64r2-n32 = "${TUNE_FEATURES:tune-mips64-n32} mips64r2" |
| 42 | BASE_LIB:tune-mips64r2-n32 = "lib32" |
| 43 | MIPSPKGSFX_VARIANT:tune-mips64r2-n32 = "${TUNE_ARCH}" |
| 44 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-n32 = "mips64-n32 mips64r2-n32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 45 | QEMU_EXTRAOPTIONS_mips64r2-n32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | TUNE_FEATURES:tune-mips64r2el-n32 = "${TUNE_FEATURES:tune-mips64el-n32} mips64r2" |
| 48 | BASE_LIB:tune-mips64r2el-n32 = "lib32" |
| 49 | MIPSPKGSFX_VARIANT:tune-mips64r2el-n32 = "${TUNE_ARCH}" |
| 50 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-n32 = "mips64el-n32 mips64r2el-n32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 51 | QEMU_EXTRAOPTIONS_mips64r2el-n32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 52 | |
| 53 | # MIPS 64r2 n32 and Soft Float |
| 54 | AVAILTUNES += "mips64r2-nf-n32 mips64r2el-nf-n32" |
| 55 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 56 | TUNE_FEATURES:tune-mips64r2-nf-n32 = "${TUNE_FEATURES:tune-mips64-nf-n32} mips64r2" |
| 57 | BASE_LIB:tune-mips64r2-nf-n32 = "lib32" |
| 58 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf-n32 = "${TUNE_ARCH}" |
| 59 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf-n32 = "mips64-nf-n32 mips64r2-nf-n32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 60 | QEMU_EXTRAOPTIONS_mips64r2-nf-n32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 61 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 62 | TUNE_FEATURES:tune-mips64r2el-nf-n32 = "${TUNE_FEATURES:tune-mips64el-nf-n32} mips64r2" |
| 63 | BASE_LIB:tune-mips64r2el-nf-n32 = "lib32" |
| 64 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf-n32 = "${TUNE_ARCH}" |
| 65 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf-n32 = "mips64el-nf-n32 mips64r2el-nf-n32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 66 | QEMU_EXTRAOPTIONS_mips64r2el-nf-32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 67 | |
| 68 | # MIPS 64r2 o32 |
| 69 | AVAILTUNES += "mips64r2-o32 mips64r2el-o32" |
| 70 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 71 | TUNE_FEATURES:tune-mips64r2-o32 = "${TUNE_FEATURES:tune-mips64-o32} mips64r2" |
| 72 | BASE_LIB:tune-mips64r2-o32 = "lib" |
| 73 | MIPSPKGSFX_VARIANT:tune-mips64r2-o32 = "${TUNE_ARCH}" |
| 74 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-o32 = "mips mips64-o32 mips64r2-o32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 75 | QEMU_EXTRAOPTIONS_mips64r2-o32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 76 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 77 | TUNE_FEATURES:tune-mips64r2el-o32 = "${TUNE_FEATURES:tune-mips64el-o32} mips64r2" |
| 78 | BASE_LIB:tune-mips64r2el-o32 = "lib" |
| 79 | MIPSPKGSFX_VARIANT:tune-mips64r2el-o32 = "${TUNE_ARCH}" |
| 80 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-o32 = "mipsel mips64el-o32 mips64r2el-o32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 81 | QEMU_EXTRAOPTIONS_mips64r2el-o32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 82 | |
| 83 | # MIPS 64r2 o32 and Soft Float |
| 84 | AVAILTUNES += "mips64r2-nf-o32 mips64r2el-nf-o32" |
| 85 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 86 | TUNE_FEATURES:tune-mips64r2-nf-o32 = "${TUNE_FEATURES:tune-mips64-nf-o32} mips64r2" |
| 87 | BASE_LIB:tune-mips64r2-nf-o32 = "lib" |
| 88 | MIPSPKGSFX_VARIANT:tune-mips64r2-nf-o32 = "${TUNE_ARCH}" |
| 89 | PACKAGE_EXTRA_ARCHS:tune-mips64r2-nf-o32 = "mips-nf mips64r2-nf-o32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 90 | QEMU_EXTRAOPTIONS_mips64r2-nf-o32 = " -cpu MIPS64R2-generic" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 91 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 92 | TUNE_FEATURES:tune-mips64r2el-nf-o32 = "${TUNE_FEATURES:tune-mips64el-nf-o32} mips64r2" |
| 93 | BASE_LIB:tune-mips64r2el-nf-o32 = "lib" |
| 94 | MIPSPKGSFX_VARIANT:tune-mips64r2el-nf-o32 = "${TUNE_ARCH}" |
| 95 | PACKAGE_EXTRA_ARCHS:tune-mips64r2el-nf-o32 = "mipsel-nf mips64r2el-nf-o32" |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 96 | QEMU_EXTRAOPTIONS_mips64r2el-nf-o32 = " -cpu MIPS64R2-generic" |