1require conf/machine/include/riscv/arch-riscv.inc 2 3TUNEVALID[riscv64] = "Enable 64-bit RISC-V optimizations" 4TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations" 5 6TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point" 7TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point" 8 9TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions" 10 11TUNEVALID[bigendian] = "Big endian mode" 12 13AVAILTUNES += "riscv64 riscv32 riscv64nc riscv64nf riscv32nf" 14 15# Default 16TUNE_FEATURES:tune-riscv64 = "riscv64" 17TUNE_ARCH:tune-riscv64 = "riscv64" 18TUNE_PKGARCH:tune-riscv64 = "riscv64" 19PACKAGE_EXTRA_ARCHS:tune-riscv64 = "riscv64" 20 21TUNE_FEATURES:tune-riscv32 = "riscv32" 22TUNE_ARCH:tune-riscv32 = "riscv32" 23TUNE_PKGARCH:tune-riscv32 = "riscv32" 24PACKAGE_EXTRA_ARCHS:tune-riscv32 = "riscv32" 25 26# No float 27TUNE_FEATURES:tune-riscv64nf = "${TUNE_FEATURES:tune-riscv64} riscv64nf" 28TUNE_ARCH:tune-riscv64nf = "riscv64" 29TUNE_PKGARCH:tune-riscv64nf = "riscv64nf" 30PACKAGE_EXTRA_ARCHS:tune-riscv64nf = "riscv64nf" 31 32TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf" 33TUNE_ARCH:tune-riscv32nf = "riscv32" 34TUNE_PKGARCH:tune-riscv32nf = "riscv32nf" 35PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf" 36 37# no compressed 38TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc" 39TUNE_ARCH:tune-riscv64nc = "riscv64" 40TUNE_PKGARCH:tune-riscv64nc = "riscv64nc" 41PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc" 42