blob: cc2896f277b3658641fa23fd613d0ea569c5dc39 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001require 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
Andrew Geissler82c905d2020-04-13 13:39:40 -05006TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point"
7TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point"
8
Brad Bishop79641f22019-09-10 07:20:22 -04009TUNEVALID[bigendian] = "Big endian mode"
Brad Bishopf3fd2882019-06-21 08:06:37 -040010
Andrew Geissler82c905d2020-04-13 13:39:40 -050011AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
Brad Bishopf3fd2882019-06-21 08:06:37 -040012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013# Default
Patrick Williams213cb262021-08-07 19:21:33 -050014TUNE_FEATURES:tune-riscv64 = "riscv64"
15TUNE_ARCH:tune-riscv64 = "riscv64"
16TUNE_PKGARCH:tune-riscv64 = "riscv64"
17PACKAGE_EXTRA_ARCHS:tune-riscv64 = "riscv64"
Brad Bishopf3fd2882019-06-21 08:06:37 -040018
Patrick Williams213cb262021-08-07 19:21:33 -050019TUNE_FEATURES:tune-riscv32 = "riscv32"
20TUNE_ARCH:tune-riscv32 = "riscv32"
21TUNE_PKGARCH:tune-riscv32 = "riscv32"
22PACKAGE_EXTRA_ARCHS:tune-riscv32 = "riscv32"
Brad Bishopf3fd2882019-06-21 08:06:37 -040023
Andrew Geissler82c905d2020-04-13 13:39:40 -050024# No float
Patrick Williams213cb262021-08-07 19:21:33 -050025TUNE_FEATURES:tune-riscv64nf = "${TUNE_FEATURES:tune-riscv64} riscv64nf"
26TUNE_ARCH:tune-riscv64nf = "riscv64"
27TUNE_PKGARCH:tune-riscv64nf = "riscv64nf"
28PACKAGE_EXTRA_ARCHS:tune-riscv64nf = "riscv64nf"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf"
31TUNE_ARCH:tune-riscv32nf = "riscv32"
32TUNE_PKGARCH:tune-riscv32nf = "riscv32nf"
33PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf"