Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 1 | # RISCV Architecture definition |
| 2 | |
| 3 | DEFAULTTUNE ?= "riscv64" |
| 4 | |
| 5 | TUNE_ARCH = "${TUNE_ARCH_tune-${DEFAULTTUNE}}" |
| 6 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 7 | TUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv64nf', ' -mabi=lp64', ' ', d)}" |
| 8 | TUNE_CCARGS_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32nf', ' -mabi=ilp32', ' ', d)}" |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 9 | |
| 10 | # QEMU usermode fails with invalid instruction error (For riscv32) |
| 11 | MACHINE_FEATURES_BACKFILL_CONSIDERED_append = "${@bb.utils.contains('TUNE_FEATURES', 'riscv32', ' qemu-usermode', '', d)}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
| 13 | # Fix: ld: unrecognized option '--hash-style=sysv' |
| 14 | LINKER_HASH_STYLE_libc-newlib = "" |
| 15 | # Fix: ld: unrecognized option '--hash-style=gnu' |
| 16 | LINKER_HASH_STYLE_libc-baremetal = "" |