diff --git a/cores/README.md b/cores/README.md index 85c5c04..05a8bdb 100644 --- a/cores/README.md +++ b/cores/README.md @@ -1,6 +1,6 @@ # Adding additional cores -In the makefile: first add the core name to the list of `CORES`, eg. `CORES+=`. By default, this will `git clone https://github.com/libretro/` but you can override the repo path by setting `_REPO`. You can select a specific commit by setting `_HASH`. If the resulting lib name doesn't match the `` you can specify the actual name by setting `_CORE`. Additional flags required to build the core can be added by setting `_FLAGS`. If the core does not use a makefile named `Makefile` you can specify a custom makefil by setting `_MAKEFILE`. If building takes place in a subfolder you can specify that by setting `_BUILD_PATH`. +In the makefile: first add the core name to the list of `CORES`, eg. `CORES+=`. By default, this will `git clone https://github.com/libretro/` but you can override the repo path by setting `_REPO`. You can select a specific commit by setting `_HASH`. If the resulting lib name doesn't match the `` you can specify the actual name by setting `_CORE`. Additional flags required to build the core can be added by setting `_FLAGS`. If the core does not use a makefile named `Makefile` you can specify a custom makefile by setting `_MAKEFILE`. If building takes place in a subfolder you can specify that by setting `_BUILD_PATH`. In the patches directory: create a patch file that adds an RG35XX target to the makefile. To do this I run `make clone-` then seach the makefile for `MIYOO` and add a new `else ifeq ($(platform), rg35xx)` condition. I'll find a comparable device to base this addition on (either the Miyoo Mini or a Dingux device). The architecture flags should be something like `-marm -mtune=cortex-a9 -mfpu=neon-fp16 -mfloat-abi=hard -march=armv7-a`. I usually enable `-fPIC -flto` as well. Then I'll try manually building the core. If the build succeeds and runs on the device I'll create the patch with git and name it `.patch`. Then I delete the core folder and run `make ` and confirm the build succeeds and runs on the device.