This is the mail archive of the
mailing list for the Cygwin project.
Re: Cross-compiling Linux kernel
- From: "Chris J. Breisch" <chris dot ml at breisch dot org>
- To: cygwin at cygwin dot com
- Date: Mon, 17 Jun 2013 12:46:27 -0400
- Subject: Re: Cross-compiling Linux kernel
- References: <003401ce6b5d$f6ec87b0$e4c59710$%fedin at samsung dot com> <20130617151819 dot GB13457 at calimero dot vinschen dot de>
On 6/17/2013 11:18 AM, Corinna Vinschen wrote:
There are far better ways to cross-compile the Linux kernel. I built a
Cross Linux From Scratch system under Cygwin earlier this year. I just
got back from vacation, though. Give me a day or so, and I'll find my
notes on it. I believe most of them have already been posted here in the
On Jun 17 17:24, Fedin Pavel wrote:
In order to cross-compile Linux kernel i have to patch host-side tools a
little bit. Current problems are:
1. Cygwin misses linux/types.h
2. Cygwin defines the following ELF macros according to host machine:
ELF_ST_BIND, ELF_ST_TYPE, ELF_R_SYM, ELF_R_TYPE
What about improving Linux compatibility ? We could have own version of
linux/types.h (for __u8. __u16, etc), and omit ELF definitions. AFAIK they
are not used anywhere, they are just inherited from BSD.
At the other hand, i believe the same problem will happen if i try to
cross-compile Linux kernel under BSD. And Cygwin is BSD-style system...
I have no opinion on the ELF definition issue, but just adding a
linux system header looks pretty wrong to me.
Chris J. Breisch
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple