Skip to content

Commit f7bd0eb

Browse files
committed
Add How to build
1 parent 4c02cc8 commit f7bd0eb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,15 @@ See [./readme.txt](./readme.txt)
3434

3535
## Thanks to
3636
- gameblabla for writing the initial [Bittboy gpSP port](https://github.com/bittboy/gpsp)
37-
- the other people mentioned in the changelog who shared improvements for gpSP
37+
- the other people mentioned in the changelog who shared improvements for gpSP
38+
39+
## How to build
40+
0. Build the BittBoy toolchain as described [here](https://github.com/TriForceX/MiyooCFW/wiki/Making-Games). Follow the steps up to (and including) step 3.
41+
0. You can now build gpSP as described [here](./build.txt).
42+
43+
### Optimizing your build
44+
0. The build binaries will not be optimized for your device yet. First, use your emulator build on your device. Test some games and some features of the emulator. You'll probably notice a suboptimal performance.
45+
0. Now, close the emulator. In the folder where your emulator build is, a `./profile` folder will have appeared with a bunch of `.gcda` files. Move those to the `powkiddy` or `bittboy` folder (depending on your device).
46+
0. In `Makefile`, change `-fprofile-generate=./profile` to `-fprofile-use=./`.
47+
0. Make a new build. If required, force a new build with `make -B`.
48+
0. Done! Enjoy your now device optimized emulator.

0 commit comments

Comments
 (0)