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 

toolchain DESTDIR parameter

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



Joined: 27 Dec 2005
Posts: 27

PostPosted: Thu Mar 06, 2008 2:32 am    Post subject: toolchain DESTDIR parameter Reply with quote

I'm trying to build a package for SLAX to enable it to compile for PSP.
Is there an option like DESTDIR to make the toolchain compile and put the file in a specific directory?
Thanks!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Mar 06, 2008 3:17 am    Post subject: Reply with quote

The toolchain is just gcc, binutils, gdb, newlib, etc, so whatever DESTDIR support they have should already be usable (you'll have to adjust the toolchain build scripts, of course).

The pspsdk is autoconf, so that should support it too.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Mar 07, 2008 3:19 am    Post subject: Reply with quote

You can use the environment variable $PSPDEV to set the destination directory:

Code:
 ## Configure the build.
 ../configure --prefix="$PSPDEV" --target="psp" --enable-install-libbfd || { exit 1; }

Is that what you need?
Back to top
View user's profile Send private message Visit poster's website
swordman



Joined: 27 Dec 2005
Posts: 27

PostPosted: Fri Mar 07, 2008 4:24 am    Post subject: Reply with quote

Thanks ooPo! that seems what I'm looking for. I'll give it a try!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Mar 07, 2008 5:28 am    Post subject: Reply with quote

No, DESTDIR is different. It's used when installing into a temporary different location -- used during package building. See http://www.gnu.org/software/libtool/manual/automake/DESTDIR.html

Setting PSPDEV to the staged install dir would result in binaries that don't work correctly in the final install.
Back to top
View user's profile Send private message
swordman



Joined: 27 Dec 2005
Posts: 27

PostPosted: Sat Mar 08, 2008 7:11 am    Post subject: Reply with quote

No, I haven't tested the "set PSPDEV" method, but what should I do to make a installation suitable for packaging?
My normal procedure to make packages is the use of DESTDIR parameter, so? Any idea on how to adapt it to psptoolchian?
Thanks for all the advices :)
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Mar 08, 2008 6:08 pm    Post subject: Reply with quote

As I said:
Quote:

The toolchain is just gcc, binutils, gdb, newlib, etc, so whatever DESTDIR support they have should already be usable (you'll have to adjust the toolchain build scripts, of course).

The pspsdk is autoconf, so that should support it too.
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