diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2019-02-14 06:37:13 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-15 06:25:45 +0300 |
commit | 286b80768beb16130f869877875af2f581439b2b (patch) | |
tree | 581cf5ed12134713b9c34d1cd16c4b420f793ed9 /firmware | |
parent | 35e617385f5c6278ee83434b9594d07731993742 (diff) | |
download | opensbi-286b80768beb16130f869877875af2f581439b2b.tar.xz |
Makefile: Make sure ld is always aware of the target abi/emulation
On Makefile merge_objs calls ld without providing any hints
on the target so on a multilib toolchain for example it will
always pick the default one (elf64-littleriscv) which will
then result a failure when compiling on RV32 since the objects
will be 32bits and the target will be 64bits. The same happens
on compile_ld that calls gcc without CFLAGS so it doesn't
get mabi/march.
With this patch OpenSBI compiles on RV32 (PLATFORM_RISCV_XLEN=32),
I tested fw_jump.elf on qemu (but it doesn't boot the kernel yet
-bbl also doesn't boot the kernel so it may be something else).
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions