1f3fd288eSBrad Bishop# RISCV Architecture definition 2f3fd288eSBrad Bishop 3f3fd288eSBrad BishopDEFAULTTUNE ?= "riscv64" 4f3fd288eSBrad Bishop 5213cb269SPatrick WilliamsTUNE_ARCH = "${TUNE_ARCH:tune-${DEFAULTTUNE}}" 6213cb269SPatrick WilliamsTUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}" 7213cb269SPatrick WilliamsTUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}" 8213cb269SPatrick WilliamsTUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}" 9f3fd288eSBrad Bishop 10*03907ee1SPatrick WilliamsTUNE_CCARGS:append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nc', ' -march=rv64imafd', ' ', d)}" 11*03907ee1SPatrick Williams 1282c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=sysv' 13213cb269SPatrick WilliamsLINKER_HASH_STYLE:libc-newlib = "" 1482c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=gnu' 15213cb269SPatrick WilliamsLINKER_HASH_STYLE:libc-baremetal = "" 16