mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-03 12:28:39 +00:00
Describe how to patch external projects
This commit is contained in:
@@ -225,16 +225,21 @@ Each one is a binary RNG file which is passed to the `rgbgfx_test` program.
|
|||||||
|
|
||||||
### External projects
|
### External projects
|
||||||
|
|
||||||
Each `*.cfg` file corresponds to one test.
|
Each `.cfg` file corresponds to one test.
|
||||||
Each one defines the parameters for a real external project that builds using RGBDS.
|
Each one defines the parameters for a real external project that builds using RGBDS.
|
||||||
|
|
||||||
1. Make sure the downstream project supports
|
1. Make sure the downstream project supports
|
||||||
<code>make <var><target></var> RGBDS=<var><path/to/RGBDS/></var></code>.
|
<code>make <var><target></var> RGBDS=<var><path/to/rgbds/></var></code>.
|
||||||
While the test suite supports any Make target name, only
|
While the test suite supports any Make target name, only
|
||||||
[Make](//gnu.org/software/make) is currently supported, and the Makefile must
|
[Make](//gnu.org/software/make) is currently supported, and the Makefile must
|
||||||
support a `RGBDS` variable to use a non-system RGBDS directory.
|
support a `RGBDS` variable to use a non-system RGBDS directory.
|
||||||
2. Create the new `.cfg` file, following the existing ones.
|
2. Create the new `.cfg` file, following the existing ones.
|
||||||
|
|
||||||
|
If an external project does not support `make RGBDS=`, or otherwise fails to
|
||||||
|
build with current RGBDS, then then you can edit the project to build correctly,
|
||||||
|
and create a patch with `git diff` to be committed as
|
||||||
|
<code>test/external/patches/<var><project></var>.patch</code>.
|
||||||
|
|
||||||
## Container images
|
## Container images
|
||||||
|
|
||||||
The CI will
|
The CI will
|
||||||
|
|||||||
Reference in New Issue
Block a user