-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for PlayBook/BB10 with libretro #1
Conversation
I showed this patch to notaz, and he said the following - [quote] Perhaps put an extra ifdef around __clear_cache for Blackberry QNX? |
True, I had meant to do that but forgot. The psxmem.c change is a bit of a strange issue. Libraries are mapped starting at 0x7800000 on QNX, so the ram ends up getting mapped up at 0x7a... since it's not fixed but then the code cache seems to try and map around there also and we crash with SIGILL or segfault. Moving the ram back to even 0x77000000 will also get it to work again. |
0x70000000 is bad for some Android devices, 0x77000000 might be too, so I guess we need those psxmem.c ifdefs then. |
OK, I think it's safe to merge now I guess. |
Add support for PlayBook/BB10 with libretro
Just tried compiling it with notaz' latest changes and I still can't compile it - [twinaphex@lenovo pcsx_rearmed]$ make -f Makefile.libretro platform=qnx |
If you'd like to build from the command line, you'll have to define CC I think. I built it from the NDK project using this makefile. The NDK defines CC depending on which NDK you have selected. Try CC=qcc -V4.4.2,gcc_ntoarmv7le. |
Can you define CC and the like from Makefile.libretro instead? That way it could work for both commandline and the 'NDK project'. I really like to be as much divorced from any IDEs as possible. |
The issue I had was that PB and BB10 had different qcc versions so I didn't want to hardcode it. I just tried CC = qcc -Vgcc_ntoarmv7le and it compiled for both so we can do that. |
Cool. What you could try with the FBA repo is to get rid of my managed build there, create a new project and this time read from makefile.libretro in pretty much the same way as you did here. You'd also have to add a platform qnx entry in Makefile.libretro. I think that could make FBA work on QNX (Blackberry 10/Playbook). If this approach works, I could rewrite all my managed builds so far to work like this as it would be far more convenient for me to maintain. |
Sure, I'll give it a try. |
Try out if you can compile it now from the commandline and if it works fine in RetroArch - |
You could use CC ?= ... so that it can be overridden by some selected NDK (assuming it sets env var) if desired. |
catch up to libretro repo
Adding support using Makefile.libretro. I may have broken some of the other builds with this, though I'm not sure they built before. The other plugin builds are still looking for config.mk. We don't need to define CC, CCX, AS as they are defined in the NDK.