libs: Support Z80 variant builds
authorAlan Cox <alan@linux.intel.com>
Sun, 8 Mar 2015 21:40:31 +0000 (21:40 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 8 Mar 2015 21:40:31 +0000 (21:40 +0000)
commit328a5e908180882aee62853157ab4b1a735ec11d
tree0b5bc57ce56e3c39dd4190a561c47e6e71999800
parent6ede12197451259a9d28058810f4eb7e72edf455
libs: Support Z80 variant builds

Allow PLATFORM to be set and make it use a different crt0 and syscall.s file.
We need this for platforms like ZX128 where we can't use the normal RST calls.

For relocatable binaries when we get there the syscall vector is going to need
to be discoverable - perhaps passed in a register or on the passed stack ?
Library/libs/Makefile
Library/libs/crt0-zx128.s [new file with mode: 0644]
Library/libs/fuzix/Makefile
Library/libs/fuzix/syscall-zx128.s [new file with mode: 0644]
Library/tools/syscall.c