From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] Using a bootlin toolchain with buildroot
Date: Fri, 15 Jun 2018 21:13:30 +0200 [thread overview]
Message-ID: <20180615211330.479e44c5@windsurf> (raw)
In-Reply-To: <CAF_dkJAH5u3g_rQYaUVzCnUMyeMTMZrRbo0KDnOt6pVQtwvb-g@mail.gmail.com>
Hello Patrick,
On Mon, 11 Jun 2018 15:12:16 -0400, Patrick Doyle wrote:
> Remember this thread from last April?
>
> Suppose I wanted to generate and host my own prebuilt toolchain.
> Suppose I really liked the existing
> armv7-eabihf--musl--stable-2018.02-2 toolchain, but I really wanted to
> use 4.9 kernel headers instead of 4.1. How would I generate and
> archive the toolchain for my own use?
Here is the summary:
1/ Generate a Buildroot configuration that just defines the
architecture, architecture variant and toolchain options.
Also use the following for this configuration to disable any
user-space package:
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
# BR2_TARGET_ROOTFS_TAR is not set
I also typically pass something like
BR2_HOST_DIR=/opt/armv7-eabihf--musl--stable-2018.02-2 in the
configuration.
2/ Do the Buildroot build as usual
3/ Run "make sdk"
4/ Create a tarball of /opt/armv7-eabihf--musl--stable-2018.02-2 and
you're done :-)
> And, as long as I have your attention, what is the difference between
> the 2018.02-1 and 2018.02-2 toolchains anyway? They seem to have the
> same set of GCC, GDB, Linux headers, library, and binutils versions.
The minor versions are typically just updates to the toolchain build
process or additional patches on the gcc/binutils/gdb versions. I
should have a better tracking of what I change between versions, but
that's not something I'm doing yet :-/
Hope this helps!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-06-15 19:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 14:44 [Buildroot] Using a bootlin toolchain with buildroot Patrick Doyle
2018-04-06 14:53 ` Jan Kundrát
2018-04-06 19:02 ` Thomas Petazzoni
2018-04-06 19:02 ` Thomas Petazzoni
2018-04-07 0:50 ` Patrick Doyle
2018-04-07 6:43 ` Thomas Petazzoni
2018-04-08 22:34 ` Patrick Doyle
2018-06-11 19:12 ` Patrick Doyle
2018-06-15 17:05 ` Patrick Doyle
2018-06-15 19:13 ` Thomas Petazzoni [this message]
2018-06-17 2:28 ` Patrick Doyle
2018-06-17 11:47 ` Thomas Petazzoni
2018-06-17 19:03 ` Patrick Doyle
2018-06-18 13:22 ` nimaim
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=20180615211330.479e44c5@windsurf \
--to=thomas.petazzoni@bootlin.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