KXploit on Linux

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
topa
Posts: 5
Joined: Sun Jan 29, 2006 12:53 am

KXploit on Linux

Post by topa »

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.
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

This is already supported.

Code: Select all

gmake kxploit
That'll do the trick :)
Br, Sandberg
topa
Posts: 5
Joined: Sun Jan 29, 2006 12:53 am

Post by topa »

[quote="sandberg"]This is already supported.

Code: Select all

gmake kxploit
Pardon me, but I didn't quite get that.
Is kxploit source available for it to be compiled in linux ?
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

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
topa
Posts: 5
Joined: Sun Jan 29, 2006 12:53 am

Post by topa »

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: Select all

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 ?
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

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: Select all

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
topa
Posts: 5
Joined: Sun Jan 29, 2006 12:53 am

Post by topa »

This is my Makefile

Code: Select all

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
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

The TARGET directive is used when creating the directories. So It is strange that it doesn't work.
Br, Sandberg
Dr. Vegetable
Posts: 171
Joined: Mon Nov 14, 2005 1:32 am
Location: Boston, Massachusetts
Contact:

Post by Dr. Vegetable »

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.
topa
Posts: 5
Joined: Sun Jan 29, 2006 12:53 am

Post by topa »

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)
User avatar
ReKleSS
Posts: 73
Joined: Sat Jun 18, 2005 12:57 pm
Location: Melbourne, Australia

Post by ReKleSS »

This is kind of a hack, but if you really can't get it working, do

Code: Select all

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
Post Reply