From b81d232a9bae21ef1bc896f106a926b66dcae869 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 11 Jul 2010 21:36:20 +0200 Subject: kernel: add mingw Add the option to build a cross-compiler for kernel type 'mingw'. The resulting cross-compiler can be used to build applications on a Linux host that can be run on a Windows target. Compiler is build using the mingwrt and w32-api packages aviable from the MinGW project (http://sourceforge.net/projects/mingw). The windows headers (w32-api package) are extracting with the kernel_headers step The libraries and other headers from both packages are build and installed in the various steps of libc Signed-off-by: Bart vdr Meulen [yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"] Signed-off-by: "Yann E. MORIN" --- config/libc.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config/libc.in') diff --git a/config/libc.in b/config/libc.in index 58bc320b..2ee46ba3 100644 --- a/config/libc.in +++ b/config/libc.in @@ -35,10 +35,16 @@ config LIBC_SUPPORT_LINUXTHREADS default n select LIBC_SUPPORT_THREADS_ANY +config LIBC_SUPPORT_WIN32THREADS + bool + default n + select LIBC_SUPPORT_THREADS_ANY + config THREADS string default "nptl" if THREADS_NPTL default "linuxthreads" if THREADS_LINUXTHREADS + default "win32" if THREADS_WIN32THREADS default "none" if THREADS_NONE || LIBC_none # No C library, no threads! @@ -51,6 +57,7 @@ choice prompt "Threading implementation to use:" default THREADS_NPTL if LIBC_SUPPORT_NPTL default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL + default THREADS_WIN32 if LIBC_SUPPORT_WIN32THREADS default THREADS_NONE if ! LIBC_SUPPORT_THREADS_ANY config THREADS_NPTL @@ -63,6 +70,11 @@ config THREADS_LINUXTHREADS prompt "linuxthreads" depends on LIBC_SUPPORT_LINUXTHREADS +config THREADS_WIN32THREADS + bool + prompt "win32" + depends on LIBC_SUPPORT_WIN32THREADS + config THREADS_NONE bool prompt "none" -- cgit v1.2.3