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-11-19 10:59:37 -0800
commitb524713e5b4c541159e8e98805a7c1035bfb1d69 (patch)
tree0cce8f06b362c4d90b8f62c181e4b2ac0124db6c
parenta7243849d95d2655eb0df3deb3c099da6b63ba9e (diff)
Platform/DeveloperBox: conditionally add the X86 emulator to the buildbuild45-b524713e
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 ecb03de5..574ba456 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 80bf7395..2c953e8c 100644
--- a/Platform/Socionext/DeveloperBox/DeveloperBox.fdf
+++ b/Platform/Socionext/DeveloperBox/DeveloperBox.fdf
@@ -272,6 +272,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