[J-core] [PATCH 4/4] Compile boot rom with regular sh2eb-linux-musl toolchain.

Christopher Friedt chrisfriedt at gmail.com
Wed May 11 18:09:08 EDT 2016


I would suggest merging at least the last diff out of this patch,
since it corrects some oversights for the toolchain tuple.

diff --git a/tools/soc.mk b/tools/soc.mk
index 553b219..e8873fe 100644
--- a/tools/soc.mk
+++ b/tools/soc.mk
@@ -64,10 +64,10 @@ config/config.vhd: force
 # a reliable indicator of change.
 ROM_BIN ?= boot.elf
 main.srec: $(ROM_BIN) force
-       sh2-elf-objcopy -v -O srec --srec-forceS3 $< $@
+       $(CROSS_COMPILE)objcopy -v -O srec --srec-forceS3 $< $@

 boot.bin: $(ROM_BIN) force
-       sh2-elf-objcopy -v -O binary $< $@
+       $(CROSS_COMPILE)objcopy -v -O binary $< $@

 ram.dat: main.srec
        $(TOOLS_DIR)/genram/genram-32k $<


More information about the J-core mailing list