toolchain DESTDIR parameter

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

Moderators: cheriff, TyRaNiD

Post Reply
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

toolchain DESTDIR parameter

Post by swordman »

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!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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

Code: Select all

 ## Configure the build.
 ../configure --prefix="$PSPDEV" --target="psp" --enable-install-libbfd || { exit 1; }
Is that what you need?
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

Post by swordman »

Thanks ooPo! that seems what I'm looking for. I'll give it a try!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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/man ... STDIR.html

Setting PSPDEV to the staged install dir would result in binaries that don't work correctly in the final install.
swordman
Posts: 27
Joined: Tue Dec 27, 2005 9:04 pm

Post by swordman »

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 :)
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

As I said:
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.
Post Reply