all repos — xrxs @ 30603241cb61564e40ba86480a8d5456fb6e2986

experimental networked application/game server with 9p

add more options to client build script and document them as well as the standalone bootloader
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmFsWuAACgkQO3+8IhRO
Y5hbSw//VP0nVqpZHPH6hZxGuK+jriAD9exafEVn2IhW2F63NfMJfHOkib/y5cuy
sAFLM/3qsSvFgsD756Q4J0UBdlGWE5dMLl24gXuyllP/QVkkiEjS6XXBYY2Dir6+
2/PJvPhLgCpWjH9tIs1yS4JUFT/aXslwZT77G65csEdtdU7yxu7FaqPez5pPlgzk
tcX9e0PESsnWwgqwTsYQZV67bj8ptcgN8du2H7D7fayu4VonOPp649FDEF8JH/f7
HzTtyAiYd+iVKOkAF/1/ox0Utkj4Id8hnDm3cK1eXOxf/mwbzAaNFWrEwv4841mP
VRdyhiXMOXhhO66Y7JFwIWXtB996KIn7U7hkB4Jpi3al5eEQnAkzThAek6U4UlgX
Lu1lyuFMQ/qOMCY+4uGa6iMctAzVYsRdKbXrOQ+1HPT4HZhwKo2fv9gtCMyPTH7e
ZmzYp7SzD0Re6K8w6lC+H7Z2jepelI9FyDMp/SIjvV1J4+wvmbKUjF3YeNsdfUuT
vt9LjuqqR54qNLnvv5sqm7nk8QJLXJRA679imO05YdkTLLvcwr6mbnEDnKCbVDbD
r0WENbKHUbuU1uKsKacXn/Xr1M9qehv+Pc3cMxbQxfflYcXxsB1iDHjvj6G/86tt
hNYlmME3VWS32tcBYOwreERiIJVHFPH6iznsRo6/RWxtWYPZsd4=
=b+WG
-----END PGP SIGNATURE-----
commit

30603241cb61564e40ba86480a8d5456fb6e2986

parent

df0c4db3b458ae22f63784539120d37e13361105

2 files changed, 19 insertions(+), 5 deletions(-)

jump to
M README.mdREADME.md

@@ -86,8 +86,14 @@ You can add `-d` to either the `xrxs` command line or the `xrxs-srv.sh` command line to enable chatty `9p` debug output.

### client -From the `uxn-client` directory, run `./build.sh` to compile the ROM. If you're working on the ROM with some local test files, not over 9p, you can also add the `-r` flag to run after building without starting the `9p` client. +There are two versions of the client ROM. One is the normal `xrxs` client, and one is a standalone client for use as a generic `uxn` bootloader. The latter reads a ROM list out of a file called `index`, and appends the `.rom` extension to your selection and loads a file so named. Note that while the `9p` filesystem will be located under the parent directory of `./n`, the standalone bootloader assumes a flat filesystem. -When the ROM has been built, run `./uxn-xrxs.sh` to mount the `9p` service and run the client. +You can run `./build.sh` with no options to build the normal `xrxs` client, or with any of the following options: -Both scripts assume you have `uxnasm` and `uxnemu` in your `PATH` respectively. `9pfuse` is used to mount the service, but other implementations could possibly be used. + * `-r`: build the normal client and run it for local testing (don't mount the remote `9p` filesystem) + * `-l`: build the standalone bootloader + * `-lr`: build the standalone bootloader and run it + +When the client ROM has been built, run `./uxn-xrxs.sh` to mount the `9p` service and run the client. + +The scripts assume you have `uxnasm` and `uxnemu` in your `PATH`. `9pfuse` is used to mount the service, but other implementations could possibly be used.
M uxn-client/build.shuxn-client/build.sh

@@ -1,7 +1,15 @@

#!/bin/sh rm xrxs.rom 2>/dev/null -uxnasm xrxs.tal xrxs.rom -if [ "$1" = "-r" ]; then + +if [ "$1" = "-l" ]; then + uxnasm xrxs-local.tal xrxs.rom +elif [ "$1" = "-lr" ]; then + uxnasm xrxs-local.tal xrxs.rom uxnemu xrxs.rom +else + uxnasm xrxs.tal xrxs.rom + if [ "$1" = "-r" ]; then + uxnemu xrxs.rom + fi fi