From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: Cross-building and debugging
Date: Tue, 31 Oct 2017 16:00:20 +0100 [thread overview]
Message-ID: <20171031150020.GC5385@yssyq.radix50.net> (raw)
In-Reply-To: <0b55db7d-e602-4f4b-b6d5-bc1c0a0e18e8@googlegroups.com>
Hello Andrea,
On Mon, Oct 30, 2017 at 01:34:19AM -0700, andrea.marson.dave@gmail.com wrote:
> IIUC, when using Isar it is implicitly assumed that the user applications
> are natively built on the target.
The current implementation builds user applications natively in buildchroot
using qemu on the host. This was a customer requirement to avoid having to
tweak Debian packages which one may happen to want to rebuild and which don't
support cross-building.
That said, Isar's predecessor is based on cross-building, which is state of the
art in Emdebian and has its advantages in certain use cases.
> If, for any reason, this is not possibile, one has to cross-build the
> applications.
> Which approach do you recommend to set up the cross-build environment, in
> order to make it work smoothly with Isar?
Basically, it worked like this:
1. Install cross-toolchain (e.g., gcc-arm-linux-gnueabihf) into buildchroot.
2. Modify the package's debian/rules for cross-building (e.g., pass the right
--host=arm-linux-gnueabihf to ./configure).
3. Cross-build (e.g., call dpkg-buildpackage with --arch=arm or similar).
I don't remember the details, so the quotations above are not literal.
There is a branch
https://github.com/ilbers/isar/tree/lenormf/develop-l20170602-dpkg-cross which
should support cross-building. We plan to refine it and propose for
integration into master.
Till then, you might use the current qemu approach or look at the branch above
(will probably require some hacking). If you can share your use case, maybe we
could suggest something. E.g., GLIB doesn't cross-compile out of the box due to
configure failing to run test programs for the target; supplying the test
results to configure pre-canned in a file makes it happy.
With kind regards,
Baurzhan.
prev parent reply other threads:[~2017-10-31 15:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-30 8:34 andrea.marson.dave
2017-10-30 12:49 ` Andreas Reichel
2017-10-30 13:43 ` Henning Schild
2017-10-31 15:34 ` Baurzhan Ismagulov
2017-10-31 15:00 ` Baurzhan Ismagulov [this message]
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=20171031150020.GC5385@yssyq.radix50.net \
--to=ibr@radix50.net \
--cc=isar-users@googlegroups.com \
/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