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

Olivier Perron olivier.perron12 at gmail.com
Tue Dec 1 14:10:51 UTC 2009


On Tue, Dec 1, 2009 at 2:21 PM, Lionel Landwerlin <llandwerlin at gmail.com> wrote:
> On Tue, Dec 1, 2009 at 2:10 PM, Olivier Perron
> <olivier.perron12 at gmail.com> wrote:
>> 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 !
>>
>
> Why not using chroot ?
>

Because I still need to access /dev ?



More information about the buildroot mailing list