scripts/build/kernel/mingw32.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Dec 30 21:06:04 2010 +0100 (2010-12-30)
changeset 2249 e12331b7e070
parent 2017 f637b6c2162b
child 2580 46dd211a7fd5
permissions -rw-r--r--
samples: update i686-nptl-linux-gnu

Notable changes:
- uses binutils 2.21, builds gold, but defaults to ld
- uses gcc 4.5.2, with GRAPHITE and LTO, builds lto-plugin

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # This file declares functions to install the kernel headers for mingw
     2 # Copyright 2009 Bart vdr. Meulen
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 CT_DoKernelTupleValues() {
     6     CT_TARGET_KERNEL="mingw32"
     7     CT_TARGET_SYS=
     8 }
     9 
    10 do_kernel_get() {
    11     CT_GetFile "w32api-${CT_W32API_VERSION}-mingw32-src" \
    12         http://downloads.sourceforge.net/sourceforge/mingw
    13 }
    14 
    15 do_kernel_extract() {
    16     CT_Extract "w32api-${CT_W32API_VERSION}-mingw32-src"
    17 }
    18 
    19 do_kernel_headers() {
    20     CT_DoStep INFO "Installing kernel headers"
    21 
    22     mkdir -p "${CT_HEADERS_DIR}"
    23     cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32/include/* \
    24           ${CT_HEADERS_DIR}
    25 
    26     CT_EndStep
    27 }