crosstool-ng/scripts/build/kernel/mingw32.sh
Yann E. MORIN" f0b0c6666f libc/mingw: fix mingw source dirs
Someof the mingw32 source tarballs have an appended '-src' after the
version.

Since changeset #6e1412ba8da9 (scripts/functions: force extract folder
to archive basename), it means mingw tarballs get extracted in a directory
ending with '-src'.

Fix that.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-01 00:16:12 +02:00

28 lines
703 B
Bash

# 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_HEADERS_DIR}"
cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32-src/include/* \
${CT_HEADERS_DIR}
CT_EndStep
}