diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-15 08:27:12 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-15 08:27:12 +0200 |
commit | 9e76b9001c37ab2da2e99c922406b991bd0e53af (patch) | |
tree | 686aa90639b28c92013e6158e01d5010973b0f03 /Makefile | |
parent | d107f7e40f02a7374b8685ba310500a6c38d43b1 (diff) | |
download | riscv_cpu-9e76b9001c37ab2da2e99c922406b991bd0e53af.tar.gz riscv_cpu-9e76b9001c37ab2da2e99c922406b991bd0e53af.zip |
running c program
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |