Skip to content

Commit

Permalink
make: Makefile: CROSS_LDFLAGS=-melf32lriscv used to build rv32 target…
Browse files Browse the repository at this point in the history
… by rv64-toolchain

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
  • Loading branch information
cp0613 authored and guoren83 committed Mar 1, 2024
1 parent 933b583 commit 482aa4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ OBJDUMP = $(CROSS_COMPILE)objdump
CFLAGS = -fPIC -fno-stack-protector
TARGET = zero_stage_boot
${TARGET}.elf: start.o feature.o jump.o
$(LD) -Tlink.lds $^ -o $@
$(LD) $(CROSS_LDFLAGS) -Tlink.lds $^ -o $@
$(OBJCOPY) -O binary $@ ${TARGET}.bin
$(OBJDUMP) -D $@ > ${TARGET}.asm

Expand Down

0 comments on commit 482aa4d

Please sign in to comment.