summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/tune-nios2.inc11
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
6TUNE_ARCH = "nios2" 6TUNE_ARCH = "nios2"
7TUNE_PKGARCH = "${DEFAULTTUNE}" 7TUNE_PKGARCH = "${DEFAULTTUNE}"
8TUNE_CCARGS .= " -mel" 8
9# Endianess
10TUNEVALID[bigendian] = "Enable big-endian mode"
11TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -meb", " -mel", d)}"
9 12
10# Multiply opcodes 13# Multiply opcodes
11TUNEVALID[hw-mul] = "Enable Nios2 Hardware Multiply" 14TUNEVALID[hw-mul] = "Enable Nios2 Hardware Multiply"
@@ -40,8 +43,12 @@ TUNECONFLICTS[fpu-custom] = "fpu-soft fpu-customdiv"
40TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom" 43TUNECONFLICTS[fpu-customdiv] = "fpu-soft fpu-custom"
41 44
42# Architecture configuration 45# Architecture configuration
43AVAILTUNES += "nios2" 46AVAILTUNES += "nios2 nios2eb"
44 47
45TUNEVALID[nios2] = "Nios2 R1 Little-Endian" 48TUNEVALID[nios2] = "Nios2 R1 Little-Endian"
46TUNE_FEATURES_tune-nios2 = "nios2" 49TUNE_FEATURES_tune-nios2 = "nios2"
47PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}" 50PACKAGE_EXTRA_ARCHS_tune-nios2 = "${TUNE_PKGARCH}"
51
52TUNEVALID[nios2eb] = "Nios2 R1 Big-Endian"
53TUNE_FEATURES_tune-nios2eb = "bigendian"
54PACKAGE_EXTRA_ARCHS_tune-nios2eb = "${TUNE_PKGARCH}"