[PATCH 1 of 3] kernel/mingw32: use pre-set headers dir

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Sat Aug 14 21:59:00 GMT 2010


# HG changeset patch
# User Esben Haabendal <eha@doredevelopment.dk>
# Date 1281820467 -7200
# Node ID 2bcd716ca877e74b58f90271898ab48db2fe639b
# Parent  6ee3e9c4b0ab1e599f6a95534bebdfbb298f8646
kernel/mingw32: use pre-set headers dir

There is a variable that contains the headers directory,
so there's no need to re-compute it again.

[Yann E. MORIN: split the original patch]

diff --git a/scripts/build/kernel/mingw32.sh b/scripts/build/kernel/mingw32.sh
--- a/scripts/build/kernel/mingw32.sh
+++ b/scripts/build/kernel/mingw32.sh
@@ -19,9 +19,9 @@
 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}
+    mkdir -p "${CT_HEADERS_DIR}"
+    cp -r ${CT_SRC_DIR}/w32api-${CT_W32API_VERSION}-mingw32/include/* \
+          ${CT_HEADERS_DIR}
 
     CT_EndStep
 }

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list