All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] grub2 for Cygwin
Date: Thu, 03 Apr 2008 21:56:57 +0200	[thread overview]
Message-ID: <47F53689.30307@t-online.de> (raw)
In-Reply-To: <ca0f59980804030902p225149cva1522b0b0938e115@mail.gmail.com>

Bean wrote:
> On Thu, Apr 3, 2008 at 9:28 PM, Christian Franke
> <Christian.Franke@t-online.de> wrote:
>   
>> ...
>>  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. 

Which trick in particular is not appealing ?

The external linker script will be necessary also on other platforms 
where the builtin "ld -N" script does not work as expected.
The hack in the loader is ugly, but was necessary to undo a hack in the 
PE backend of libbfd.

Here the diffstat for the cygwin changes based on the "-D 2008-03-27" 
CVS release:

Makefile.in                   |    4 +
aclocal.m4                    |   18 +++++
conf/i386-pc-cygwin-img-ld.sc |   53 +++++++++++++++
conf/i386-pc.rmk              |   12 +--
configure.ac                  |   37 +++++++++++
genkernsyms.sh.in             |    7 +-
genmk.rb                      |    8 +-
gensymlist.sh.in              |    6 +
include/grub/dl.h             |    5 -
include/grub/symbol.h         |    6 +
kern/dl.c                     |   40 +++++++++--
kern/i386/dl.c                |   30 ++++++++
util/biosdisk.c               |   34 +++++++---
util/getroot.c                |  141 
+++++++++++++++++++++++++++++++++++++++++-
util/grub-mkdevicemap.c       |   19 ++++-
util/grub-probe.c             |   25 ++++++-
util/i386/pc/grub-install.in  |    8 +-
util/update-grub.in           |   25 +++++--
util/update-grub_lib.in       |   22 +-----
19 files changed, 436 insertions(+), 64 deletions(-)

These are IMO not so much changes for a rather different platform 
without native ELF support.


> I personally don't mind, but I don't know
> if it can be accepted by others.
>   

OK, if there is no chance to get this accepted, grub2 project managers 
should tell me soon.

It does not make much sense to spent time sending cygwin releated 
patches upstream, when all these are eventually rejected.


> ...
> Can you make it work with mingw, for example, use the -mno-cygwin compile flag ?
>
>   

I have not planned to do this in the near future. Of course, it is 
possible, but there are more issues to solve:
No /dev/... device support, no native shell script support, CR/LF 
issues, ...
And: The PE->elf conversion problem will remain.

So a backward compatible fix for mingw would likely be much less 
appealing than the one for cygwin :-)

The cygwin port of grub2 is targeted to users who want a *n[iu]x 
environment, but (have to) use Windows as main work OS for whatever 
reason. They likely have already installed cygwin :-)

Christian




  reply	other threads:[~2008-04-03 19:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 13:28 [PATCH] grub2 for Cygwin Christian Franke
2008-04-03 16:02 ` Bean
2008-04-03 19:56   ` Christian Franke [this message]
2008-04-03 20:38     ` Pavel Roskin
2008-04-05 12:44       ` Christian Franke
2008-04-07  2:07         ` Pavel Roskin
2008-04-07 19:46           ` Christian Franke
2008-04-13 10:37             ` Robert Millan
2008-04-13 10:39 ` Robert Millan
2008-04-13 20:24   ` Christian Franke
2008-04-14 12:00     ` Robert Millan
2008-04-14 13:36       ` Christian Franke
2008-04-15 13:12         ` Robert Millan
2008-04-15 14:26           ` Christian Franke
  -- strict thread matches above, loose matches on Subject: below --
2007-10-16 12:03 Christian Franke
2007-10-16 13:34 ` Robert Millan
2007-10-20 23:37 ` Robert Millan
2007-10-21 13:07   ` Christian Franke
2007-10-21 13:18     ` Vesa Jääskeläinen
2007-10-21 13:51       ` Christian Franke
2007-10-21 14:13         ` Robert Millan
2007-11-09 13:57         ` Marco Gerards
2007-11-09 15:07           ` Christian Franke
2008-04-02 22:07 ` Christian Franke
2008-04-03  8:03   ` Bean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47F53689.30307@t-online.de \
    --to=christian.franke@t-online.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.