[J-core] [PATCH 0/4] Compile on Mac and use Normal Toolchain

Christopher Friedt chrisfriedt at gmail.com
Wed May 11 08:20:31 EDT 2016


Here are just a couple of patches I wanted to submit.

The first two allow us to build on Mac OS X.

The second two allow us to use the sh2eb-linux-musl toolchain to compile
the boot rom (which previously required a separate bare-metal toolchain).

Note, due to the large number of hard-coded underscore-prefixed symbol names,
there are still a large number left, so there is some inconsistency, but
there are (at least) no conflicts. The inconsistency between prefixed and
non-prefixed symbol names can be addressed in a separate patch.

Christopher Friedt (4):
  use different arguments to ln if on Mac OS X
  Only include malloc.h if it exists.
  almost works except for getting the address of register_file inside
    gdb_return_from_exception
  Compile boot rom with regular sh2eb-linux-musl toolchain.

 boot/Makefile            |   2 +-
 boot/entry.c             | 140 +++++++++++++++++++++++------------------------
 boot/gdb/sh2.c           |  64 ++++++++++------------
 boot/linker/sh32.x       |   6 +-
 boot/tests/testalu.s     |  12 ++--
 boot/tests/testbra.s     |  10 ++--
 boot/tests/testmov.s     |  88 ++++++++++++++---------------
 boot/tests/testmov2.s    |  46 ++++++++--------
 boot/tests/testmulconf.s | 132 ++++++++++++++++++++++----------------------
 tools/soc.mk             |   4 +-
 10 files changed, 252 insertions(+), 252 deletions(-)

-- 
2.7.4 (Apple Git-66)



More information about the J-core mailing list