forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Makefile Help

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
InflamedSpirit



Joined: 03 Oct 2005
Posts: 14

PostPosted: Tue Nov 08, 2005 6:16 am    Post subject: Makefile Help Reply with quote

When compiling a psp project with any makefile in the samples or any others ive seen, it makes a EBOOT.PBP, PARAM.SFO, main.o, and a .elf.
The eboot is packed with DATA.PSP and a PARAM.SFO

My question is can I have a custom makefile that will make the DATA.PSP not packed into the EBOOT and instead have it renamed as the EBOOT.PBP. This way I wouldn't have to use the PBP Unpacker to extract the DATA.PSP and rename that to EBOOT.PBP.

Heres the makefile I'm using:
Code:

TARGET = GameName
OBJS = main.o

INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LIBS=-lm
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = GameName


PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


Thanks in advance!
Back to top
View user's profile Send private message
placasoft



Joined: 28 Mar 2005
Posts: 53

PostPosted: Tue Nov 08, 2005 6:25 am    Post subject: Reply with quote

The "*.elf" file ist the DATA.PSP ;)
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Nov 08, 2005 6:43 am    Post subject: Reply with quote

The ELF file isn't stripped. So you can either strip it or just use "make kxploit" to create directories that can be used on 1.5.
Back to top
View user's profile Send private message
InflamedSpirit



Joined: 03 Oct 2005
Posts: 14

PostPosted: Tue Nov 08, 2005 7:02 am    Post subject: Reply with quote

Thanks a lot! That works great! :)
lol, I feel a little foolish now.

You said that the ELF isn't stripped, when it IS stripped what is taken away? I always figured it wasn't useful because the filesize was more than 4 times the normal eboot.
Back to top
View user's profile Send private message
misfire



Joined: 06 Sep 2004
Posts: 120
Location: Germany

PostPosted: Wed Nov 09, 2005 6:52 pm    Post subject: Reply with quote

FYI, strip discards all symbols from object files, e.g. debugging symbols.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group