Makefile question

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

Moderators: cheriff, TyRaNiD

Post Reply
Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Makefile question

Post by Shapyi »

Before PSP I never really did Unix style programming with makefiles. Here is my question. How do you move the elf file to the PSP. Say my PSP path is "I:\DEV\". Because I am using FileAssistant to send the elf, test it and then just go back to FileAssistant instead of the PSP XMB menu.

So can someone help? I feel kind of dumb asking this. And if there is another dev program better than FileAssistant with USB drivers and call backs, let me know too.

Thanks for the help.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

You should really look into psplink for dev
Shoot Pixels Not People!
Makeshift Development
Shapyi
Posts: 95
Joined: Mon Apr 25, 2005 9:31 am

Post by Shapyi »

Where can i get that and what command do i need to put in my makefile to move the elf to PSP?

EDIT: I found PSPLink on the front page.
Gary13579
Posts: 93
Joined: Mon Aug 15, 2005 7:43 am

Post by Gary13579 »

PSPLink is great for programming, but it doesn't automatically copy the EBOOT over. For that, I suggest adding this to the very bottem of the makefile.

Code: Select all

install: 
    mount /mnt/psp && cp peldet peldet% /mnt/psp/psp/game/ && umount /mnt/psp
I'm not exactly sure if it works, I'll have to try it tonight on cygwin. danzel posted this on the forums a while ago.

So you type in "make kxploit", then type in "make install".
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post by Oobles »

If you're using PSPLink then you should use a USB cable and get the host file system working. I have the host filesystem directed at my current projects executable directory. A session in psplink becomes 'exec EBOOT.PBP' and then 'reset'.. code.. compile.. repeat. :)

Hope that helps.
David. aka Oobles.
Gary13579
Posts: 93
Joined: Mon Aug 15, 2005 7:43 am

Post by Gary13579 »

Oobles wrote:If you're using PSPLink then you should use a USB cable and get the host file system working. I have the host filesystem directed at my current projects executable directory. A session in psplink becomes 'exec EBOOT.PBP' and then 'reset'.. code.. compile.. repeat. :)

Hope that helps.
David. aka Oobles.
Others in the pspdev IRC channel have suggested this, but I lost the link. I've searched the forums a bit and can't find a tutorial. Got a link to one?
I'm using Cygwin, btw. I've heard it's a bit iffy.
Post Reply