diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9b52d4a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM wiiuenv/devkitppc:20200625 + +COPY --from=wiiuenv/libmappedmemory:20200626 /artifacts $DEVKITPRO +COPY --from=wiiuenv/wiiumodulesystem:20200626 /artifacts $DEVKITPRO + +WORKDIR project \ No newline at end of file diff --git a/README.md b/README.md index 6bc2bea..68b2192 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,21 @@ Replaces the usage of `MEMAllocFromDefaultHeap`, `MEMAllocFromDefaultHeapEx` and # Usage Run this module via [SetupPayload](https://github.com/wiiu-env/SetupPayload/), requires the [MemoryMappingModule](https://github.com/wiiu-env/MemoryMappingModule) to be running at the same time. +## Building using the Dockerfile + +It's possible to use a docker image for building. This way you don't need anything installed on your host system. + +``` +# Build docker image (only needed once) +docker build . -t patchmemoryrelocationsmodule-builder + +# make +docker run -it --rm -v ${PWD}:/project patchmemoryrelocationsmodule-builder make + +# make clean +docker run -it --rm -v ${PWD}:/project patchmemoryrelocationsmodule-builder make clean +``` + # Dependencies: - [wut](https://github.com/decaf-emu/wut) - [WUMS](https://github.com/wiiu-env/WiiUModuleSystem)