From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: Build LSK 3.14 kernel with android-toolchain
Date: Tue, 2 Dec 2014 20:34:59 +0800 [thread overview]
Message-ID: <20141202123458.GF2411@dragon> (raw)
In-Reply-To: <20141202182952.01eda0ca@xhacker>
On Tue, Dec 02, 2014 at 06:29:52PM +0800, Jisheng Zhang wrote:
> On Tue, 2 Dec 2014 02:24:03 -0800
> Arnd Bergmann <arnd@arndb.de> wrote:
> > Yes, that's definitely possible. Any idea how the android folks build their
> > kernel?
>
> copied from https://android.googlesource.com/toolchain/build/+/HEAD/README
>
> The Android toolchain supports the following targets:
> a. arm-linux-androideabi
> b. arm-eabi (for Android kernel)
> c. arm-newlib-eabi (for runnng gcc regression tests)
> d. i[3456]86-*-linux-gnu, x86_64-*-linux-gnu (for x86 targets)
>
> So they build android kernel using the arm-eabi- toolchain.
Thanks Jisheng for all the information.
Yes, I just built my kernel with arm-eabi in android-toolchain-eabi-4.9-2014.09
and it works fine. So we basically conclude that we should build kernel
with arm-eabi rather than arm-linux-androideabi.
One thing to note - with CONFIG_ARM_UNWIND turned on, even arm-eabi
generate the following warning. This is one difference between android
arm-eabi and arm-linux-gnueabi we can see immediately.
LD vmlinux
arm-eabi-ld: warning: unwinding may not work because EXIDX input section 31 of fs/built-in.o is not in EXIDX output section
arm-eabi-ld: warning: unwinding may not work because EXIDX input section 12 of crypto/built-in.o is not in EXIDX output section
arm-eabi-ld: warning: unwinding may not work because EXIDX input section 27 of block/built-in.o is not in EXIDX output section
arm-eabi-ld: warning: unwinding may not work because EXIDX input section 27 of drivers/built-in.o is not in EXIDX output section
arm-eabi-ld: warning: unwinding may not work because EXIDX input section 33 of net/built-in.o is not in EXIDX output section
Shawn
next prev parent reply other threads:[~2014-12-02 12:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAQ0ZWRQ05GiCOqV2Q6g2B6n+XN-qs9o6MKOFXiK2wKrW0nvog@mail.gmail.com>
[not found] ` <2052560.M0NHOo7Rnz@wuerfel>
2014-12-02 9:04 ` Build LSK 3.14 kernel with android-toolchain Shawn Guo
2014-12-02 9:39 ` Jisheng Zhang
2014-12-02 10:24 ` Arnd Bergmann
2014-12-02 10:29 ` Jisheng Zhang
2014-12-02 12:34 ` Shawn Guo [this message]
2014-12-02 13:04 ` Arnd Bergmann
2014-12-02 13:03 ` Arnd Bergmann
2014-12-02 12:04 ` Shawn Guo
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=20141202123458.GF2411@dragon \
--to=shawn.guo@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).