Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | DEFAULTTUNE ?= "mips32r2-74kc" |
| 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[74kc] = "Enable MIPS 74K with DSPr2 processor optimizations" |
| 10 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "74kc", " -mtune=74kc", "", d)}" |
| 11 | |
| 12 | AVAILTUNES += "mips32r2-74kc mips32r2-74kc-m16" |
| 13 | AVAILTUNES += "mips32r2el-74kc mips32r2el-74kc-m16" |
| 14 | |
| 15 | # big endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16 |
| 16 | TUNE_FEATURES_tune-mips32r2-74kc = "${TUNE_FEATURES_tune-mips32r2-nf} 74kc" |
| 17 | TUNE_FEATURES_tune-mips32r2-74kc-m16 = "${TUNE_FEATURES_tune-mips32r2-74kc} mips16e" |
| 18 | |
| 19 | MIPSPKGSFX_VARIANT_tune-mips32r2-74kc = "mips32r2-74kc" |
| 20 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-nf} mips32r2-74kc-nf" |
| 21 | QEMU_EXTRAOPTIONS_mips32r2-74kc-nf = " -cpu 24Kc" |
| 22 | |
| 23 | MIPSPKGSFX_VARIANT_tune-mips32r2-74kc-m16 = "mips32r2-74kc${MIPSPKGSFX_MIPS16E}" |
| 24 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-74kc} mips32r2-74kc-m16-nf" |
| 25 | QEMU_EXTRAOPTIONS_mips32r2-74kc-m16-nf = " -cpu 24KEc" |
| 26 | |
| 27 | # little endian: kc+dsp2=kc, kc+dsp2+mips16e=kc-m16 |
| 28 | TUNE_FEATURES_tune-mips32r2el-74kc = "${TUNE_FEATURES_tune-mips32r2el-nf} 74kc" |
| 29 | TUNE_FEATURES_tune-mips32r2el-74kc-m16 = "${TUNE_FEATURES_tune-mips32r2el-74kc} mips16e" |
| 30 | |
| 31 | MIPSPKGSFX_VARIANT_tune-mips32r2el-74kc = "mips32r2el-74kc" |
| 32 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-nf} mips32r2el-74kc-nf" |
| 33 | QEMU_EXTRAOPTIONS_mips32r2el-74kc-nf = " -cpu 24Kc" |
| 34 | |
| 35 | MIPSPKGSFX_VARIANT_tune-mips32r2el-74kc-m16 = "mips32r2el-74kc${MIPSPKGSFX_MIPS16E}" |
| 36 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-74kc} mips32r2el-74kc-m16-nf" |
| 37 | QEMU_EXTRAOPTIONS_mips32r2el-74kc-m16-nf = " -cpu 24KEc" |