From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20597 invoked by alias); 11 Apr 2010 20:30:52 -0000 Received: (qmail 20589 invoked by uid 22791); 11 Apr 2010 20:30:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp19.orange.fr (HELO smtp19.orange.fr) (80.12.242.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Apr 2010 20:30:44 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1904.orange.fr (SMTP Server) with ESMTP id A7D9B2000624; Sun, 11 Apr 2010 22:30:41 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1904.orange.fr (SMTP Server) with ESMTP id 9374F2000623; Sun, 11 Apr 2010 22:30:41 +0200 (CEST) Received: from [192.168.127.10] (ARennes-256-1-137-34.w90-32.abo.wanadoo.fr [90.32.248.34]) by mwinf1904.orange.fr (SMTP Server) with ESMTP id 63B1C2000624; Sun, 11 Apr 2010 22:30:41 +0200 (CEST) From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [CT-NG:patch 15/19] First setup for cygwin as target Date: Sun, 11 Apr 2010 20:30:00 -0000 User-Agent: KMail/1.9.9 Cc: Remy Bohmer , "Bart vdr. Meulen" References: <20100409190419.325379428@bohmer.net> <20100409190419.325379428@bohmer.net>> <4bbf811d.1067f10a.253c.61f2@mx.google.com> In-Reply-To: <4bbf811d.1067f10a.253c.61f2@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201004112230.41020.yann.morin.1998@anciens.enib.fr> X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00091.txt.bz2 Remy, Bart, All, On Friday 09 April 2010 21:04:34 Remy Bohmer wrote: > This is the first attempt to add cygwin as target > > Note the cygwin 'kernel' files are downloaded pre-compiled Why that? Can't we build them from source? > Signed-off-by: Bart vdr. Meulen > --- > config/kernel.in | 4 +++ > config/kernel/cygwin.in | 33 ++++++++++++++++++++++++++++ > config/libc/newlib.in | 2 - > scripts/build/kernel/cygwin.sh | 47 +++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 85 insertions(+), 1 deletion(-) > > Index: crosstool-ng/config/kernel/cygwin.in > =================================================================== > --- /dev/null > +++ crosstool-ng/config/kernel/cygwin.in > @@ -0,0 +1,33 @@ > +# Bare metal config options > + > +config KERNEL_cygwin > + select CYGWIN > + help > + Build a toolchain targeting systems running cygwin as host > + > +choice > + bool > + prompt "Cygwin version" > + > +config CYGWIN_V_1_5_25_15 > + bool > + prompt "1.5.25-15" > + > +# CT_INSERT_VERSION_ABOVE > +# Don't remove above line! BELOW. Same as for the mingw kernel. The idea is that we add the latest versions at the top of the list, not at the bottom. > + > +config CYGWIN_V_select > + bool > + prompt "Other version" > + > +endchoice > + > +config CYGWIN_VERSION > + string > + prompt "Cygwin version" if CYGWIN_V_select > + default "1.5.25-15" if CYGWIN_V_1_5_25_15 > +# CT_INSERT_VERSION_STRING_ABOVE > +# Don't remove above line! Ditto. > + help > + Enter the version number for Cygwin > + > Index: crosstool-ng/scripts/build/kernel/cygwin.sh > =================================================================== > --- /dev/null > +++ crosstool-ng/scripts/build/kernel/cygwin.sh > @@ -0,0 +1,47 @@ > +# 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="cygwin" > + CT_TARGET_SYS= > +} > + > +do_kernel_get() { > + CT_GetFile "cygwin-${CT_CYGWIN_VERSION}" \ > + ftp://ftp.easynet.be/cygwin/release/cygwin/ Missing the legacy release dir: ftp://ftp.easynet.be/cygwin/release-legacy/cygwin/ Let's keep the two locations, for when we update the version later. > + return 0 > +} > + > +do_kernel_extract() { > + mkdir -p "${CT_SRC_DIR}/cygwin-${CT_CYGWIN_VERSION}" > + CT_Pushd "${CT_SRC_DIR}/cygwin-${CT_CYGWIN_VERSION}" > + CT_Extract nochdir "cygwin-${CT_CYGWIN_VERSION}" > + CT_Popd > + > + mkdir -p "${CT_SRC_DIR}/w32api-3.13-1" > + CT_Pushd "${CT_SRC_DIR}/w32api-3.13-1" > + CT_Extract nochdir "w32api-3.13-1" You have to 'get' it before you can extract it. [--SNIP--] Otherwise looks good. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq