summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-10-23 12:24:21 +0100
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-12-20 10:22:37 +0100
commit133da0bfec8c99f7dcf84d99bbefaefe29902aad (patch)
tree278d381b6838f7115a91d80c13a4d2815b23101a
parenta84001ce8baf1c14eb248ba486b1c09b9737bec3 (diff)
Platform/DeveloperBox: conditionally add the X86 emulator to the buildbuild50-133da0bf
Add the X86 emulator to the build if '-D DO_X86EMU=TRUE' is passed on the build command line. Note that this requires a version of the edk2-non-osi repository that contains the binaries. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r--Platform/Socionext/DeveloperBox/DeveloperBox.dsc2
-rw-r--r--Platform/Socionext/DeveloperBox/DeveloperBox.fdf7
2 files changed, 9 insertions, 0 deletions
diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
index f2479bb9..b7ad4430 100644
--- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
+++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc
@@ -28,6 +28,8 @@
FLASH_DEFINITION = Platform/Socionext/DeveloperBox/DeveloperBox.fdf
BUILD_NUMBER = 1
+ DEFINE DO_X86EMU = FALSE
+
[BuildOptions]
RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.fdf b/Platform/Socionext/DeveloperBox/DeveloperBox.fdf
index 6702ad82..b17c795f 100644
--- a/Platform/Socionext/DeveloperBox/DeveloperBox.fdf
+++ b/Platform/Socionext/DeveloperBox/DeveloperBox.fdf
@@ -273,6 +273,13 @@ READ_LOCK_STATUS = TRUE
INF Platform/Socionext/DeveloperBox/OsInstallerMenuDxe/OsInstallerMenuDxe.inf
+!if $(DO_X86EMU) == TRUE
+ #
+ # x86 emulator
+ #
+ INF Emulator/X86EmulatorDxe/X86EmulatorDxe.inf
+!endif
+
[FV.FVMAIN_COMPACT]
FvAlignment = 16
BlockSize = 0x10000