]>
Commit | Line | Data |
---|---|---|
1c50db8a LE |
1 | ## @file\r |
2 | # FDF include file that defines the main macros and sets the dependent PCDs.\r | |
3 | #\r | |
4 | # Copyright (C) 2014, Red Hat, Inc.\r | |
5 | # Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r | |
6 | #\r | |
7 | # This program and the accompanying materials are licensed and made available\r | |
8 | # under the terms and conditions of the BSD License which accompanies this\r | |
9 | # distribution. The full text of the license may be found at\r | |
10 | # http://opensource.org/licenses/bsd-license.php\r | |
11 | #\r | |
12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r | |
14 | # IMPLIED.\r | |
15 | #\r | |
16 | ##\r | |
17 | \r | |
e3dca185 JJ |
18 | #\r |
19 | # Default flash size is 2MB.\r | |
20 | #\r | |
21 | # Defining FD_SIZE_1MB on the build command line can override this.\r | |
22 | #\r | |
23 | \r | |
1c50db8a LE |
24 | DEFINE BLOCK_SIZE = 0x1000\r |
25 | DEFINE VARS_SIZE = 0x20000\r | |
26 | DEFINE VARS_BLOCKS = 0x20\r | |
27 | \r | |
28 | !ifdef $(FD_SIZE_1MB)\r | |
29 | \r | |
30 | DEFINE FW_BASE_ADDRESS = 0xFFF00000\r | |
31 | DEFINE FW_SIZE = 0x00100000\r | |
32 | DEFINE FW_BLOCKS = 0x100\r | |
33 | DEFINE CODE_BASE_ADDRESS = 0xFFF20000\r | |
34 | DEFINE CODE_SIZE = 0x000E0000\r | |
35 | DEFINE CODE_BLOCKS = 0xE0\r | |
36 | DEFINE FVMAIN_SIZE = 0x000CC000\r | |
37 | DEFINE SECFV_OFFSET = 0x000EC000\r | |
38 | DEFINE SECFV_SIZE = 0x14000\r | |
39 | \r | |
40 | !else\r | |
41 | \r | |
42 | DEFINE FW_BASE_ADDRESS = 0xFFE00000\r | |
43 | DEFINE FW_SIZE = 0x00200000\r | |
44 | DEFINE FW_BLOCKS = 0x200\r | |
45 | DEFINE CODE_BASE_ADDRESS = 0xFFE20000\r | |
46 | DEFINE CODE_SIZE = 0x001E0000\r | |
47 | DEFINE CODE_BLOCKS = 0x1E0\r | |
48 | DEFINE FVMAIN_SIZE = 0x001AC000\r | |
49 | DEFINE SECFV_OFFSET = 0x001CC000\r | |
50 | DEFINE SECFV_SIZE = 0x34000\r | |
51 | \r | |
52 | !endif\r | |
53 | \r | |
54 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress = $(FW_BASE_ADDRESS)\r | |
55 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize = $(FW_SIZE)\r | |
56 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize = $(BLOCK_SIZE)\r | |
57 | \r | |
58 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase = $(FW_BASE_ADDRESS)\r | |
59 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize = 0xE000\r | |
60 | \r | |
61 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r | |
62 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize = $(BLOCK_SIZE)\r | |
63 | \r | |
64 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize\r | |
65 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize = $(BLOCK_SIZE)\r | |
66 | \r | |
67 | SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase = gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r | |
68 | SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize = 0x10000\r | |
9beac0d8 LE |
69 | \r |
70 | DEFINE MEMFD_BASE_ADDRESS = 0x800000\r |