Patch to compile grub2 with Apple compiler

2014-04-07 Thread Yves Blusseau
Hi,

this is a patch to allow compilation of grub2 with Apple Compiler



apple__bzero-declaration.patch
Description: Binary data


Regards,
Yves Blusseau

smime.p7s
Description: S/MIME cryptographic signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: Patch to compile grub2 with Apple compiler

2014-04-07 Thread SevenBits
On Monday, April 7, 2014, Yves Blusseau  wrote:

> Hi,
>
> this is a patch to allow compilation of grub2 with Apple Compiler


Haven't looked at it yet, but if it works, I'd be major. Currently I have
to build GRUB on Linux when my current development machine is a Mac. This
will be a big development, at least for me.
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH] Clarify "Press any key to continue..." message

2014-04-07 Thread Colin Watson
On Thu, Apr 03, 2014 at 09:15:45PM +0400, Andrey Borzenkov wrote:
> В Thu, 3 Apr 2014 17:52:57 +0100
> Colin Watson  пишет:
> > Seems like a lot of effort.  The actual delay is 2.5 seconds
> 
> May be I misunderstand it, but how 1ms becomes 2.5 seconds?

Sorry, I was looking at DEFAULT_ENTRY_ERROR_DELAY_MS at the top of that
file and didn't notice that grub_wait_after_message actually uses a
different delay.  (A countdown here still seems to me like code we don't
need, though.)

-- 
Colin Watson   [cjwat...@ubuntu.com]

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: Patch to compile grub2 with Apple compiler

2014-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 07.04.2014 13:21, Yves Blusseau wrote:
> Hi,
> 
> this is a patch to allow compilation of grub2 with Apple Compiler
> 
> 
Why do you need this patch? __bzero shouldn't need any special tratement
in GRUB_UTIL case.
> 
> 
> 
> Regards,
> Yves Blusseau
> 
> 
> 
> ___
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 




signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: Patch to compile grub2 with Apple compiler

2014-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 07.04.2014 17:04, SevenBits wrote:
> On Monday, April 7, 2014, Yves Blusseau  > wrote:
> 
> Hi,
> 
> this is a patch to allow compilation of grub2 with Apple Compiler
> 
> 
> Haven't looked at it yet, but if it works, I'd be major.
GRUB was compileable under Apple compiler since quite a long time. But
nobody cared about it and nobody reported problems so it broke again. If
you care about Apple, then report problems, prefereably with patch
> Currently I
> have to build GRUB on Linux when my current development machine is a
> Mac. This will be a big development, at least for me.
> 
> 
> ___
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 




signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: Patch to compile grub2 with Apple compiler

2014-04-07 Thread SevenBits
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/07/2014 03:52 PM, Vladimir '?-coder/phcoder' Serbinenko wrote:
> On 07.04.2014 17:04, SevenBits wrote:
>> On Monday, April 7, 2014, Yves Blusseau > > wrote:
>> 
>> Hi,
>> 
>> this is a patch to allow compilation of grub2 with Apple
>> Compiler
>> 
>> 
>> Haven't looked at it yet, but if it works, I'd be major.
> GRUB was compilable under Apple compiler since quite a long time.
> But nobody cared about it and nobody reported problems so it broke
> again. If you care about Apple, then report problems, preferably
> with patch

Well... the issue is that Apple's compiler cannot build executables in
anything except OS X's native Mach-O format. This obviously rules out
one of GRUB's supported platforms (EFI) which requires PE binaries,
unless we're going to ship (or require as a build dependency) a tool
that can convert between the various object formats.

I'm not very knowledgeable about GRUB for non-EFI platforms, as EFI is
my main focus for when I use GRUB. But Apple's compiler is finicky in
general so I expect there might be some issues in building e.g
GRUB-PC. That's AFAIK, though. Perhaps someone with more knowledge
about GRUB's internals in this area than I can elaborate further.

But I'd expect any Apple solution to suffer from neglect. GRUB isn't
used much on Apple hardware, and when it is, it is used to boot Linux
and is compiled on that platform. And even when GRUB *is* built on OS
X, it is typically done so with a cross compiler. Using Apple's
toolchain just isn't a big need unfortunately.

>> Currently I have to build GRUB on Linux when my current
>> development machine is a Mac. This will be a big development, at
>> least for me.
>> 
>> 
>> ___ Grub-devel
>> mailing list Grub-devel@gnu.org 
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>> 
> 
> 
> 
> 
> ___ Grub-devel mailing
> list Grub-devel@gnu.org 
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTQwvwAAoJEFbRvtGxmFPETZwH/jDXwpbGWK1XVsPOJe8PE5jz
9AH+EixFVIcukFLGyHlYSPzq27RVYtPuEDEp0XIybs6VNVloUefYv5Rb9tPkwNtd
iQAMR93u2X8pjJAjjd315b9167LubAQ4a/Eu8hnhGl+HLWprX+XY3ru1l3Ktc7e1
5N8KVYRRb9itmSM7wh+WJFK5Xu7rjG5DRXV0trO+zTIcpCouUMX69ZC1BLk8Lf5H
eVMMRi8kOmTdfgC7O/bdFNar5FgWRpc3Uv+ge/5QelpeZxPsGUOR2DVsVh9CiI7Z
XUi4hYCo/eZyilIXdIsvQRAtnD5nB5hQfhEA1wD5+vs6QmyV9hbT3cALWvwWNds=
=v80o
-END PGP SIGNATURE-

___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: Patch to compile grub2 with Apple compiler

2014-04-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 07.04.2014 22:34, SevenBits wrote:
> On 04/07/2014 03:52 PM, Vladimir '?-coder/phcoder' Serbinenko wrote:
>> On 07.04.2014 17:04, SevenBits wrote:
>>> On Monday, April 7, 2014, Yves Blusseau >> > wrote:
>>>
>>> Hi,
>>>
>>> this is a patch to allow compilation of grub2 with Apple
>>> Compiler
>>>
>>>
>>> Haven't looked at it yet, but if it works, I'd be major.
>> GRUB was compilable under Apple compiler since quite a long time.
>> But nobody cared about it and nobody reported problems so it broke
>> again. If you care about Apple, then report problems, preferably
>> with patch
> 
> Well... the issue is that Apple's compiler cannot build executables in
> anything except OS X's native Mach-O format. This obviously rules out
> one of GRUB's supported platforms (EFI) which requires PE binaries,
> unless we're going to ship (or require as a build dependency) a tool
> that can convert between the various object formats.
> 
We use objconv.
> I'm not very knowledgeable about GRUB for non-EFI platforms, as EFI is
> my main focus for when I use GRUB. But Apple's compiler is finicky in
> general
This is not a GRUB problem



signature.asc
Description: OpenPGP digital signature
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel


Re: XP, 8.1 and UEFI with grub2?

2014-04-07 Thread SevenBits
On Monday, April 7, 2014,  wrote:

> Grub Gurus
>
> Perhaps this is good timing for this
> question.  I hope I am asking it in the right place.  I have been
> using Ubuntu and XP multiboot for quite some time and using Ubuntu
> more and XP less.  With support for XP expiring April 8 I would like
> to stop using it while connected to the internet.  My goal is to
> multiboot XP, Ubuntu and 8.1 on the same 64 bit new machine.
>
>
>
> My question is if XP requires legacy
> BIOS and it is available (?) but 8.1 requires UEFI (?) does this
> prevent grub2 from accessing the three OSs from a single menu.  Can
> Grub2 switch between legacy BIOS and UEFI or does this require a
> process like changing BIOS settings?


This is determined by your firmware, and not by GRUB. In general, no, this
isn't possible. On some firmware, you can switch between BIOS and UEFI, but
this is done by a setting in the options menu and requires a reboot
typically.

Also, UEFI is required on all *new* PCs running Win 8. It is not a general
requirement.


> The (?)s above mean I do not
> know if those assumptions are correct.  I suspect Ubuntu is
> compatible with both and the only problem is between XP and 8.1.


Most hardware that can run XP probably can't run Windows 8.1 AFAIK.


> I
> have collected multiboot info from MS on XP and 7 but if I need to
> purchase new hardware why install a new OS that is already obsolete.
>
> Any pointers to how the UEFI/legacy
> works,  hardware compatibility requirements for this to be possible,
> or related issues would be much appreciated.
>
> Thanks in advance,  I always enjoy
> reading the messages in this list.
>
> Randy
>
> ___
> Help-grub mailing list
> help-g...@gnu.org 
> https://lists.gnu.org/mailman/listinfo/help-grub
>
___
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel