forked from M-Labs/artiq
runtime/makefile: specify emulation, flip endianness
This commit is contained in:
parent
c42adfe6fd
commit
7f0bc9f7f0
|
@ -21,10 +21,11 @@ runtime.elf: $(RUSTOUT)/libruntime.a ksupport_data.o
|
||||||
-lunwind-bare
|
-lunwind-bare
|
||||||
|
|
||||||
ksupport_data.o: ../ksupport/ksupport.elf
|
ksupport_data.o: ../ksupport/ksupport.elf
|
||||||
$(LD) -r -b binary -o $@ $<
|
$(LD) -m elf32lriscv -b binary -o $@ $<
|
||||||
|
|
||||||
%.bin: %.elf
|
%.bin: %.elf
|
||||||
$(objcopy) -O binary
|
$(objcopy) -O binary
|
||||||
|
|
||||||
%.fbi: %.bin
|
%.fbi: %.bin
|
||||||
$(mscimg) -f
|
$(mscimg) -f --little
|
||||||
|
objcopy -I binary -O binary --reverse-bytes=4 $@
|
||||||
|
|
Loading…
Reference in New Issue