scripts/build/kernel/mingw32.sh
author Remy Bohmer <linux@bohmer.net>
Thu May 27 23:18:19 2010 +0200 (2010-05-27)
changeset 2060 51e4597b07fc
child 2084 2bcd716ca877
permissions -rw-r--r--
scripts: add option to strip all toolchain executables

To reduce filesizes of the toolchain and even improve build times
of projects to be build with this toolchain it is usefull to strip
the delivered toolchain executables. Since it is not likely that we
will debug the toolchain executables itself we do not need the
debug information inside the executables itself.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
     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_SYSROOT_DIR}/include"
    23     cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32/include \
    24           ${CT_SYSROOT_DIR}
    25 
    26     CT_EndStep
    27 }