Sorry for the double post but figured this would be a better place to ask.
Hi guys, I'm going to work on a project to start porting standard gnu stuff over to the psp. I noticed that there was a version of gcc for psp so I was like "wow, this would be perfect to start porting gnu stuff over!"
Anyway! I was about to compile bash when I realized that it might be a little harder than I had first thought since bash install involves the standard configure, make, make install process.
So, my question is. Has anyone tried to install anything like this that uses a configure make process for the psp? Anyone have any idea what would be required to do this?
I've just assumed that psp-gcc will produce a binary that can run on a psp, if that is the case, maybe it would only require me to change the configure process to use psp-gcc instead of gcc, but I am somehow doubtful that this would actually work seeing as the configure script is generally made to compile something on the architecture the files resides on.
Anyway, I obviously have no experience with compiling something for an architecture other than for the machine doing the compiling, so any help or direction would be appreciated
How do you compile gnu programs?
This might have already be answered..
You're going to run into a lot of problems due to incomplete library implementations for the psp .. there's a basic sockets library, but a lot of the POSIX layer stuff will be inoperable.
You can try running the configure script as a cross-compile.. on my machine (winxp + cygwin) it might go something like this..
$ cat > config.site
CC=psp-gcc
CPP=psp-g++
CFLAGS=-I/usr/local/pspdev/psp/include
LDFLAGS=-L/usr/local/pspdev/psp/lib -lpspsdk -lc -lpspuser -lpspkernel
^D
$ export CONFIG_SITE=./config.site
$ ./configure --host=mips-r4000 --build=i686-cygwin --other-various-options-go-here ...
Anyways, I'm slogging through some of this too at the moment.
You're going to run into a lot of problems due to incomplete library implementations for the psp .. there's a basic sockets library, but a lot of the POSIX layer stuff will be inoperable.
You can try running the configure script as a cross-compile.. on my machine (winxp + cygwin) it might go something like this..
$ cat > config.site
CC=psp-gcc
CPP=psp-g++
CFLAGS=-I/usr/local/pspdev/psp/include
LDFLAGS=-L/usr/local/pspdev/psp/lib -lpspsdk -lc -lpspuser -lpspkernel
^D
$ export CONFIG_SITE=./config.site
$ ./configure --host=mips-r4000 --build=i686-cygwin --other-various-options-go-here ...
Anyways, I'm slogging through some of this too at the moment.