Cross-compiling Linux kernel

Corinna Vinschen
Mon Jun 17 15:19:00 GMT 2013

On Jun 17 17:24, Fedin Pavel wrote:
>  Hello!
>  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:
>  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.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list