diff options
-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}" | ||