From: Francesco Lavra <francescolavra.fl@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH]: Add EFI conditional
Date: Sun, 27 Jan 2013 17:41:03 +0100 [thread overview]
Message-ID: <5105589F.9090206@gmail.com> (raw)
In-Reply-To: <510545C3.3090308@gmail.com>
Hi,
On 01/27/2013 04:20 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 26.01.2013 20:42, Francesco Lavra wrote:
>
>> This patch adds the automake conditional COND_efi, which is true for
>> every configuration using the EFI platform. This conditional is used in
>> grub-core/Makefile.am to remove some duplicated entries in
>> KERNEL_HEADER_FILES.
>> As the EFI platform is expected to be used in more architectures (work
>> is in progress to port GRUB to ARM using EFI), this patch will allow
>> not to have even more duplicated code in the future.
>>
>
> ARM U-Boot port should be a priority, not EFI flavours.
> And this patch just moves the problem around. Rather than having to keep
> different clauses in Makefile.am in sync you have to keep gentpl.py and
> configure.ac in sync. Doesn't seem to be worth it.
Well, this patch adds to configure.ac what is already there in gentpl.py
(the "efi" group). Group definitions are already used throughout
Makefile.core.def to conditionally enable modules and source files, and
any new configuration using EFI would already need to be added to the
efi group.
In our specific case, if a configuration belongs to a efi group, this
enables compilation in the kernel of, among others, disk/efi/efidisk.c
and kern/efi/efi.c, which define the global symbols exported by the
kernel headers. It just seems easier and more intuitive to add the
respective header files in Makefile.am under the same logical condition
which enables source file compilation in Makefile.core.def.
This patch would avoid having to re-declare the kernel header files for
any new configurations using EFI, and wouldn't require any additional
boilerplate elsewhere.
Anyway, if you don't feel like it's worth the trouble, no problem for
me, I won't insist any further :)
Regards,
Francesco
prev parent reply other threads:[~2013-01-27 16:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-26 19:42 [PATCH]: Add EFI conditional Francesco Lavra
2013-01-27 15:20 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-01-27 16:41 ` Francesco Lavra [this message]
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=5105589F.9090206@gmail.com \
--to=francescolavra.fl@gmail.com \
--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.