* [Buildroot] User-space packages - Staging_Dir or Target_Dir
@ 2007-08-28 11:35 Daniel Frey
2007-08-28 11:48 ` Thiago A. Corrêa
2007-08-28 12:30 ` Bernhard Fischer
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Frey @ 2007-08-28 11:35 UTC (permalink / raw)
To: buildroot
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070828/84514f0e/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] User-space packages - Staging_Dir or Target_Dir
2007-08-28 11:35 [Buildroot] User-space packages - Staging_Dir or Target_Dir Daniel Frey
@ 2007-08-28 11:48 ` Thiago A. Corrêa
2007-08-28 12:30 ` Bernhard Fischer
1 sibling, 0 replies; 6+ messages in thread
From: Thiago A. Corrêa @ 2007-08-28 11:48 UTC (permalink / raw)
To: buildroot
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@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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] User-space packages - Staging_Dir or Target_Dir
2007-08-28 11:35 [Buildroot] User-space packages - Staging_Dir or Target_Dir Daniel Frey
2007-08-28 11:48 ` Thiago A. Corrêa
@ 2007-08-28 12:30 ` Bernhard Fischer
1 sibling, 0 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-08-28 12:30 UTC (permalink / raw)
To: buildroot
On Tue, Aug 28, 2007 at 07:35:03AM -0400, Daniel Frey 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 handle it like this:
staging_dir contains non-stripped stuff.
If a file is needed on the target, it has to be copied to the target.
That copy (in target_dir) is then (eventually) stripped.
This provides for easy debugging in the staging_dir since those contain
debug-info.
>
>I have seen this done in the xml2 makefile and I wasn't sure if it was
>needed for every package.
It is not needed for every package.
Think about tcpdump/libpcap. Consider how you don't want libpcap on your
target if the only app that is using it is tcpdump anyway. You would
rather link tcpdump against libpcap.a and only install tcpdump to the
target.
See?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] User-space packages - Staging_Dir or Target_Dir
@ 2007-08-28 0:36 Daniel Frey
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Frey @ 2007-08-28 0:36 UTC (permalink / raw)
To: buildroot
Thank you Bernard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070827/34f266a9/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] User-space packages - Staging_Dir or Target_Dir
@ 2007-08-22 23:47 Daniel Frey
2007-08-23 11:26 ` Bernhard Fischer
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Frey @ 2007-08-22 23:47 UTC (permalink / raw)
To: buildroot
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?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070822/ed41691f/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] User-space packages - Staging_Dir or Target_Dir
2007-08-22 23:47 Daniel Frey
@ 2007-08-23 11:26 ` Bernhard Fischer
0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-08-23 11:26 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-28 12:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-28 11:35 [Buildroot] User-space packages - Staging_Dir or Target_Dir Daniel Frey
2007-08-28 11:48 ` Thiago A. Corrêa
2007-08-28 12:30 ` Bernhard Fischer
-- strict thread matches above, loose matches on Subject: below --
2007-08-28 0:36 Daniel Frey
2007-08-22 23:47 Daniel Frey
2007-08-23 11:26 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox