Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JhRtL-0002uy-Cv for mharc-grub-devel@gnu.org; Thu, 03 Apr 2008 12:02:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhRtJ-0002uT-HI for grub-devel@gnu.org; Thu, 03 Apr 2008 12:02:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhRtI-0002u0-1Z for grub-devel@gnu.org; Thu, 03 Apr 2008 12:02:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhRtH-0002tw-Tw for grub-devel@gnu.org; Thu, 03 Apr 2008 12:02:15 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhRtH-0001OI-82 for grub-devel@gnu.org; Thu, 03 Apr 2008 12:02:15 -0400 Received: by ti-out-0910.google.com with SMTP id a20so1215682tia.10 for ; Thu, 03 Apr 2008 09:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zECl1mG7Lnuk/keuDWH+/Qn9hOdaSXcLVqcxpzCe+L0=; b=BOwO6Uwo7ttcOrQAJz7AgUZwUcqpAODdg5FekJxL9lpkhRnosjYxZSRjstdt1Z/t+3q0AUnjMAKWsiSsEg9pH1sEgzr9voJTk0AVqtnhbZA4b+Q/rCZPZxecDj4jg/WTOfcnegmoJcUVhSomxnuWfch/g6cOecSPRq7nnVyfNKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GleptkMr4xYY35imEhmHsGoygEZ4QyDymgYtiM9NrisaWnPS0exdhhtgFMUaYVdUmjIJoQvGzRKhIXhNxri6wnnDb3a6lyejZN2y3Ejn/RkL2CTx/jQSnP1SmPXrZSaTrg3V0CRz/3zEEVTiXZLgJGQAbFDS9PwiNcpuP+eOR24= Received: by 10.110.14.12 with SMTP id 12mr41364tin.1.1207238533384; Thu, 03 Apr 2008 09:02:13 -0700 (PDT) Received: by 10.110.62.19 with HTTP; Thu, 3 Apr 2008 09:02:13 -0700 (PDT) Message-ID: Date: Fri, 4 Apr 2008 00:02:13 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1JhPUa-0XNW4m0@fwd35.aul.t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1JhPUa-0XNW4m0@fwd35.aul.t-online.de> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [PATCH] grub2 for Cygwin X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 16:02:18 -0000 On Thu, Apr 3, 2008 at 9:28 PM, Christian Franke wrote: > Bean wrote: > > On Thu, Apr 3, 2008 at 6:07 AM, Christian Franke > > wrote: > > > ... > > > > Just for info: GRUB2 is now available as an experimental package in > > > the Cygwin distribution. > > > > > > > Hi, > > > > That's nice, but how do you create elf file in cygwin, use cross > > compilation tools ? > > > > The cygwin distro does not include any cross compilation tools. A > package that require tools not in the distro would not be accepted. > > The package is actually build with native cygwin gcc+binutils. > > The related discussion+patches are already on this list, e.g: > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00238.html > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00237.html > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00174.html > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00161.html > http://lists.gnu.org/archive/html/grub-devel/2007-11/msg00160.html It seems you have spent a lot of effect to make it work, but some trick is not very appealing. I personally don't mind, but I don't know if it can be accepted by others. > > > ... Also, are tools like grub-setup working in cygwin > > environment ? > > > > Yes, grub-setup builds and works OOTB. "grub-install /dev/sda", > grub-emu, grub-mkrescue, ... all work as expected. I use the cygwin > version of GRUB2 on two Windows+Linux work PC. It is IMO useful to > install+maintain boot manager from cygwin bash when Windows is the main > work OS. Can you make it work with mingw, for example, use the -mno-cygwin compile flag ? -- Bean