Makefile for PSP.

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

Moderators: cheriff, TyRaNiD

Post Reply
eridano
Posts: 11
Joined: Thu Jan 24, 2008 1:08 am

Makefile for PSP.

Post by eridano »

Hi folks.
I'm newbie in c dev for PSP. I'd like to know where can I find documentation about all parameters / commands / variables / other important (and less important) declarations I can write inside Makefile...
(For example documentation about PSP_EBOOT_SFO, VS_PATH, PSP_MOUNT).
Thank you in advance.
Ivan
[email protected]
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

look in your /usr/local/pspdev/psp/sdk/samples/templates dir
Tyth0N
Posts: 2
Joined: Sun Feb 10, 2008 5:39 pm
Location: Shanghai, China
Contact:

Post by Tyth0N »

I'm playing with psp slim with 3.90 m33 firmware.
I have installed the toolchain and sdk.
I have complied some samples in the sdk/samples folder.
Some runs correctly. But some returns error code.

In samples/debug/kprintf
calling pspDebugInstallKprintfHandler(NULL); returns 8002013C
I search it in the forums, It means library not found, is it?

I don't know which library the function needs and where to put it so that the library can be found.
Tyth0N
Posts: 2
Joined: Sun Feb 10, 2008 5:39 pm
Location: Shanghai, China
Contact:

Post by Tyth0N »

In samples/debug/exception

I compiled the original souce code. The EBOOT.PBP won't start and return error 80020148 (= PRX type unsupported ?)

So I add BUILD_PRX = 1 in the makefile
This time the EBOOT.PBP started, but it gived a BLACK SCREEN and turned my machine off affer several seconds
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Much of the examples are 1.50 based. That won't work on 3.90 M33 without the 1.50 addon (which only works on the phat psp). If you have a slim, the code has to be rewritten in 3.xx style. There are threads on that, so don't bother asking - use search and read the threads. One of my posts in particular gave a tutorial on how 3.xx homebrew that used kernel mode prx libraries works.
Post Reply