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