summaryrefslogtreecommitdiff
path: root/config/libc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-11 19:36:20 (GMT)
committerBart vdr Meulen <bartvdrmeulen@gmail.com>2010-07-11 19:36:20 (GMT)
commitb81d232a9bae21ef1bc896f106a926b66dcae869 (patch)
treef7d5dc20946087204ba17bde901acc70911bbd70 /config/libc
parent7707f0fb542406fbfe8b1cf6f80ba488a135314a (diff)
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 <bartvdrmeulen@gmail.com> [yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config/libc')
-rw-r--r--config/libc/eglibc.in2
-rw-r--r--config/libc/glibc.in2
-rw-r--r--config/libc/mingw.in34
-rw-r--r--config/libc/uClibc.in2
4 files changed, 37 insertions, 3 deletions
diff --git a/config/libc/eglibc.in b/config/libc/eglibc.in
index 0dc6848..b13571b 100644
--- a/config/libc/eglibc.in
+++ b/config/libc/eglibc.in
@@ -1,5 +1,5 @@
# eglibc options
-# depends on ! BARE_METAL && ARCH_USE_MMU
+# depends on ! MINGW32 && ! BARE_METAL && ARCH_USE_MMU
config LIBC_eglibc
select LIBC_SUPPORT_NPTL
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index b2fc88c..3c904bc 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -1,5 +1,5 @@
# glibc options
-# depends on ! BARE_METAL && ARCH_USE_MMU
+# depends on ! MINGW32 && ! BARE_METAL && ARCH_USE_MMU
config LIBC_glibc
select LIBC_SUPPORT_NPTL
diff --git a/config/libc/mingw.in b/config/libc/mingw.in
new file mode 100644
index 0000000..2c7bb0f
--- /dev/null
+++ b/config/libc/mingw.in
@@ -0,0 +1,34 @@
+# mingw options
+# depends on MINGW32
+
+config LIBC_mingw
+ bool
+ select LIBC_SUPPORT_WIN32THREADS
+ help
+ The de-facto standard for Mingw distributions.
+
+choice
+ bool
+ prompt "Mingw runtime version"
+
+# Don't remove next line
+# CT_INSERT_VERSION_BELOW
+config MINGWRT_V_3_18
+ bool
+ prompt "3.18"
+
+config MINGWRT_V_select
+ bool
+ prompt "Other version"
+
+endchoice
+
+config MINGWRT_VERSION
+ string
+ prompt "Mingw runtime version" if MINGWRT_V_select
+# Don't remove next line
+# CT_INSERT_VERSION_STRING_BELOW
+ default "3.18" if MINGWRT_V_3_18
+ help
+ Enter the version number of the mingw runtime files to use
+
diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in
index b63239d..aba8674 100644
--- a/config/libc/uClibc.in
+++ b/config/libc/uClibc.in
@@ -1,5 +1,5 @@
# uClibc options
-# depends on ! BARE_METAL
+# depends on ! MINGW32 && ! BARE_METAL
config LIBC_uClibc
select LIBC_SUPPORT_LINUXTHREADS