blob: e3dbef7fe334d3732be47dd0f903fc8306139a39 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001# RISCV Architecture definition
2
3DEFAULTTUNE ?= "riscv64"
4
5TUNE_ARCH = "${TUNE_ARCH_tune-${DEFAULTTUNE}}"
6TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007TUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
8TUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
Brad Bishopf3fd2882019-06-21 08:06:37 -04009
10# QEMU usermode fails with invalid instruction error (For riscv32)
11MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32', ' qemu-usermode', '', d)}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050012
13# Fix: ld: unrecognized option '--hash-style=sysv'
14LINKER_HASH_STYLE_libc-newlib = ""
15# Fix: ld: unrecognized option '--hash-style=gnu'
16LINKER_HASH_STYLE_libc-baremetal = ""