diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-09-06 15:15:59 -0700 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-09-13 14:25:33 +0100 |
commit | 7551529ce1044a3dd79823192af382b585b32b3f (patch) | |
tree | 7f88d19dd91a56746cd963c785dd7e368c632837 /ArmVirtPkg/ArmVirt.dsc.inc | |
parent | 86ad762fa7a51cbf94e34e732961aae3de3339c3 (diff) | |
download | edk2-7551529ce1044a3dd79823192af382b585b32b3f.tar.gz |
ArmVirtPkg: increase FD/FV size for NOOPT builds
After upgrading the CI system we use for building the ArmVirtPkg
targets, we started seeing failures due to the NOOPT build running
out of space when using the CLANG38 toolchain definition combined
with clang 7.
We really don't want to increase the FD/FV sizes in general to
accommodate this, so parameterize the relevant quantities and
increase them by 50% for NOOPT builds.
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'ArmVirtPkg/ArmVirt.dsc.inc')
-rw-r--r-- | ArmVirtPkg/ArmVirt.dsc.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index a4ae25d982..10037c938e 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -10,6 +10,21 @@ [Defines]
DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
+!if $(TARGET) != NOOPT
+ DEFINE FD_SIZE_IN_MB = 2
+!else
+ DEFINE FD_SIZE_IN_MB = 3
+!endif
+
+!if $(FD_SIZE_IN_MB) == 2
+ DEFINE FD_SIZE = 0x200000
+ DEFINE FD_NUM_BLOCKS = 0x200
+!endif
+!if $(FD_SIZE_IN_MB) == 3
+ DEFINE FD_SIZE = 0x300000
+ DEFINE FD_NUM_BLOCKS = 0x300
+!endif
+
[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|