From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] Qtopia4 fails building - target stage tries to run target binaries on build machine
Date: Mon, 30 Jul 2007 14:43:23 +0200 [thread overview]
Message-ID: <20070730124323.GA25065@aon.at> (raw)
In-Reply-To: <1185796725.27015.7.camel@localhost.localdomain>
On Mon, Jul 30, 2007 at 01:58:45PM +0200, Hans-Christian Egtvedt wrote:
>I am trying to look into how to "fix" Qtopia 4 in Buildroot, at least it
>does not compile for me (snapshot 20070717).
>
>The makefile seems to generate target specific binaries in build_<arch>
>directory, and host specific binaries in toolchain_build_<arch>.
>
>As I understand the toolchain_build_<arch> binaries should be installed
>to $(STAGING_DIR) and the build_<arch> binaries should be installed to
>$(TARGET_ROOT)?
I don't think that this is an accurate description.
<p>
The staging_dir is holding intermediate files (headers, libraries) that
are prerequisites of other packages.
The target_dir is the final root filesystem. The target_dir will usually
not contain headers nor intermediate libraries (.ar archives or
intermediate libs) that are not needed on the target.
</p>
Helper applications that are ment to be run on the host are compiled in
<packagename>-host while cross-compiled packages, libraries,
binaries are compiled in <packagename>.
<br>
The host-binaries will either be ran directly in the place they were
compile or will be installed into toolchain_build_ARCH/bin .
Applications that are ment to be run on the host but have prerequisites
that are built in buildroot shall use the <packagename>-host
directories for the prerequisite libraries, if possible (e.g.
<code>--with-gettext=/there/toolchain_build_i386/gettext-0.00-host</code>
)
If a prerequisite host-library has to be installed before it can be
used, then it should be installed into target_dir_ARCH/packagename
(e.g. libgmp which is needed for the cross-compiler:
--with-gmp=/there/toolchain_build_i386/gmp).
>
>Have I understood the build setup correctly?
See
http://buildroot.uclibc.org/buildroot.html
and look for "staging_dir"
Perhaps somebody will flesh out the above and add it to the
abovementioned URL (don't have time ATM).
HTH,
next prev parent reply other threads:[~2007-07-30 12:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 11:58 [Buildroot] Qtopia4 fails building - target stage tries to run target binaries on build machine Hans-Christian Egtvedt
2007-07-30 12:43 ` Bernhard Fischer [this message]
2007-07-30 18:54 ` Thomas Lundquist
2007-07-31 8:22 ` Hans-Christian Egtvedt
2007-07-31 9:38 ` Thomas Lundquist
2007-07-31 10:15 ` Hans-Christian Egtvedt
2007-07-31 12:26 ` Allan Clark
2007-07-31 12:35 ` Hans-Christian Egtvedt
2007-07-31 14:27 ` Allan Clark
2007-07-31 14:41 ` Hans-Christian Egtvedt
2007-08-01 7:45 ` Thomas Lundquist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070730124323.GA25065@aon.at \
--to=rep.dot.nop@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox