]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtualizationPkg: build UEFI shell from source
authorLaszlo Ersek <lersek@redhat.com>
Mon, 16 Mar 2015 19:56:54 +0000 (19:56 +0000)
committerlersek <lersek@Edk2>
Mon, 16 Mar 2015 19:56:54 +0000 (19:56 +0000)
Including a prebuilt shell executable in the firmware binary is suboptimal
practice, especially given that the source code of the UEFI shell resides
in the same edk2 tree. Benefits of building the shell from source are
partly technical (a developer patching the shell can actually see the
results), partly ideological (the nominally built-from-source firmware is
actually built from source). "Security" might be worth a mention too.

The stanza for the [Components.common] section of
"ArmVirtualization.dsc.inc" originates from under OvmfPkg.

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

ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualization.dsc.inc
ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf
ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationXen.fdf

index 4e30e9f3818a49171c0e5238a89241335965059e..51c163286d1ffc1c385aa740d95f88337ac0160f 100644 (file)
   MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf\r
   MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf\r
   MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf\r
+\r
+  #\r
+  # UEFI application (Shell Embedded Boot Loader)\r
+  #\r
+  ShellPkg/Application/Shell/Shell.inf {\r
+    <LibraryClasses>\r
+      ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
+      NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
+      NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
+      HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
+      ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
+      FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
+      SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
+      PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
+      BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
+\r
+    <PcdsFixedAtBuild>\r
+      gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
+      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
+      gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
+  }\r
index 235d812f75be0dd8c4c17094632b9945b777628a..1f5d53073da3bd437e984c12b5c990d53622fdee 100644 (file)
@@ -155,7 +155,7 @@ READ_LOCK_STATUS   = TRUE
   #\r
   # UEFI application (Shell Embedded Boot Loader)\r
   #\r
-  INF ShellBinPkg/UefiShell/UefiShell.inf\r
+  INF ShellPkg/Application/Shell/Shell.inf\r
 \r
   #\r
   # Bds\r
index 07ae02a362d4b09be770cff7be0effea86cf050f..270a14c550e3905474921d3dfdd88f71f30ccb81 100644 (file)
@@ -151,7 +151,7 @@ READ_LOCK_STATUS   = TRUE
   #\r
   # UEFI application (Shell Embedded Boot Loader)\r
   #\r
-  INF ShellBinPkg/UefiShell/UefiShell.inf\r
+  INF ShellPkg/Application/Shell/Shell.inf\r
 \r
   #\r
   # Bds\r