diff options
Diffstat (limited to 'meta/conf/machine/include/mips')
| -rw-r--r-- | meta/conf/machine/include/mips/README | 19 | ||||
| -rw-r--r-- | meta/conf/machine/include/mips/arch-mips.inc | 10 |
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 @@ | |||
| 1 | 2016/09/30 - Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> | ||
| 2 | - Add Release 6 support | ||
| 3 | |||
| 1 | 2012/03/30 - Mark Hatle <mark.hatle@windriver.com> | 4 | 2012/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 | ||
| 12 | Release 6 of the ISA is a major revision and doesn't build up on previous | ||
| 13 | releases of the ISA. | ||
| 14 | |||
| 15 | For more details about tuples, check https://wiki.debian.org/Multiarch/Tuples | ||
| 16 | |||
| 9 | TUNE_ARCH, the GNU canonical arch, is defined as: | 17 | TUNE_ARCH, the GNU canonical arch, is defined as: |
| 10 | 18 | ||
| 11 | mips${MIPSPKGSFX_BYTE}${MIPSPKGSFX_ENDIAN} | 19 | "mips${MIPSPKGSFX_32R6}${MIPSPKGSFX_64R6}${MIPSPKGSFX_BYTE}${MIPSPKGSFX_R6}${MIPSPKGSFX_ENDIAN}" |
| 12 | 20 | ||
| 13 | The package arch is defined in such a way to generated a standard naming | 21 | The package arch is defined in such a way to generated a standard naming |
| 14 | scheme. The scheme is: <mips variant>[-nf][-n32] | 22 | scheme. The scheme is: <mips variant>[-nf][-n32] |
| @@ -34,3 +42,12 @@ that the tune is using a non-floating point ABI. | |||
| 34 | MIPSPKGSFX_ABI - This is used to specify an alternative ABI when the previous | 42 | MIPSPKGSFX_ABI - This is used to specify an alternative ABI when the previous |
| 35 | values are not enough to distringuish the package. "-n32" is added when | 43 | values are not enough to distringuish the package. "-n32" is added when |
| 36 | building for N32 ABI. | 44 | building for N32 ABI. |
| 45 | |||
| 46 | MIPSPKGSFX_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 | |||
| 49 | MIPSPKGSFX_64R6 - This is used to specify "isa" in the tuple. | ||
| 50 | Release 6 onwards we use "mipsisa64" instead of just "mips64". | ||
| 51 | |||
| 52 | MIPSPKGSFX_32R6 - This is used to specify "isa32" in the tuple. | ||
| 53 | Release 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" | |||
| 32 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', ' -msoft-float', d)}" | 32 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', ' -msoft-float', d)}" |
| 33 | TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', '', 'soft', d)}" | 33 | TARGET_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', '', 'soft', d)}" |
| 34 | 34 | ||
| 35 | # MIPS r6 ABI | ||
| 36 | TUNEVALID[r6] = "Use r6" | ||
| 37 | TUNEVALID[mipsisa64r6] = "Use 64r6" | ||
| 38 | TUNEVALID[mipsisa32r6] = "Use 32r6" | ||
| 39 | |||
| 35 | # Package naming | 40 | # Package naming |
| 36 | MIPSPKGSFX_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'el', d)}" | 41 | MIPSPKGSFX_ENDIAN = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'el', d)}" |
| 37 | MIPSPKGSFX_BYTE = "${@bb.utils.contains('TUNE_FEATURES', 'n64' , '64', '', d)}" | 42 | MIPSPKGSFX_BYTE = "${@bb.utils.contains('TUNE_FEATURES', 'n64' , '64', '', d)}" |
| 38 | MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}" | 43 | MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}" |
| 39 | MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}" | 44 | MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}" |
| 40 | MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}" | 45 | MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}" |
| 46 | MIPSPKGSFX_R6 = "${@bb.utils.contains('TUNE_FEATURES', 'r6', 'r6', '', d)}" | ||
| 47 | MIPSPKGSFX_64R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', 'isa', '', d)}" | ||
| 48 | MIPSPKGSFX_32R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa32r6', 'isa32', '', d)}" | ||
| 41 | 49 | ||
| 42 | TUNE_ARCH = "mips${MIPSPKGSFX_BYTE}${MIPSPKGSFX_ENDIAN}" | 50 | TUNE_ARCH = "mips${MIPSPKGSFX_32R6}${MIPSPKGSFX_64R6}${MIPSPKGSFX_BYTE}${MIPSPKGSFX_R6}${MIPSPKGSFX_ENDIAN}" |
| 43 | TUNE_PKGARCH = "${MIPSPKGSFX_VARIANT_tune-${DEFAULTTUNE}}${MIPSPKGSFX_FPU}${MIPSPKGSFX_ABI}" | 51 | TUNE_PKGARCH = "${MIPSPKGSFX_VARIANT_tune-${DEFAULTTUNE}}${MIPSPKGSFX_FPU}${MIPSPKGSFX_ABI}" |
| 44 | 52 | ||
| 45 | # Base tunes | 53 | # Base tunes |
