From 2e6c763ba2e50735b41dbeb1b1945f6ce5754b50 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 30 Jan 2020 04:17:19 +0100 Subject: [PATCH] Add readme section for building Amiga port --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index c44e44719..aec224ee7 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,22 @@ to install dependencies and build the code. Or you create a new directory under `/home/cpi/apps/Menu` and copy [the file](Packaging/cpi-gamesh/__init__.py) there. After restarting the UI, you can download and compile the game directly from the device itself. See [the readme](Packaging/cpi-gamesh/readme.md) for more details. +
Amiga via Docker + +### Start the container from the repo root +``` +docker run -ti --rm -v $(pwd):/work amigadev/crosstools:m68k-amigaos bash +``` +### Installing dependencies and build +``` +Packaging/amiga/prep.sh +cd build +PKG_CONFIG_PATH=/opt/m68k-amigaos/lib/pkgconfig/:/opt/m68k-amigaos/share/pkgconfig/ cmake -DBINARY_RELEASE=ON -DM68K_CPU=68040 -DM68K_FPU=hard -DM68K_COMMON="-s -ffast-math -O3 -noixemul -D__BIG_ENDIAN__ -D__AMIGA__ -fpermissive" .. +cmake --build . -j $(nproc) +``` +Make sure the resulting devilutionx file has the correct permissions for your user afterwards. +
+
CMake build options ### General