| View previous topic :: View next topic |
| Author |
Message |
topa
Joined: 29 Jan 2006 Posts: 5
|
Posted: Wed Feb 08, 2006 1:56 am Post subject: KXploit on Linux |
|
|
Hi all,
First off, thanks a million to ps2dev.org for the awesome sdk for the PSP.
I've got the toolchain and got it compiled in Linux and am able to generate EBOOT's which work the PSP(v1.5).
However I have a small problem, each time I create a EBOOT I have to reboot to windows and use KXploit to generate the folders and the dummy EBOOT and put it on PSP.
Is there a script/program which do this this for me in Linux ?
Basically I need something similar to KXploit for Linux.If the alternate is a compination of programs and scripts I'm fine with it.
Thanks. |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Feb 08, 2006 2:24 am Post subject: |
|
|
This is already supported.
That'll do the trick :) _________________ Br, Sandberg |
|
| Back to top |
|
 |
topa
Joined: 29 Jan 2006 Posts: 5
|
Posted: Wed Feb 08, 2006 3:12 am Post subject: |
|
|
[quote="sandberg"]This is already supported.
Pardon me, but I didn't quite get that.
Is kxploit source available for it to be compiled in linux ? |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Feb 08, 2006 3:18 am Post subject: |
|
|
When you build your homebrew, there is a target named kxploit, which creates the directories for you (and it also support adding custom icons etc.).
So if you e.g. make the samples/gu/cube sample you just use
gmake -f Makefile.sample kxploit
instead of
gmake -f Makefile.sample _________________ Br, Sandberg |
|
| Back to top |
|
 |
topa
Joined: 29 Jan 2006 Posts: 5
|
Posted: Wed Feb 08, 2006 3:24 am Post subject: |
|
|
| sandberg wrote: | When you build your homebrew, there is a target named kxploit, which creates the directories for you (and it also support adding custom icons etc.).
So if you e.g. make the samples/gu/cube sample you just use
gmake -f Makefile.sample kxploit
instead of
gmake -f Makefile.sample |
OK. Got it.
Now I'm faced with a new problem:
[code]
sekrity:/opt/mips_psp/progs# make -f Makefile kxploit
mkdir -p ""
mkdir: cannot create directory `': No such file or directory
make: *** [kxploit] Error 1
[/code
It attempts to create a "NULL" directory.Are there any additional parameters which I'm missing ? |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Feb 08, 2006 3:38 am Post subject: |
|
|
Could you post your makefile, I can take a look. Otherwise compare it to one of the sample makefiles. I've added one below
| Code: |
TARGET = cube
OBJS = cube.o logo.o ../common/callbacks.o ../common/vram.o
INCDIR =
CFLAGS = -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= -lpspgum -lpspgu -lm
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Cube Sample
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
logo.o: logo.raw
bin2o -i logo.raw logo.o logo
|
_________________ Br, Sandberg |
|
| Back to top |
|
 |
topa
Joined: 29 Jan 2006 Posts: 5
|
Posted: Wed Feb 08, 2006 3:45 am Post subject: |
|
|
This is my Makefile
| Code: |
TARGET = test
OBJS = test.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Prog Test
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
|
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Feb 08, 2006 3:53 am Post subject: |
|
|
The TARGET directive is used when creating the directories. So It is strange that it doesn't work. _________________ Br, Sandberg |
|
| Back to top |
|
 |
Dr. Vegetable
Joined: 14 Nov 2005 Posts: 171 Location: Boston, Massachusetts
|
Posted: Wed Feb 08, 2006 4:44 am Post subject: |
|
|
| Make sure there is no whitespace at the end of any of the lines in your makefile. I've seen some buggy behavior from make when trailing whitespace is present. This could be your problem here. |
|
| Back to top |
|
 |
topa
Joined: 29 Jan 2006 Posts: 5
|
Posted: Wed Feb 08, 2006 11:07 pm Post subject: |
|
|
| Dr. Vegetable wrote: | | Make sure there is no whitespace at the end of any of the lines in your makefile. I've seen some buggy behavior from make when trailing whitespace is present. This could be your problem here. |
re-checked the makefile, no trailing whitespace.
Still having to boot into Linux for Kxploit(sucks) |
|
| Back to top |
|
 |
ReKleSS

Joined: 18 Jun 2005 Posts: 73 Location: Melbourne, Australia
|
Posted: Thu Feb 09, 2006 5:01 pm Post subject: |
|
|
This is kind of a hack, but if you really can't get it working, do
| Code: | | psp-strip test.elf -o EBOOT.PBP |
The resulting EBOOT goes in the TEST directory (as opposed to TEST%) on the psp... it's doing the same thing as make kxploit, just without the directories. Still weird that it doesn't work properly, though... is your build.mak messed up somehow?
By the way, the '-f Makefile' part of the command is implied, you don't need to type it. make searches for Makefile, makefile and GNUmakefile automatically.
-ReK |
|
| Back to top |
|
 |
|