blob: 230a266563a238a4b4398904c0f0fe6fbbd25c51 [file] [log] [blame]
Brad Bishopf3fd2882019-06-21 08:06:37 -04001# RISCV Architecture definition
2
3DEFAULTTUNE ?= "riscv64"
4
Patrick Williams213cb262021-08-07 19:21:33 -05005TUNE_ARCH = "${TUNE_ARCH:tune-${DEFAULTTUNE}}"
6TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
7TUNE_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
Patrick Williams03907ee2022-05-01 06:28:52 -050010TUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}"
11
Andrew Geissler82c905d2020-04-13 13:39:40 -050012# Fix: ld: unrecognized option '--hash-style=sysv'
Patrick Williams213cb262021-08-07 19:21:33 -050013LINKER_HASH_STYLE:libc-newlib = ""
Andrew Geissler82c905d2020-04-13 13:39:40 -050014# Fix: ld: unrecognized option '--hash-style=gnu'
Patrick Williams213cb262021-08-07 19:21:33 -050015LINKER_HASH_STYLE:libc-baremetal = ""