From aaf84c428a84663631574d502f25e8c416875f84 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 19 Apr 2017 13:27:39 +0200 Subject: nios2: Add Nios2 R2 CDX support Add support for the Nios2 R2 Code Density Extension, which is a completely new 16/32-bit instruction set addition to reduce size of the code and increase performance. Signed-off-by: Marek Vasut Signed-off-by: Khem Raj --- conf/machine/include/tune-nios2.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/machine/include/tune-nios2.inc b/conf/machine/include/tune-nios2.inc index c8e02d7..784ccfd 100644 --- a/conf/machine/include/tune-nios2.inc +++ b/conf/machine/include/tune-nios2.inc @@ -54,6 +54,12 @@ TUNECONFLICTS[bmx] = "nios2 bigendian" TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bmx", " -mbmx", "" ,d)}" TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "bmx", "-bmx", "" ,d)}" +# Nios2 R2 CDX opcodes +TUNEVALID[cdx] = "Enable Nios2 R2 Code Density Extension." +TUNECONFLICTS[cdx] = "nios2 bigendian" +TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "cdx", " -mcdx", "" ,d)}" +TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "cdx", "-cdx", "" ,d)}" + # Architecture configuration AVAILTUNES += "nios2 nios2eb nios2r2" -- cgit v1.2.3-54-g00ecf