[Buildroot] Trying to build in an usual place: /opt instead of /

Olivier Perron olivier.perron12 at gmail.com
Tue Dec 1 13:10:00 UTC 2009


Hello all,

I'm trying to build a basic buildroot system that would go in /opt on
the target. I'm doing this just because there is already another linux
system running from / and I want to add my own "enhanced" one that has
to be fully independent from the original one. Hence everything has to
go in another folder: /opt for instance.

So far, I've tweaked some config files and some .mk files to reach my
goal. I have managed to get uclibc installed in /opt/lib and some
userland binaries in /opt/usr/bin.
But, yes there is a but... all my dynamically linked binaries try to
find the dynamic linker in /lib (e.g. /lib/ld-uClibc.so.0) where as
the linker is /opt/lib/ld-uClibc.so.
I had a look at the generated libc and ld-uClibc and they all have
/opt/lib/ld-uClibc.so hardcoded in them as I was expecting. So I'm
quite not so sure where to look now to resolve that issue.
It looks like I have configured uclibc correctly but the linked
binaries are still wrong.
Maybe I also have to adapt the configuration for gcc or binutils ? I
had a look at the .mk files but cannot find easily what to change...
So I'd be very grateful if someone could point me to the right direction !

Regards
Olivier


More information about the buildroot mailing list