This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [CT-NG:patch 15/19] First setup for cygwin as target


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 <bartvdrmeulen@gmail.com>
> ---
>  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]