@ -356,33 +356,38 @@ cmake --build build -j $(getconf _NPROCESSORS_ONLN)
< details > < summary > OpenDingux / RetroFW< / summary >
< details > < summary > OpenDingux / RetroFW< / summary >
DevilutionX uses buildroot to build packages for OpenDingux and RetroFW.
DevilutionX uses buildroot-based toolchains to build packages for OpenDingux and RetroFW.
The build script does the following:
For OpenDingux / RetroFW builds, `mksquashfs` needs to be installed on your machine.
1. Downloads and configures the buildroot if necessary.
To build, run the following command:
2. Builds the executable (using CMake).
3. Packages the executable and all related resources into an `.ipk` or `.opk` package.
The buildroot uses ~2.5 GiB of disk space and can take 20 minutes to build.
~~~ bash
TOOLCHAIN=< path / to / toolchain > Packaging/OpenDingux/build.sh < platform >
~~~
For OpenDingux builds `mksquashfs` needs to be installed.
Replace `<platform>` with one of: `lepus` , `retrofw` , `rg99` , `rg350` , or `gkd350h` .
To build, run the following command
For example:
~~~ bash
~~~ bash
Packaging/OpenDingux/build.sh < platform >
TOOLCHAIN=/opt/gcw0-toolchain Packaging/OpenDingux/build.sh rg350
~~~
~~~
Replace `<platform>` with one of: `retrofw` , `rg350` , or `gkd350h` .
You can download the prebuilt toolchains for `x86_64` hosts here:
* OpenDingux: https://github.com/OpenDingux/buildroot/releases
* RetroFW: https://github.com/Poligraf/retrofw_buildroot_gcc11/releases
This prepares and uses the buildroot at `$HOME/buildroot-$PLATFORM-devilutionx` .
Remember to run `./relocate-sdk.sh` in the toolchain directory after unpacking it .
End-user manuals are available here:
Alternatively, if you do not set `TOOLCHAIN` , the script will
download and compile a partial buildroot toolchain for you
(stored at `$HOME/buildroot-$PLATFORM-devilutionx` ).
This requires 8 GiB+ disk space and takes a while.
* [RetroFW manual ](docs/manual/platforms/retrofw.md )
End-user manuals are available [here ](manual/platforms ) and
* [RG-350 manual ](docs/manual/platforms/rg350.md )
in the package help section.
* [GKD350h manual ](docs/manual/platforms/gkd350h.md )
< / details >
< / details >