public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: "edk2-devel@lists.01.org" <edk2-devel@ml01.01.org>,
	Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: [PATCH 1/2] EmbeddedPkg: make PrePiMemoryAllocationLib a SEC type library
Date: Wed, 3 Aug 2016 13:21:57 +0200	[thread overview]
Message-ID: <a0884b60-1c0c-1f97-ba99-ea1181c32516@redhat.com> (raw)
In-Reply-To: <CAKv+Gu8B4fFf9Kz_SbomqDr-xF-BPr=x+mfRPJF0kSxDhJcY1Q@mail.gmail.com>

On 08/03/16 12:00, Ard Biesheuvel wrote:
> On 3 August 2016 at 11:56, Laszlo Ersek <lersek@redhat.com> wrote:
>> On 08/03/16 10:21, Ard Biesheuvel wrote:
>>> This library is only used by the various PrePi implementations, all of
>>> which are of type SEC.
>>
>> You can actually enforce that client module type restriction, by setting
>>
>>     LIBRARY_CLASS                  = MemoryAllocationLib|SEC
>>
>> Can you try that, in addition to the MODULE_TYPE change?
>>
>> Just an idea, of course.
>>
> 
> That is a valid point, but it is kind of orthogonal to the issue I am
> trying to solve.
> 
> In patch #2, I override the CC flags for SEC and BASE type modules,
> but this static library gets build with the PEIM rules in effect, so I
> don't really mind if anyone uses this module elsewhere. I could
> perhaps simply change the type to BASE as well.

Hm, after your explanation, I think your current patch is good.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>



  reply	other threads:[~2016-08-03 11:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  8:21 [PATCH 0/2] ArmVirtPkg EmbeddedPkg: fix build for CLANG35/ARM Ard Biesheuvel
2016-08-03  8:21 ` [PATCH 1/2] EmbeddedPkg: make PrePiMemoryAllocationLib a SEC type library Ard Biesheuvel
2016-08-03  9:56   ` Laszlo Ersek
2016-08-03 10:00     ` Ard Biesheuvel
2016-08-03 11:21       ` Laszlo Ersek [this message]
2016-08-03 12:50         ` Ard Biesheuvel
2016-08-03 13:07           ` Leif Lindholm
2016-08-03  8:21 ` [PATCH 2/2] ArmVirtPkg ARM: make relocatable PrePi users build with CLANG35 Ard Biesheuvel
2016-08-03 10:00   ` Laszlo Ersek
2016-08-03 10:02     ` Ard Biesheuvel
2016-08-03 11:19       ` Laszlo Ersek
2016-08-03 12:51         ` Ard Biesheuvel
2016-08-03 13:46 ` [PATCH 0/2] ArmVirtPkg EmbeddedPkg: fix build for CLANG35/ARM Ard Biesheuvel

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-list 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=a0884b60-1c0c-1f97-ba99-ea1181c32516@redhat.com \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox