Add documentation of build flags to the README

This commit is contained in:
Maschell 2022-04-22 22:03:57 +02:00
parent 31b7070c9b
commit c8d81e450d
2 changed files with 15 additions and 3 deletions

View File

@ -46,9 +46,9 @@ CXXFLAGS += -DDEBUG -g
CFLAGS += -DDEBUG -g CFLAGS += -DDEBUG -g
endif endif
ifeq ($(VERBOSE_DEBUG),1) ifeq ($(DEBUG),VERBOSE)
CXXFLAGS += -DVERBOSE_DEBUG -g CXXFLAGS += -DDEBUG -DVERBOSE_DEBUG -g
CFLAGS += -DVERBOSE_DEBUG -g CFLAGS += -DDEBUG -DVERBOSE_DEBUG -g
endif endif
LIBS := -lwups -lwut -lmappedmemory -lcontentredirection LIBS := -lwups -lwut -lmappedmemory -lcontentredirection

View File

@ -46,6 +46,18 @@ sd:/sdcafiine/0005000010145000/ModPack1/content/
sd:/sdcafiine/0005000010145000/ModPack2/content/ sd:/sdcafiine/0005000010145000/ModPack2/content/
``` ```
## Buildflags
### Logging
Building via `make` only logs errors (via OSReport). To enable logging via the [LoggingModule](https://github.com/wiiu-env/LoggingModule) set `DEBUG` to `1` or `VERBOSE`.
`make` Logs errors only (via OSReport).
`make DEBUG=1` Enables information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule).
`make DEBUG=VERBOSE` Enables verbose information and error logging via [LoggingModule](https://github.com/wiiu-env/LoggingModule).
If the [LoggingModule](https://github.com/wiiu-env/LoggingModule) is not present, it'll fallback to UDP (Port 4405) and [CafeOS](https://github.com/wiiu-env/USBSerialLoggingModule) logging.
## Building using the Dockerfile ## 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. It's possible to use a docker image for building. This way you don't need anything installed on your host system.