From 9e76b9001c37ab2da2e99c922406b991bd0e53af Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Wed, 15 May 2024 08:27:12 +0200 Subject: running c program --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e7bfd27..dd0371b 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ RISCV_LD = $(RISCV_TOOLCHAIN)-ld RISCV_OBJCOPY = $(RISCV_TOOLCHAIN)-objcopy RISCV_ASFLAGS = -march=rv32i -mabi=ilp32 -RISCV_CFLAGS = -march=rv32i -mabi=ilp32 -O2 -Wall +RISCV_CFLAGS = -march=rv32i -mabi=ilp32 RISCV_LDFLAGS = -T prog/link.ld -m elf32lriscv PROG_SOURCE_DIR = prog/src @@ -150,7 +150,7 @@ $(PROG_BINARY_FILE): $(PROG_ELF_FILE) # Convert the binary file to a hex file $(PROG_ROM_FILE): $(PROG_BINARY_FILE) - xxd -g 1 -c 1 -p $< > $@ + xxd -g 4 -c 4 -p $< | awk '{print substr($$0,7,2) substr($$0,5,2) substr($$0,3,2) substr($$0,1,2)}' > $@ # Create the build directory $(BUILD_DIR): -- cgit v1.2.3