Repository navigation
Building
OpenLua is built with PSPSDK. The recommended path uses Docker; a local PSPSDK installation also works.
Requirements: Docker with network access.
git clone https://github.com/epr-ds/openlua.git
cd openlua
bash docker/build.shThe first run pulls pspdev/pspdev:latest and builds a local
openlua-pspdev:local image with ccache. Later builds reuse
docker/.cache/ccache (git-ignored) and are much faster.
Outputs:
-
EBOOT.PBP— deployable PSP application; -
openlua.elf— intermediate ELF for debugging.
Useful variants:
# Clean rebuild: run the two steps separately.
bash docker/build.sh clean
bash docker/build.sh
# Limit parallelism.
JOBS=4 bash docker/build.sh
# Also build the 8002013C diagnostic probe.
bash docker/build.sh all probeDo not run
bash docker/build.sh clean allin one invocation. The PSPSDK makefile parallelises both goals and the link can race.
If psp-config is on your PATH:
make # uses $(psp-config --pspsdk-path)
make clean
make probe # optional diagnostic EBOOTMost platform and storage code is testable on a PC:
bash test/host/run.sh
bash tools/check_repo_hygiene.shtest/host/run.sh builds and runs the C and Lua suites, including storage,
INI, JSON, savedata, network loopback servers, fonts, 3D math, PBP parsing and
the Lua-facing modules. It prints a RESULT: … passed, 0 failed line per
group.
tools/check_repo_hygiene.sh verifies that no build artifacts are tracked.
engine/ C implementation (core, gfx, img, font, snd, fs, data, net,
sys, maps, 3d, video)
third_party/ Lua 5.1.5 and stb headers
assets/ shared demo/test assets
demos/ runnable Lua examples
docs/ architecture, API, roadmap, development, tester, releasing
test/ host tests and on-device test material
tools/ asset generators, packaging and boot probe
docker/ PSPSDK build image and build script
Every push runs the host suite and the PSP build in GitHub Actions. Pushes to
main also publish a versioned release. See Releasing.
| Symptom | Fix |
|---|---|
InvalidBaseImagePlatform warning |
Harmless on ARM hosts; Docker emulates the amd64 PSPSDK image |
Link race after clean
|
Run clean and build in separate commands |
stubs out of order from psp-fixup-imports
|
Reorder LIBS; see the comments in the root Makefile
|
EBOOT.PBP not found in packaging |
Run the PSP build first |