summaryrefslogtreecommitdiff
path: root/Platform/AMD
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-04-15 15:43:02 -0700
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2019-04-24 15:45:42 +0200
commitf560f7f6c83a8b3e4a9e4e324468f960c25e17d9 (patch)
tree0db92ac3e9d3d6aad8b64954676b807e034a074a /Platform/AMD
parent1fd7b43c8d9e194b914446d5152d3bed94d53f28 (diff)
Platform/Overdrive: conditionally include the X64 PE/COFF emulator
Add the X64 emulator to the build if '-D X64EMU_ENABLE=TRUE' is passed on the build command line. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/AMD')
-rw-r--r--Platform/AMD/OverdriveBoard/OverdriveBoard.dsc5
-rw-r--r--Platform/AMD/OverdriveBoard/OverdriveBoard.fdf3
2 files changed, 6 insertions, 2 deletions
diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
index b6a1507b..0e1db074 100644
--- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
+++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc
@@ -17,8 +17,9 @@
################################################################################
[Defines]
-DEFINE NUM_CORES = 8
-DEFINE DO_FLASHER = FALSE
+DEFINE NUM_CORES = 8
+DEFINE DO_FLASHER = FALSE
+DEFINE X64EMU_ENABLE = FALSE
PLATFORM_NAME = Overdrive
PLATFORM_GUID = B2296C02-9DA1-4CD1-BD48-4D4F0F1276EB
diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf b/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf
index 4b6b808c..a058665b 100644
--- a/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf
+++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.fdf
@@ -159,6 +159,9 @@ READ_LOCK_STATUS = TRUE
INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
+!if $(X64EMU_ENABLE) == TRUE
+ INF Emulator/X86EmulatorDxe/X86EmulatorDxe.inf
+!endif
#
# AHCI Support