Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | DEFAULTTUNE ?= "mips32r2-24kc" |
| 2 | |
| 3 | MIPSPKGSFX_MIPS16E ??= "" |
| 4 | |
| 5 | require conf/machine/include/tune-mips32r2.inc |
| 6 | require conf/machine/include/mips/feature-mips-mips16e.inc |
| 7 | |
| 8 | |
| 9 | TUNEVALID[24kc] = "Enable MIPS 24Kc processor optimizations" |
| 10 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "24kc", " -mtune=24kc", "", d)}" |
| 11 | TUNEVALID[24kec] = "Enable MIPS 24KEc processor optimizations, including DSP" |
| 12 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "24kec", " -mtune=24kec -mdsp", "", d)}" |
| 13 | |
| 14 | |
| 15 | AVAILTUNES += "mips32r2-24kc mips32r2-24kec mips32r2-24kec-m16" |
| 16 | AVAILTUNES += "mips32r2el-24kc mips32r2el-24kec mips32r2el-24kec-m16" |
| 17 | |
| 18 | # big endian: kc, kc+dsp=kec, kc+dsp+mips16e=kec-m16 |
| 19 | TUNE_FEATURES_tune-mips32r2-24kc = "${TUNE_FEATURES_tune-mips32r2-nf} 24kc" |
| 20 | TUNE_FEATURES_tune-mips32r2-24kec = "${TUNE_FEATURES_tune-mips32r2-nf} 24kec" |
| 21 | TUNE_FEATURES_tune-mips32r2-24kec-m16 = "${TUNE_FEATURES_tune-mips32r2-24kec} mips16e" |
| 22 | |
| 23 | MIPSPKGSFX_VARIANT_tune-mips32r2-24kc = "mips32r2-24kc" |
| 24 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-nf} mips32r2-24kc-nf" |
| 25 | QEMU_EXTRAOPTIONS_mips32r2-24kc-nf = " -cpu 24Kc" |
| 26 | |
| 27 | MIPSPKGSFX_VARIANT_tune-mips32r2-24kec = "mips32r2-24kec" |
| 28 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kc} mips32r2-24kec-nf" |
| 29 | QEMU_EXTRAOPTIONS_mips32r2-24kec-nf = " -cpu 24KEc" |
| 30 | |
| 31 | MIPSPKGSFX_VARIANT_tune-mips32r2-24kec-m16 = "mips32r2-24kec${MIPSPKGSFX_MIPS16E}" |
| 32 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec} mips32r2-24kec-m16-nf" |
| 33 | QEMU_EXTRAOPTIONS_mips32r2-24kec-m16-nf = " -cpu 24KEc" |
| 34 | |
| 35 | |
| 36 | # little endian: kc, kc+dsp=kec, kc+dsp+mips16e=kec-m16 |
| 37 | TUNE_FEATURES_tune-mips32r2el-24kc = "${TUNE_FEATURES_tune-mips32r2el-nf} 24kc" |
| 38 | TUNE_FEATURES_tune-mips32r2el-24kec = "${TUNE_FEATURES_tune-mips32r2el-nf} 24kec" |
| 39 | TUNE_FEATURES_tune-mips32r2el-24kec-m16 = "${TUNE_FEATURES_tune-mips32r2el-24kec} mips16e" |
| 40 | |
| 41 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kc = "mips32r2el-24kc" |
| 42 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-nf} mips32r2el-24kc-nf" |
| 43 | QEMU_EXTRAOPTIONS_mips32r2el-24kc-nf = " -cpu 24Kc" |
| 44 | |
| 45 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kec = "mips32r2el-24kec" |
| 46 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kc} mips32r2el-24kec-nf" |
| 47 | QEMU_EXTRAOPTIONS_mips32r2el-24kec-nf = " -cpu 24KEc" |
| 48 | |
| 49 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kec-m16 = "mips32r2el-24kec${MIPSPKGSFX_MIPS16E}" |
| 50 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec} mips32r2el-24kec-m16-nf" |
| 51 | QEMU_EXTRAOPTIONS_mips32r2el-24kec-m16-nf = " -cpu 24KEc" |