Add a Dockerfile

This commit is contained in:
Maschell 2020-06-27 12:41:59 +02:00
parent ef975ecbd1
commit a00d616585
2 changed files with 21 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM wiiuenv/devkitppc:20200625
COPY --from=wiiuenv/libmappedmemory:20200626 /artifacts $DEVKITPRO
COPY --from=wiiuenv/wiiumodulesystem:20200626 /artifacts $DEVKITPRO
WORKDIR project

View File

@ -4,6 +4,21 @@ Replaces the usage of `MEMAllocFromDefaultHeap`, `MEMAllocFromDefaultHeapEx` and
# Usage # 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. 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: # Dependencies:
- [wut](https://github.com/decaf-emu/wut) - [wut](https://github.com/decaf-emu/wut)
- [WUMS](https://github.com/wiiu-env/WiiUModuleSystem) - [WUMS](https://github.com/wiiu-env/WiiUModuleSystem)