]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/FVP: unify support for Foundation and Base models
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 25 Aug 2015 13:11:25 +0000 (13:11 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 25 Aug 2015 13:11:25 +0000 (13:11 +0000)
Now that the PL180 and PL111 drivers know how to behave when executed
on the Foundation model (which does not emulate the hardware), we can
remove the ARM_FOUNDATION_FVP ifdefs and produce a single build that
runs on both the Foundation model and the Base model.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18309 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc
ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.fdf
ArmVirtPkg/ArmVirt.dsc.inc

index 71c794b9fdc54808cf9c83e58d9a80bdf98bbd1b..3f363064b23f46c92e638f2c032c2830a4754da8 100644 (file)
@@ -41,9 +41,7 @@
 \r
   ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf\r
   NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf\r
-!ifndef ARM_FOUNDATION_FVP\r
   LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf\r
-!endif\r
 \r
   TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
 \r
   gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Fixed Virtual Platform"\r
   gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ARM-FVP"\r
 \r
-!ifndef ARM_FOUNDATION_FVP\r
   # Up to 8 cores on Base models. This works fine if model happens to have less.\r
   gArmPlatformTokenSpaceGuid.PcdCoreCount|8\r
   gArmPlatformTokenSpaceGuid.PcdClusterCount|2\r
-!else\r
-  # Up to 4 cores on Foundation models. This works fine if model happens to have less.\r
-  gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r
-!endif\r
 \r
   #\r
   # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r
   ## PL031 RealTimeClock\r
   gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r
 \r
-!ifndef ARM_FOUNDATION_FVP\r
   ## PL111 Versatile Express Motherboard controller\r
   gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r
 \r
   ## PL180 MMC/SD card controller\r
   gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r
   gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r
-!endif\r
 \r
   #\r
   # ARM General Interrupt Controller\r
   ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
   ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
   ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
-!ifndef ARM_FOUNDATION_FVP\r
   ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r
-!endif\r
   ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r
 \r
   #\r
   #\r
   ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r
 \r
-!ifndef ARM_FOUNDATION_FVP\r
   #\r
   # Multimedia Card Interface\r
   #\r
   EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r
   ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r
-!endif\r
 \r
   #\r
   # Platform Driver\r
index 9c447084e316db6a7c4f0edab45ca34646ad0be3..1d92d6f34832315621eb1040a621fdd56db55245 100644 (file)
@@ -160,9 +160,7 @@ FvNameGuid         = 87940482-fc81-41c3-87e6-399cf85ac8a0
   INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
   INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
   INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
-!ifndef ARM_FOUNDATION_FVP\r
   INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r
-!endif\r
   INF ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r
 \r
   #\r
@@ -178,13 +176,11 @@ FvNameGuid         = 87940482-fc81-41c3-87e6-399cf85ac8a0
   INF FatBinPkg/EnhancedFatDxe/Fat.inf\r
   INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
 \r
-!ifndef ARM_FOUNDATION_FVP\r
   #\r
   # Multimedia Card Interface\r
   #\r
   INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r
   INF ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r
-!endif\r
 \r
   #\r
   # Platform Driver\r
index 8372c5813cb33d9e73cb6c462b6e387983b5b9f7..4b4e70b7ce912059c10a13897256439d38736683 100644 (file)
   # Add support for GCC stack protector\r
   NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
 \r
+!if $(SECURE_BOOT_ENABLE) == TRUE\r
+  # OpenSSL requires floating point for the RNG code\r
+  NULL|StdLib/LibC/Softfloat/Softfloat.inf\r
+!endif\r
+\r
 [LibraryClasses.AARCH64]\r
   NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
 \r