summaryrefslogtreecommitdiff
path: root/scripts/build/kernel
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 /scripts/build/kernel
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 'scripts/build/kernel')
-rw-r--r--scripts/build/kernel/mingw32.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/build/kernel/mingw32.sh b/scripts/build/kernel/mingw32.sh
new file mode 100644
index 0000000..d10442b
--- /dev/null
+++ b/scripts/build/kernel/mingw32.sh
@@ -0,0 +1,27 @@
+# This file declares functions to install the kernel headers for mingw
+# Copyright 2009 Bart vdr. Meulen
+# Licensed under the GPL v2. See COPYING in the root of this package
+
+CT_DoKernelTupleValues() {
+ CT_TARGET_KERNEL="mingw32"
+ CT_TARGET_SYS=
+}
+
+do_kernel_get() {
+ CT_GetFile "w32api-${CT_W32API_VERSION}-mingw32-src" \
+ http://downloads.sourceforge.net/sourceforge/mingw
+}
+
+do_kernel_extract() {
+ CT_Extract "w32api-${CT_W32API_VERSION}-mingw32-src"
+}
+
+do_kernel_headers() {
+ CT_DoStep INFO "Installing kernel headers"
+
+ mkdir -p "${CT_SYSROOT_DIR}/include"
+ cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32/include \
+ ${CT_SYSROOT_DIR}
+
+ CT_EndStep
+}