Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KRP2N-0007GG-88 for mharc-grub-devel@gnu.org; Fri, 08 Aug 2008 06:17:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRP2H-0007EL-Dl for grub-devel@gnu.org; Fri, 08 Aug 2008 06:17:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRP2E-0007Cx-EV for grub-devel@gnu.org; Fri, 08 Aug 2008 06:17:27 -0400 Received: from [199.232.76.173] (port=42033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRP2C-0007CX-Rj for grub-devel@gnu.org; Fri, 08 Aug 2008 06:17:25 -0400 Received: from ti-out-0910.google.com ([209.85.142.184]:7006) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRP2D-00074n-2n for grub-devel@gnu.org; Fri, 08 Aug 2008 06:17:25 -0400 Received: by ti-out-0910.google.com with SMTP id u5so463803tia.10 for ; Fri, 08 Aug 2008 03:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=dumyPa5p4RUH0ZY21nEvmttC3G3L2UoW5qKbCMiw4W8=; b=LOdxfkqgd51IhbK+CFIGNKin6j1V0blhkQ+/4S29v2i2BYvQ0tJd0XdMXcw3S94iA5 6oQkMWn3YeMzCct6AmSpyyYBMMgij6YtrXVUqfOH+D4OFwcXJ3rvrizjYpeD6r6zwbvu gvy0heAw//ShTFCurjPZ/329DGnp4MVEnOxnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dEtdWPJl0GtiB5rLvsv4WC4fzkdcFItdMay37/T6myHynd9zB2s1oUd3uEZZb/R48o hzkbDCiaKjkNqLZH7/UJFjWJYjQX/mlq3KSqstSkqwVPpu7FcaIv70zslAEnVhhC136P Np8MhXHjAscjUS7rasRzG8RKMi7u2UKKB6hk0= Received: by 10.110.26.20 with SMTP id 20mr5498618tiz.20.1218190638268; Fri, 08 Aug 2008 03:17:18 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Fri, 8 Aug 2008 03:17:18 -0700 (PDT) Message-ID: Date: Fri, 8 Aug 2008 18:17:18 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: bug: cygwin support breaks cross compiles on 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: Fri, 08 Aug 2008 10:17:30 -0000 On Fri, Aug 8, 2008 at 5:03 PM, Patrick Georgi wrote: > Hi, > > I used cygwin to build grub2/i386-coreboot using an i386-elf cross compiler. > unfortunately the test in configure only looks for the host platform and > enables pe2elf in that case, even though my compiler emits ELF already. > > my workaround is to just change that test (there's no OS cyg_win), but of > course that's no permanent solution. > Bean proposed on IRC to look if the target compiler emits PE, and enable > pe2elf based on that. Hi, Yes, we can solve this with script. Another way is to do some test in grub-pe2elf. If the image is already elf, it does nothing and return true. This should fix the problem as well. -- Bean