diff mbox series

[edk2,01/15] ArmPlatformPkg/ArmPlatformLibNull: remove bogus PCD dependencies

Message ID 20171117160913.17292-2-ard.biesheuvel@linaro.org
State New
Headers show
Series ArmVirtPkg: get rid of ArmPlatformLib | expand

Commit Message

Ard Biesheuvel Nov. 17, 2017, 4:08 p.m. UTC
Remove dependencies on gArmTokenSpaceGuid.PcdSystemMemoryBase and
gArmTokenSpaceGuid.PcdSystemMemorySize, the presence of which in
a [FixedPcd] section makes this module unusable for ArmVirtQemu.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf | 3 ---
 1 file changed, 3 deletions(-)

-- 
2.11.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Nov. 17, 2017, 4:20 p.m. UTC | #1
On Fri, Nov 17, 2017 at 04:08:59PM +0000, Ard Biesheuvel wrote:
> Remove dependencies on gArmTokenSpaceGuid.PcdSystemMemoryBase and

> gArmTokenSpaceGuid.PcdSystemMemorySize, the presence of which in

> a [FixedPcd] section makes this module unusable for ArmVirtQemu.

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>


Question: shouldn't specifically ArmVirtQemu work fine with these,
since it defines them as PcdsFixedAtBuild?
Whereas both ArmVirtQemuKernel and ArmVirtXen define them as
patchable.

/
    Leif

> ---

>  ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf | 3 ---

>  1 file changed, 3 deletions(-)

> 

> diff --git a/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf b/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf

> index 97b2a4b6e495..e59aef611a3c 100644

> --- a/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf

> +++ b/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf

> @@ -41,9 +41,6 @@ [Sources.AArch64]

>    AArch64/ArmPlatformHelper.S

>  

>  [FixedPcd]

> -  gArmTokenSpaceGuid.PcdSystemMemoryBase

> -  gArmTokenSpaceGuid.PcdSystemMemorySize

> -

>    gArmTokenSpaceGuid.PcdArmPrimaryCoreMask

>    gArmTokenSpaceGuid.PcdArmPrimaryCore

>  

> -- 

> 2.11.0

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel Nov. 17, 2017, 4:23 p.m. UTC | #2
On 17 November 2017 at 16:20, Leif Lindholm <leif.lindholm@linaro.org> wrote:
> On Fri, Nov 17, 2017 at 04:08:59PM +0000, Ard Biesheuvel wrote:

>> Remove dependencies on gArmTokenSpaceGuid.PcdSystemMemoryBase and

>> gArmTokenSpaceGuid.PcdSystemMemorySize, the presence of which in

>> a [FixedPcd] section makes this module unusable for ArmVirtQemu.

>>

>> Contributed-under: TianoCore Contribution Agreement 1.1

>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

>

> Question: shouldn't specifically ArmVirtQemu work fine with these,

> since it defines them as PcdsFixedAtBuild?

> Whereas both ArmVirtQemuKernel and ArmVirtXen define them as

> patchable.

>


PcdSystemMemorySize is dynamic in ArmVirtQemu, and is the only
platform that will include this library after this series. The others
have their own PrePi implementation, allowing me to drop any
dependencies on ArmPlatformLib altogether.
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Leif Lindholm Nov. 17, 2017, 4:28 p.m. UTC | #3
On Fri, Nov 17, 2017 at 04:23:04PM +0000, Ard Biesheuvel wrote:
> On 17 November 2017 at 16:20, Leif Lindholm <leif.lindholm@linaro.org> wrote:

> > On Fri, Nov 17, 2017 at 04:08:59PM +0000, Ard Biesheuvel wrote:

> >> Remove dependencies on gArmTokenSpaceGuid.PcdSystemMemoryBase and

> >> gArmTokenSpaceGuid.PcdSystemMemorySize, the presence of which in

> >> a [FixedPcd] section makes this module unusable for ArmVirtQemu.

> >>

> >> Contributed-under: TianoCore Contribution Agreement 1.1

> >> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> >

> > Question: shouldn't specifically ArmVirtQemu work fine with these,

> > since it defines them as PcdsFixedAtBuild?

> > Whereas both ArmVirtQemuKernel and ArmVirtXen define them as

> > patchable.

> 

> PcdSystemMemorySize is dynamic in ArmVirtQemu, and is the only

> platform that will include this library after this series. The others

> have their own PrePi implementation, allowing me to drop any

> dependencies on ArmPlatformLib altogether.


Right.

Of course I only looked at *Base for ArmVirtQemu.
Never mind.

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>


/
    Leif
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel Nov. 17, 2017, 7:10 p.m. UTC | #4
On 17 November 2017 at 16:28, Leif Lindholm <leif.lindholm@linaro.org> wrote:
> On Fri, Nov 17, 2017 at 04:23:04PM +0000, Ard Biesheuvel wrote:

>> On 17 November 2017 at 16:20, Leif Lindholm <leif.lindholm@linaro.org> wrote:

>> > On Fri, Nov 17, 2017 at 04:08:59PM +0000, Ard Biesheuvel wrote:

>> >> Remove dependencies on gArmTokenSpaceGuid.PcdSystemMemoryBase and

>> >> gArmTokenSpaceGuid.PcdSystemMemorySize, the presence of which in

>> >> a [FixedPcd] section makes this module unusable for ArmVirtQemu.

>> >>

>> >> Contributed-under: TianoCore Contribution Agreement 1.1

>> >> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

>> >

>> > Question: shouldn't specifically ArmVirtQemu work fine with these,

>> > since it defines them as PcdsFixedAtBuild?

>> > Whereas both ArmVirtQemuKernel and ArmVirtXen define them as

>> > patchable.

>>

>> PcdSystemMemorySize is dynamic in ArmVirtQemu, and is the only

>> platform that will include this library after this series. The others

>> have their own PrePi implementation, allowing me to drop any

>> dependencies on ArmPlatformLib altogether.

>

> Right.

>

> Of course I only looked at *Base for ArmVirtQemu.

> Never mind.

>

> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

>


Pushed as b2662641d56a
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf b/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
index 97b2a4b6e495..e59aef611a3c 100644
--- a/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
+++ b/ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
@@ -41,9 +41,6 @@  [Sources.AArch64]
   AArch64/ArmPlatformHelper.S
 
 [FixedPcd]
-  gArmTokenSpaceGuid.PcdSystemMemoryBase
-  gArmTokenSpaceGuid.PcdSystemMemorySize
-
   gArmTokenSpaceGuid.PcdArmPrimaryCoreMask
   gArmTokenSpaceGuid.PcdArmPrimaryCore