diff options
author | André Draszik <adraszik@tycoint.com> | 2016-06-10 16:12:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-12 23:47:19 +0100 |
commit | a9120996e032fbc6472dadbe39a3616b8826d9e5 (patch) | |
tree | 50a10f1e55c13dc031b728b390ea7e91fc972733 /meta/conf | |
parent | 7acb3db0b1a93977e67e4e31ff05c4b081e34d90 (diff) | |
download | poky-a9120996e032fbc6472dadbe39a3616b8826d9e5.tar.gz |
mips: add tunes for (some) 24K cores
- add 24kc big and little endian, which is based on mips32r2 w/o FPU
- add 24kec which is 24kc + DSP
- both can have the MIPS16e ASE enabled in their tunes
(From OE-Core rev: cccd8b09523d8f0c1df97d08181737681db13f37)
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/mips/tune-mips-24k.inc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/conf/machine/include/mips/tune-mips-24k.inc b/meta/conf/machine/include/mips/tune-mips-24k.inc new file mode 100644 index 0000000000..154ab56990 --- /dev/null +++ b/meta/conf/machine/include/mips/tune-mips-24k.inc | |||
@@ -0,0 +1,45 @@ | |||
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 | |||
26 | MIPSPKGSFX_VARIANT_tune-mips32r2-24kec = "mips32r2-24kec" | ||
27 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kc} mips32r2-24kec-nf" | ||
28 | |||
29 | MIPSPKGSFX_VARIANT_tune-mips32r2-24kec-m16 = "mips32r2-24kec${MIPSPKGSFX_MIPS16E}" | ||
30 | PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2-24kec} mips32r2-24kec-m16-nf" | ||
31 | |||
32 | |||
33 | # little endian: kc, kc+dsp=kec, kc+dsp+mips16e=kec-m16 | ||
34 | TUNE_FEATURES_tune-mips32r2el-24kc = "${TUNE_FEATURES_tune-mips32r2el-nf} 24kc" | ||
35 | TUNE_FEATURES_tune-mips32r2el-24kec = "${TUNE_FEATURES_tune-mips32r2el-nf} 24kec" | ||
36 | TUNE_FEATURES_tune-mips32r2el-24kec-m16 = "${TUNE_FEATURES_tune-mips32r2el-24kec} mips16e" | ||
37 | |||
38 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kc = "mips32r2el-24kc" | ||
39 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kc = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-nf} mips32r2el-24kc-nf" | ||
40 | |||
41 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kec = "mips32r2el-24kec" | ||
42 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kc} mips32r2el-24kec-nf" | ||
43 | |||
44 | MIPSPKGSFX_VARIANT_tune-mips32r2el-24kec-m16 = "mips32r2el-24kec${MIPSPKGSFX_MIPS16E}" | ||
45 | PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec-m16 = "${PACKAGE_EXTRA_ARCHS_tune-mips32r2el-24kec} mips32r2el-24kec-m16-nf" | ||