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[bigendian] = "Big endian mode"
10
11AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
12
13# Default
14TUNE_FEATURES_tune-riscv64 = "riscv64"
15TUNE_ARCH_tune-riscv64 = "riscv64"
16TUNE_PKGARCH_tune-riscv64 = "riscv64"
17PACKAGE_EXTRA_ARCHS_tune-riscv64 = "riscv64"
18
19TUNE_FEATURES_tune-riscv32 = "riscv32"
20TUNE_ARCH_tune-riscv32 = "riscv32"
21TUNE_PKGARCH_tune-riscv32 = "riscv32"
22PACKAGE_EXTRA_ARCHS_tune-riscv32 = "riscv32"
23
24# No float
25TUNE_FEATURES_tune-riscv64nf = "${TUNE_FEATURES_tune-riscv64} riscv64nf"
26TUNE_ARCH_tune-riscv64nf = "riscv64"
27TUNE_PKGARCH_tune-riscv64nf = "riscv64nf"
28PACKAGE_EXTRA_ARCHS_tune-riscv64nf = "riscv64nf"
29
30TUNE_FEATURES_tune-riscv32nf = "${TUNE_FEATURES_tune-riscv32} riscv32nf"
31TUNE_ARCH_tune-riscv32nf = "riscv32"
32TUNE_PKGARCH_tune-riscv32nf = "riscv32nf"
33PACKAGE_EXTRA_ARCHS_tune-riscv32nf = "riscv32nf"
34