1f3fd288eSBrad Bishop# RISCV Architecture definition 2f3fd288eSBrad Bishop 3f3fd288eSBrad BishopDEFAULTTUNE ?= "riscv64" 4f3fd288eSBrad Bishop 5f3fd288eSBrad BishopTUNE_ARCH = "${TUNE_ARCH_tune-${DEFAULTTUNE}}" 6f3fd288eSBrad BishopTUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" 7*82c905dcSAndrew GeisslerTUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}" 8*82c905dcSAndrew GeisslerTUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}" 9f3fd288eSBrad Bishop 10f3fd288eSBrad Bishop# QEMU usermode fails with invalid instruction error (For riscv32) 11f3fd288eSBrad BishopMACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32', ' qemu-usermode', '', d)}" 12*82c905dcSAndrew Geissler 13*82c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=sysv' 14*82c905dcSAndrew GeisslerLINKER_HASH_STYLE_libc-newlib = "" 15*82c905dcSAndrew Geissler# Fix: ld: unrecognized option '--hash-style=gnu' 16*82c905dcSAndrew GeisslerLINKER_HASH_STYLE_libc-baremetal = "" 17