| View previous topic :: View next topic |
| Author |
Message |
swordman
Joined: 27 Dec 2005 Posts: 27
|
Posted: Thu Mar 06, 2008 2:32 am Post subject: toolchain DESTDIR parameter |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Thu Mar 06, 2008 3:17 am Post subject: |
|
|
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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Fri Mar 07, 2008 3:19 am Post subject: |
|
|
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 |
|
 |
swordman
Joined: 27 Dec 2005 Posts: 27
|
Posted: Fri Mar 07, 2008 4:24 am Post subject: |
|
|
| Thanks ooPo! that seems what I'm looking for. I'll give it a try! |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Fri Mar 07, 2008 5:28 am Post subject: |
|
|
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 |
|
 |
swordman
Joined: 27 Dec 2005 Posts: 27
|
Posted: Sat Mar 08, 2008 7:11 am Post subject: |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sat Mar 08, 2008 6:08 pm Post subject: |
|
|
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 |
|
 |
|