fixed wrong dump executable name

This commit is contained in:
Màrius Montón 2019-09-07 11:41:16 +02:00
parent 96c17868e4
commit e2f3dfb30c
6 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ TARGET = forloop
TARGET_ARCH=riscv32 TARGET_ARCH=riscv32
CC = riscv32-unknown-linux-gnu-gcc CC = riscv32-unknown-elf-gcc
# compiling flags here # compiling flags here
#CFLAGS = -Wall -I. -O0 -nostartfiles -march=rv32i -mabi=ilp32 #CFLAGS = -Wall -I. -O0 -nostartfiles -march=rv32i -mabi=ilp32
CFLAGS = -Wall -I. -O0 -nostdlib -march=rv32i -mabi=ilp32 --entry main CFLAGS = -Wall -I. -O0 -nostdlib -march=rv32i -mabi=ilp32 --entry main
@ -31,8 +31,8 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump #riscv32-unknown-elf-objcopy -d $< > dump
objcopy -Oihex $< $(TARGET).hex riscv32-unknown-elf-objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"
$(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.c $(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.c

View File

@ -29,7 +29,7 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump riscv32-unknown-elf-objdump -d $< > dump
objcopy -Oihex $< $(TARGET).hex objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"

View File

@ -29,7 +29,7 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump riscv32-unknown-elf-objdump -d $< > dump
objcopy -Oihex $< $(TARGET).hex objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"

View File

@ -8,7 +8,7 @@ CC = riscv32-unknown-elf-gcc
CFLAGS = -Wall -I. -O0 -static -march=rv32imac -mabi=ilp32 --specs=nosys.specs CFLAGS = -Wall -I. -O0 -static -march=rv32imac -mabi=ilp32 --specs=nosys.specs
LINKER = riscv32-unknown-linux-gnu-gcc LINKER = riscv32-unknown-elf-gcc
# linking flags here # linking flags here
LDFLAGS = -I. --entry main -L/opt/riscv/riscv32-unknown-elf/lib/ -T ld_script.ld LDFLAGS = -I. --entry main -L/opt/riscv/riscv32-unknown-elf/lib/ -T ld_script.ld
LIBS = $(EXTRA_LIBS) LIBS = $(EXTRA_LIBS)
@ -30,7 +30,7 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump riscv32-unknown-elf-objdump -d $< > dump
objcopy -Oihex $< $(TARGET).hex objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"

View File

@ -32,7 +32,7 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LDFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump riscv32-unknown-linux-gnu-objdump -d $< > dump
objcopy -Oihex $< $(TARGET).hex riscv32-unknown-elf-objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"
$(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.c $(OBJECTS): $(OBJDIR)/%.o : $(SRCDIR)/%.c

View File

@ -29,7 +29,7 @@ rm = rm -f
$(BINDIR)/$(TARGET): $(OBJECTS) $(BINDIR)/$(TARGET): $(OBJECTS)
# $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@ # $(LINKER) $(OBJECTS) $(LFLAGS) $(LIBS) $(LIBDIR) -o $@
riscv32-unknown-linux-gnu-objdump -d $< > dump riscv32-unknown-elf-objdump -d $< > dump
objcopy -Oihex $< $(TARGET).hex objcopy -Oihex $< $(TARGET).hex
# @echo "Linking complete!" # @echo "Linking complete!"