[Buildroot] User-space packages - Staging_Dir or Target_Dir

Thiago A. Corrêa thiago.correa at gmail.com
Tue Aug 28 11:48:08 UTC 2007


yes, some packages will instead use make install with the appropriate
DESTDIR set or having configured it with the prefix. But most of the
time, make install does stuff you don't want, like install man pages.
One has to check what the package makefiles are doing to make sure.

On 8/28/07, Daniel Frey <dmfrey+linux at gmail.com> wrote:
> Do I need to explicitly copy what I install into the staging dir into the
> root dir in order for the new libraries to be included in the resulting
> image?
>
> I have seen this done in the xml2 makefile and I wasn't sure if it was
> needed for every package.
>
> Dan
>
>
> >On Wed, Aug 22, 2007 at 07:47:59PM -0400, Daniel Frey wrote:
> >>When constructing my make files for my packages in the package/, what is
> the
> >>suggested installation directory, TARGET_DIR or STAGING_DIR?
> >>
> >>Some of the included packages install them to STAGING_DIR.  The
> >>Documentation on the buildroot website has them installed in the
> TARGET_DIR.
> >>
> >>Is there a correct way, or preferred way?
> >
> >Depends :)
> >
> >Files that go straight to the target have to me installed to the
> >TARGET_DIR. Intermediate files (prerequisites of stuff that will be on
> >the target like helper libraries, headers, etc) have to live in
> >STAGING_DIR. Sometimes only a small fraction of files in the staging_dir
> >is needed in the real target, so they are copied selectively.
> >
> >HTH,
> >Bernhard
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>



More information about the buildroot mailing list