summaryrefslogtreecommitdiffstats
path: root/meta/conf/machine/include/mips
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/machine/include/mips')
-rw-r--r--meta/conf/machine/include/mips/README19
-rw-r--r--meta/conf/machine/include/mips/arch-mips.inc10
2 files changed, 27 insertions, 2 deletions
diff --git a/meta/conf/machine/include/mips/README b/meta/conf/machine/include/mips/README
index c375f316df..62fa1561ba 100644
--- a/meta/conf/machine/include/mips/README
+++ b/meta/conf/machine/include/mips/README
@@ -1,3 +1,6 @@
12016/09/30 - Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
2 - Add Release 6 support
3
12012/03/30 - Mark Hatle <mark.hatle@windriver.com> 42012/03/30 - Mark Hatle <mark.hatle@windriver.com>
2 - Initial Version 5 - Initial Version
3 6
@@ -6,9 +9,14 @@ MIPS currently defines 12 ABIs. Combinations of:
6 *) Hardware/Software Floating Point 9 *) Hardware/Software Floating Point
7 *) o32, n32, n64 ABI 10 *) o32, n32, n64 ABI
8 11
12Release 6 of the ISA is a major revision and doesn't build up on previous
13releases of the ISA.
14
15For more details about tuples, check https://wiki.debian.org/Multiarch/Tuples
16
9TUNE_ARCH, the GNU canonical arch, is defined as: 17TUNE_ARCH, the GNU canonical arch, is defined as:
10 18
11mips${MIPSPKGSFX_BYTE}${MIPSPKGSFX_ENDIAN} 19"mips${MIPSPKGSFX_32R6}${MIPSPKGSFX_64R6}${MIPSPKGSFX_BYTE}${MIPSPKGSFX_R6}${MIPSPKGSFX_ENDIAN}"
12 20
13The package arch is defined in such a way to generated a standard naming 21The package arch is defined in such a way to generated a standard naming
14scheme. The scheme is: <mips variant>[-nf][-n32] 22scheme. The scheme is: <mips variant>[-nf][-n32]
@@ -34,3 +42,12 @@ that the tune is using a non-floating point ABI.
34MIPSPKGSFX_ABI - This is used to specify an alternative ABI when the previous 42MIPSPKGSFX_ABI - This is used to specify an alternative ABI when the previous
35values are not enough to distringuish the package. "-n32" is added when 43values are not enough to distringuish the package. "-n32" is added when
36building for N32 ABI. 44building for N32 ABI.
45
46MIPSPKGSFX_R6 - This is used to specify the presence of release 6.
47"r6" is added in the tuple for release 6 of the isa.
48
49MIPSPKGSFX_64R6 - This is used to specify "isa" in the tuple.
50Release 6 onwards we use "mipsisa64" instead of just "mips64".
51
52MIPSPKGSFX_32R6 - This is used to specify "isa32" in the tuple.
53Release 6 onwards we use "mipsisa32" instead of just "mips".
diff --git a/meta/conf/machine/include/mips/arch-mips.inc b/meta/conf/machine/include/mips/arch-mips.inc
index 28d3b51b05..50c4c82683 100644
--- a/meta/conf/machine/include/mips/arch-mips.inc
+++ b/meta/conf/machine/include/mips/arch-mips.inc
@@ -32,14 +32,22 @@ TUNEVALID[fpu-hard] = "Use hardware FPU"
32TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', ' -msoft-float', d)}" 32TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', ' -msoft-float', d)}"
33TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', '', 'soft', d)}" 33TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', '', 'soft', d)}"
34 34
35# MIPS r6 ABI
36TUNEVALID[r6] = "Use r6"
37TUNEVALID[mipsisa64r6] = "Use 64r6"
38TUNEVALID[mipsisa32r6] = "Use 32r6"
39
35# Package naming 40# Package naming
36MIPSPKGSFX_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'el', d)}" 41MIPSPKGSFX_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'el', d)}"
37MIPSPKGSFX_BYTE = "${@bb.utils.contains('TUNE_FEATURES', 'n64' , '64', '', d)}" 42MIPSPKGSFX_BYTE = "${@bb.utils.contains('TUNE_FEATURES', 'n64' , '64', '', d)}"
38MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}" 43MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}"
39MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}" 44MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}"
40MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}" 45MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}"
46MIPSPKGSFX_R6 = "${@bb.utils.contains('TUNE_FEATURES', 'r6', 'r6', '', d)}"
47MIPSPKGSFX_64R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', 'isa', '', d)}"
48MIPSPKGSFX_32R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa32r6', 'isa32', '', d)}"
41 49
42TUNE_ARCH = "mips${MIPSPKGSFX_BYTE}${MIPSPKGSFX_ENDIAN}" 50TUNE_ARCH = "mips${MIPSPKGSFX_32R6}${MIPSPKGSFX_64R6}${MIPSPKGSFX_BYTE}${MIPSPKGSFX_R6}${MIPSPKGSFX_ENDIAN}"
43TUNE_PKGARCH = "${MIPSPKGSFX_VARIANT_tune-${DEFAULTTUNE}}${MIPSPKGSFX_FPU}${MIPSPKGSFX_ABI}" 51TUNE_PKGARCH = "${MIPSPKGSFX_VARIANT_tune-${DEFAULTTUNE}}${MIPSPKGSFX_FPU}${MIPSPKGSFX_ABI}"
44 52
45# Base tunes 53# Base tunes