mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
riscv: Add tunes for rv64 without compressed instructions
(From OE-Core rev: 4790eaf98e030ffeecfbde6644137c9d6d1873d7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -7,6 +7,8 @@ TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
|
||||
TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
|
||||
TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
|
||||
|
||||
TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}"
|
||||
|
||||
# Fix: ld: unrecognized option '--hash-style=sysv'
|
||||
LINKER_HASH_STYLE:libc-newlib = ""
|
||||
# Fix: ld: unrecognized option '--hash-style=gnu'
|
||||
|
||||
@@ -6,6 +6,8 @@ TUNEVALID[riscv32] = "Enable 32-bit RISC-V optimizations"
|
||||
TUNEVALID[riscv64nf] = "Enable 64-bit RISC-V optimizations no floating point"
|
||||
TUNEVALID[riscv32nf] = "Enable 32-bit RISC-V optimizations no floating point"
|
||||
|
||||
TUNEVALID[riscv64nc] = "Enable 64-bit RISC-V optimizations without compressed instructions"
|
||||
|
||||
TUNEVALID[bigendian] = "Big endian mode"
|
||||
|
||||
AVAILTUNES += "riscv64 riscv32 riscv64nf riscv32nf"
|
||||
@@ -31,3 +33,9 @@ TUNE_FEATURES:tune-riscv32nf = "${TUNE_FEATURES:tune-riscv32} riscv32nf"
|
||||
TUNE_ARCH:tune-riscv32nf = "riscv32"
|
||||
TUNE_PKGARCH:tune-riscv32nf = "riscv32nf"
|
||||
PACKAGE_EXTRA_ARCHS:tune-riscv32nf = "riscv32nf"
|
||||
|
||||
# no compressed
|
||||
TUNE_FEATURES:tune-riscv64nc = "${TUNE_FEATURES:tune-riscv64} riscv64nc"
|
||||
TUNE_ARCH:tune-riscv64nc = "riscv64"
|
||||
TUNE_PKGARCH:tune-riscv64nc = "riscv64nc"
|
||||
PACKAGE_EXTRA_ARCHS:tune-riscv64nc = "riscv64nc"
|
||||
|
||||
Reference in New Issue
Block a user