diff options
author | Marek Vasut <marex@denx.de> | 2017-04-19 13:27:36 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2017-04-25 17:50:00 -0700 |
commit | 9b5158f054edaf166050aed62066195a656cf4e4 (patch) | |
tree | 2d008d264b244043ab9c730c80a80b21f9ea9214 /conf/machine/include | |
parent | 5469c16a90b5cd53c13040c6740dd73a11c974bc (diff) | |
download | meta-altera-9b5158f054edaf166050aed62066195a656cf4e4.tar.gz |
nios2: Add Nios2 R1 EB
Add support for Big-Endian Nios2 R1 .
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/machine/include')
-rw-r--r-- | conf/machine/include/tune-nios2.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/conf/machine/include/tune-nios2.inc b/conf/machine/include/tune-nios2.inc index 71755f3..a526463 100644 --- a/conf/machine/include/tune-nios2.inc +++ b/conf/machine/include/tune-nios2.inc | |||
@@ -5,7 +5,10 @@ DEFAULTTUNE ?= "nios2" | |||
5 | 5 | ||
6 | TUNE_ARCH = "nios2" | 6 | TUNE_ARCH = "nios2" |
7 | TUNE_PKGARCH = "${DEFAULTTUNE}" | 7 | TUNE_PKGARCH = "${DEFAULTTUNE}" |
8 | TUNE_CCARGS .= " -mel" | 8 | |
9 | # Endianess | ||
10 | TUNEVALID[bigendian] = "Enable big-endian mode" | ||
11 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -meb", " -mel", d)}" | ||
9 | 12 | ||
10 | # Multiply opcodes | 13 | # Multiply opcodes |
11 | TUNEVALID[hw-mul] = "Enable Nios2 Hardware Multiply" | 14 | TUNEVALID[hw-mul] = "Enable Nios2 Hardware Multiply" |
@@ -40,8 +43,12 @@ TUNECONFLICTS[fpu-custom] = "fpu-soft fpu-customdiv" | |||
40 | TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" | 43 | TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" |
41 | 44 | ||
42 | # Architecture configuration | 45 | # Architecture configuration |
43 | AVAILTUNES += "nios2" | 46 | AVAILTUNES += "nios2 nios2eb" |
44 | 47 | ||
45 | TUNEVALID[nios2] = "Nios2 R1 Little-Endian" | 48 | TUNEVALID[nios2] = "Nios2 R1 Little-Endian" |
46 | TUNE_FEATURES_tune-nios2 = "nios2" | 49 | TUNE_FEATURES_tune-nios2 = "nios2" |
47 | PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}" | 50 | PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}" |
51 | |||
52 | TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian" | ||
53 | TUNE_FEATURES_tune-nios2eb = "bigendian" | ||
54 | PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}" | ||