1f3fd288eSBrad Bishop# RISCV Architecture definition
2f3fd288eSBrad Bishop
3f3fd288eSBrad BishopDEFAULTTUNE ?= "riscv64"
4f3fd288eSBrad Bishop
5*213cb269SPatrick WilliamsTUNE_ARCH = "${TUNE_ARCH:tune-${DEFAULTTUNE}}"
6*213cb269SPatrick WilliamsTUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
7*213cb269SPatrick WilliamsTUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}"
8*213cb269SPatrick WilliamsTUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}"
9f3fd288eSBrad Bishop
1082c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=sysv'
11*213cb269SPatrick WilliamsLINKER_HASH_STYLE:libc-newlib = ""
1282c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=gnu'
13*213cb269SPatrick WilliamsLINKER_HASH_STYLE:libc-baremetal = ""
14