Skip to content

Building

OpenLua Bot edited this page Nov 11, 2026 · 1 revision

Building

OpenLua is built with PSPSDK. The recommended path uses Docker; a local PSPSDK installation also works.

Docker (recommended)

Requirements: Docker with network access.

git clone https://github.com/epr-ds/openlua.git
cd openlua
bash docker/build.sh

The 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 probe

Do not run bash docker/build.sh clean all in one invocation. The PSPSDK makefile parallelises both goals and the link can race.

Local PSPSDK

If psp-config is on your PATH:

make            # uses $(psp-config --pspsdk-path)
make clean
make probe      # optional diagnostic EBOOT

Host tests (no PSP toolchain)

Most platform and storage code is testable on a PC:

bash test/host/run.sh
bash tools/check_repo_hygiene.sh

test/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.

Project layout

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

Continuous integration

Every push runs the host suite and the PSP build in GitHub Actions. Pushes to main also publish a versioned release. See Releasing.

Troubleshooting the build

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

Next

Clone this wiki locally