]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg: introduce the FD_SIZE_IN_KB macro / build flag
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32X64.dsc
index 71ac62f023b5f6c9e707d384fdceaac697e3b78f..11866b7207c799ac06915b13ca672309b40cc994 100644 (file)
   DEFINE SMM_REQUIRE             = FALSE\r
   DEFINE TLS_ENABLE              = FALSE\r
 \r
+  #\r
+  # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to\r
+  # one of the supported values, in place of any of the convenience macros, is\r
+  # permitted.\r
+  #\r
+!ifdef $(FD_SIZE_1MB)\r
+  DEFINE FD_SIZE_IN_KB           = 1024\r
+!else\r
+!ifdef $(FD_SIZE_2MB)\r
+  DEFINE FD_SIZE_IN_KB           = 2048\r
+!else\r
+  DEFINE FD_SIZE_IN_KB           = 2048\r
+!endif\r
+!endif\r
+\r
 [BuildOptions]\r
   GCC:*_UNIXGCC_*_CC_FLAGS             = -DMDEPKG_NDEBUG\r
   GCC:RELEASE_*_*_CC_FLAGS             = -DMDEPKG_NDEBUG\r