1 #/*++ 2 # 3 # Copyright (c) 2005 - 2007, Intel Corporation. All rights reserved.<BR> 4 # This program and the accompanying materials 5 # are licensed and made available under the terms and conditions of the BSD License 6 # which accompanies this distribution. The full text of the license may be found at 7 # http://opensource.org/licenses/bsd-license.php 8 # 9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11 # 12 # Module Name: 13 # 14 # CommonX64.dsc 15 # 16 # Abstract: 17 # 18 # This is the build description file containing the processor architecture 19 # dependent build instructions. 20 # 21 # Notes: 22 # 23 # The info in this file is broken down into sections. The start of a section 24 # is designated by a "[" in the first column. So the [=====] separater ends 25 # a section. 26 # 27 #--*/ 28 29 30 [=============================================================================] 31 # 32 # These are the package descriptions. They are tagged as 33 # [Package.$(COMPONENT_TYPE).$(PACKAGE)], where COMPONENT_TYPE is typically 34 # defined in the component INF file, and PACKAGE is typically specified 35 # in the components section in the main DSC file. Main DSC file can also define 36 # platform specific package descriptions. 37 # 38 39 [=============================================================================] 40 [Package.APPLICATION.Default] 41 PACKAGE.INF 42 \[.] 43 BASE_NAME = $(BASE_NAME) 44 FFS_FILEGUID = $(FILE_GUID) 45 FFS_FILETYPE = EFI_FV_FILETYPE_APPLICATION 46 FFS_ATTRIB_CHECKSUM = TRUE 47 48 IMAGE_SCRIPT = 49 { 50 Compress ($(COMPRESS_METHOD)) { 51 Tool ( 52 $(OEMTOOLPATH)\GenCRC32Section 53 ARGS= -i $(DEST_DIR)\$(BASE_NAME).pe32 54 $(DEST_DIR)\$(BASE_NAME).ui 55 $(DEST_DIR)\$(BASE_NAME).ver 56 -o $(DEST_DIR)\$(BASE_NAME).crc32 57 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 58 ) 59 } 60 } 61 62 [=============================================================================] 63 [Package.Apriori.Default|DefaultStripped,Package.FILE.Default|DefaultStripped] 64 PACKAGE.INF 65 \[.] 66 BASE_NAME = $(BASE_NAME) 67 FFS_FILEGUID = $(FILE_GUID) 68 FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM 69 FFS_ATTRIB_CHECKSUM = TRUE 70 71 IMAGE_SCRIPT = 72 { 73 $(BASE_NAME).sec 74 } 75 76 [=============================================================================] 77 [Package.RAWFILE.Default|DefaultStripped,Package.Config.Default|DefaultStripped|Config,Package.Microcode.Default|DefaultStripped] 78 PACKAGE.INF 79 \[.] 80 BASE_NAME = $(BASE_NAME) 81 FFS_FILEGUID = $(FILE_GUID) 82 FFS_FILETYPE = EFI_FV_FILETYPE_RAW 83 FFS_ATTRIB_CHECKSUM = TRUE 84 85 IMAGE_SCRIPT = 86 { 87 $(BASE_NAME).Bin 88 } 89 90 [=============================================================================] 91 [Package.BINARY.Default,Package.Legacy16.Default,Package.Logo.Default|Logo] 92 PACKAGE.INF 93 \[.] 94 BASE_NAME = $(BASE_NAME) 95 FFS_FILEGUID = $(FILE_GUID) 96 FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM 97 FFS_ATTRIB_CHECKSUM = TRUE 98 99 IMAGE_SCRIPT = 100 { 101 Compress ($(COMPRESS_METHOD)) { 102 Tool ( $(OEMTOOLPATH)\GenCRC32Section 103 ARGS = -i $(DEST_DIR)\$(BASE_NAME).sec 104 -o $(DEST_DIR)\$(BASE_NAME).crc32 105 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 106 ) 107 } 108 } 109 110 [=============================================================================] 111 # 112 # Package definition for TE files 113 # 114 [Package.PE32_PEIM.TE_PEIM] 115 PACKAGE.INF 116 \[.] 117 BASE_NAME = $(BASE_NAME) 118 FFS_FILEGUID = $(FILE_GUID) 119 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 120 FFS_ATTRIB_CHECKSUM = TRUE 121 122 IMAGE_SCRIPT = 123 { 124 $(BASE_NAME).dpx 125 $(BASE_NAME).tes 126 $(BASE_NAME).ui 127 $(BASE_NAME).ver 128 } 129 130 [=============================================================================] 131 # 132 # Package definition to put the IFR data in a separate section in the 133 # FFS file. 134 # 135 [Package.BS_DRIVER.Ifr_Bin] 136 PACKAGE.INF 137 \[.] 138 BASE_NAME = $(BASE_NAME) 139 FFS_FILEGUID = $(FILE_GUID) 140 FFS_FILETYPE = EFI_FV_FILETYPE_DRIVER 141 FFS_ATTRIB_CHECKSUM = TRUE 142 143 IMAGE_SCRIPT = 144 { 145 Compress ($(COMPRESS_METHOD)) { 146 Tool ( 147 $(OEMTOOLPATH)\GenCRC32Section 148 ARGS= -i $(DEST_DIR)\$(BASE_NAME).dpx 149 $(DEST_DIR)\$(BASE_NAME).pe32 150 $(DEST_DIR)\$(BASE_NAME).ui 151 $(DEST_DIR)\$(BASE_NAME).ver 152 $(DEST_DIR)\$(BASE_NAME)IfrBin.sec 153 -o $(DEST_DIR)\$(BASE_NAME).crc32 154 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 155 ) 156 } 157 } 158 159 [=============================================================================] 160 [Package.PEI_CORE.Default] 161 PACKAGE.INF 162 \[.] 163 BASE_NAME = $(BASE_NAME) 164 FFS_FILEGUID = $(FILE_GUID) 165 FFS_FILETYPE = EFI_FV_FILETYPE_PEI_CORE 166 FFS_ATTRIB_CHECKSUM = TRUE 167 168 IMAGE_SCRIPT = 169 { \ 170 $(BASE_NAME).pe32 \ 171 $(BASE_NAME).ui \ 172 $(BASE_NAME).ver \ 173 } 174 175 [=============================================================================] 176 [Package.PEI_CORE.TE_PEIM] 177 PACKAGE.INF 178 \[.] 179 BASE_NAME = $(BASE_NAME) 180 FFS_FILEGUID = $(FILE_GUID) 181 FFS_FILETYPE = EFI_FV_FILETYPE_PEI_CORE 182 FFS_ATTRIB_CHECKSUM = TRUE 183 184 IMAGE_SCRIPT = 185 { \ 186 $(BASE_NAME).tes \ 187 $(BASE_NAME).ui \ 188 $(BASE_NAME).ver \ 189 } 190 191 [=============================================================================] 192 [Package.PE32_PEIM.Default] 193 PACKAGE.INF 194 \[.] 195 BASE_NAME = $(BASE_NAME) 196 FFS_FILEGUID = $(FILE_GUID) 197 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 198 FFS_ATTRIB_CHECKSUM = TRUE 199 200 IMAGE_SCRIPT = 201 { \ 202 $(BASE_NAME).dpx \ 203 $(BASE_NAME).pe32 \ 204 $(BASE_NAME).ui \ 205 $(BASE_NAME).ver \ 206 } 207 208 [=============================================================================] 209 [Package.PE32_PEIM.Relocatable] 210 PACKAGE.INF 211 \[.] 212 BASE_NAME = $(BASE_NAME) 213 FFS_FILEGUID = $(FILE_GUID) 214 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 215 FFS_ATTRIB_CHECKSUM = TRUE 216 217 IMAGE_SCRIPT = 218 { \ 219 $(BASE_NAME).dpx \ 220 $(BASE_NAME).pe32 \ 221 } 222 223 [=============================================================================] 224 [Package.PE32_PEIM.CompressPEIM] 225 PACKAGE.INF 226 \[.] 227 BASE_NAME = $(BASE_NAME) 228 FFS_FILEGUID = $(FILE_GUID) 229 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 230 FFS_ATTRIB_CHECKSUM = TRUE 231 232 IMAGE_SCRIPT = 233 { 234 $(BASE_NAME).dpx 235 Compress ($(COMPRESS_METHOD)) { 236 $(BASE_NAME).pe32 237 $(BASE_NAME).ui 238 $(BASE_NAME).ver 239 } 240 } 241 242 [=============================================================================] 243 [Package.COMBINED_PEIM_DRIVER.Default] 244 PACKAGE.INF 245 \[.] 246 BASE_NAME = $(BASE_NAME) 247 FFS_FILEGUID = $(FILE_GUID) 248 FFS_FILETYPE = EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER 249 FFS_ATTRIB_CHECKSUM = TRUE 250 251 IMAGE_SCRIPT = 252 { \ 253 $(BASE_NAME).dpx \ 254 $(BASE_NAME).dpxd \ 255 $(BASE_NAME).pe32 \ 256 $(BASE_NAME).ui \ 257 $(BASE_NAME).ver \ 258 } 259 260 [=============================================================================] 261 [Package.BS_DRIVER.DxeMain] 262 PACKAGE.INF 263 \[.] 264 BASE_NAME = $(BASE_NAME) 265 FFS_FILEGUID = $(FILE_GUID) 266 FFS_FILETYPE = EFI_FV_FILETYPE_DXE_CORE 267 FFS_ATTRIB_CHECKSUM = TRUE 268 269 IMAGE_SCRIPT = 270 { 271 Compress ($(COMPRESS_METHOD)) { 272 $(BASE_NAME).pe32 273 $(BASE_NAME).ui 274 $(BASE_NAME).ver 275 } 276 } 277 278 [=============================================================================] 279 [Package.BS_DRIVER.Default,Package.RT_DRIVER.Default,Package.SAL_RT_DRIVER.Default] 280 PACKAGE.INF 281 \[.] 282 BASE_NAME = $(BASE_NAME) 283 FFS_FILEGUID = $(FILE_GUID) 284 FFS_FILETYPE = EFI_FV_FILETYPE_DRIVER 285 FFS_ATTRIB_CHECKSUM = TRUE 286 287 IMAGE_SCRIPT = 288 { 289 Compress ($(COMPRESS_METHOD)) { 290 Tool ( 291 $(OEMTOOLPATH)\GenCRC32Section 292 ARGS= -i $(DEST_DIR)\$(BASE_NAME).dpx 293 $(DEST_DIR)\$(BASE_NAME).pe32 294 $(DEST_DIR)\$(BASE_NAME).ui 295 $(DEST_DIR)\$(BASE_NAME).ver 296 -o $(DEST_DIR)\$(BASE_NAME).crc32 297 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 298 ) 299 } 300 } 301 302 [=============================================================================] 303 [Package.FvImageFile.Default] 304 PACKAGE.INF 305 \[.] 306 BASE_NAME = $(BASE_NAME) 307 FFS_FILEGUID = $(FILE_GUID) 308 FFS_FILETYPE = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE 309 FFS_ATTRIB_CHECKSUM = TRUE 310 311 IMAGE_SCRIPT = 312 { 313 Compress ($(COMPRESS_METHOD)) { 314 Tool ( 315 $(OEMTOOLPATH)\GenCRC32Section 316 ARGS= -i $(DEST_DIR)\$(SOURCE_FV)Fv.sec 317 -o $(DEST_DIR)\$(BASE_NAME)fv.crc32 318 OUTPUT = $(DEST_DIR)\$(BASE_NAME)fv.crc32 319 ) 320 } 321 } 322 323 [=============================================================================] 324 # 325 # Define a package that "signs" our capsule cargo FV 326 # 327 [Package.FvImageFile.SignedFVPackage] 328 PACKAGE.INF 329 \[.] 330 BASE_NAME = $(BASE_NAME) 331 FFS_FILEGUID = $(FILE_GUID) 332 FFS_FILETYPE = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE 333 FFS_ATTRIB_CHECKSUM = TRUE 334 335 IMAGE_SCRIPT = 336 { 337 Tool ( 338 $(OEMTOOLPATH)\GenCRC32Section 339 ARGS= -i $(DEST_DIR)\$(SOURCE_FV)Fv.sec 340 -o $(DEST_DIR)\$(BASE_NAME).crc32 341 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 342 ) 343 } 344 345 [=============================================================================] 346 # 347 # Stripped package descriptions for size reduction. 348 # 349 [=============================================================================] 350 [Package.APPLICATION.DefaultStripped] 351 PACKAGE.INF 352 \[.] 353 BASE_NAME = $(BASE_NAME) 354 FFS_FILEGUID = $(FILE_GUID) 355 FFS_FILETYPE = EFI_FV_FILETYPE_APPLICATION 356 FFS_ATTRIB_CHECKSUM = TRUE 357 358 IMAGE_SCRIPT = 359 { 360 Compress ($(COMPRESS_METHOD)) { 361 $(DEST_DIR)\$(BASE_NAME).pe32 362 } 363 } 364 365 [=============================================================================] 366 [Package.BINARY.DefaultStripped,Package.Legacy16.DefaultStripped,Package.Logo.DefaultStripped|LogoStripped] 367 PACKAGE.INF 368 \[.] 369 BASE_NAME = $(BASE_NAME) 370 FFS_FILEGUID = $(FILE_GUID) 371 FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM 372 FFS_ATTRIB_CHECKSUM = TRUE 373 374 IMAGE_SCRIPT = 375 { 376 Compress ($(COMPRESS_METHOD)) { 377 $(DEST_DIR)\$(BASE_NAME).sec 378 } 379 } 380 381 [=============================================================================] 382 [Package.PEI_CORE.DefaultStripped] 383 PACKAGE.INF 384 \[.] 385 BASE_NAME = $(BASE_NAME) 386 FFS_FILEGUID = $(FILE_GUID) 387 FFS_FILETYPE = EFI_FV_FILETYPE_PEI_CORE 388 FFS_ATTRIB_CHECKSUM = TRUE 389 390 IMAGE_SCRIPT = 391 { \ 392 $(BASE_NAME).pe32 \ 393 } 394 395 [=============================================================================] 396 [Package.PEI_CORE.TE_PEIMStripped] 397 PACKAGE.INF 398 \[.] 399 BASE_NAME = $(BASE_NAME) 400 FFS_FILEGUID = $(FILE_GUID) 401 FFS_FILETYPE = EFI_FV_FILETYPE_PEI_CORE 402 FFS_ATTRIB_CHECKSUM = TRUE 403 404 IMAGE_SCRIPT = 405 { 406 $(BASE_NAME).tes 407 } 408 409 [=============================================================================] 410 [Package.PE32_PEIM.DefaultStripped] 411 PACKAGE.INF 412 \[.] 413 BASE_NAME = $(BASE_NAME) 414 FFS_FILEGUID = $(FILE_GUID) 415 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 416 FFS_ATTRIB_CHECKSUM = TRUE 417 418 IMAGE_SCRIPT = 419 { \ 420 $(BASE_NAME).dpx \ 421 $(BASE_NAME).pe32 \ 422 } 423 424 [=============================================================================] 425 [Package.PE32_PEIM.CompressPEIMStripped] 426 PACKAGE.INF 427 \[.] 428 BASE_NAME = $(BASE_NAME) 429 FFS_FILEGUID = $(FILE_GUID) 430 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 431 FFS_ATTRIB_CHECKSUM = TRUE 432 433 IMAGE_SCRIPT = 434 { 435 $(BASE_NAME).dpx 436 Compress ($(COMPRESS_METHOD)) { 437 $(BASE_NAME).pe32 438 } 439 } 440 441 [=============================================================================] 442 # 443 # Package definition for TE files 444 # 445 [Package.PE32_PEIM.TE_PEIMStripped] 446 PACKAGE.INF 447 \[.] 448 BASE_NAME = $(BASE_NAME) 449 FFS_FILEGUID = $(FILE_GUID) 450 FFS_FILETYPE = EFI_FV_FILETYPE_PEIM 451 FFS_ATTRIB_CHECKSUM = TRUE 452 453 IMAGE_SCRIPT = 454 { 455 $(BASE_NAME).dpx 456 $(BASE_NAME).tes 457 } 458 459 [=============================================================================] 460 [Package.COMBINED_PEIM_DRIVER.DefaultStripped] 461 PACKAGE.INF 462 \[.] 463 BASE_NAME = $(BASE_NAME) 464 FFS_FILEGUID = $(FILE_GUID) 465 FFS_FILETYPE = EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER 466 FFS_ATTRIB_CHECKSUM = TRUE 467 468 IMAGE_SCRIPT = 469 { \ 470 $(BASE_NAME).dpx \ 471 $(BASE_NAME).dpxd \ 472 $(BASE_NAME).pe32 \ 473 } 474 475 [=============================================================================] 476 [Package.BS_DRIVER.DxeMainStripped] 477 PACKAGE.INF 478 \[.] 479 BASE_NAME = $(BASE_NAME) 480 FFS_FILEGUID = $(FILE_GUID) 481 FFS_FILETYPE = EFI_FV_FILETYPE_DXE_CORE 482 FFS_ATTRIB_CHECKSUM = TRUE 483 484 IMAGE_SCRIPT = 485 { 486 Compress ($(COMPRESS_METHOD)) { 487 $(BASE_NAME).pe32 488 } 489 } 490 491 [=============================================================================] 492 [Package.BS_DRIVER.DefaultStripped,Package.RT_DRIVER.DefaultStripped,Package.SAL_RT_DRIVER.DefaultStripped] 493 PACKAGE.INF 494 \[.] 495 BASE_NAME = $(BASE_NAME) 496 FFS_FILEGUID = $(FILE_GUID) 497 FFS_FILETYPE = EFI_FV_FILETYPE_DRIVER 498 FFS_ATTRIB_CHECKSUM = TRUE 499 500 IMAGE_SCRIPT = 501 { 502 Compress ($(COMPRESS_METHOD)) { 503 $(DEST_DIR)\$(BASE_NAME).dpx 504 $(DEST_DIR)\$(BASE_NAME).pe32 505 } 506 } 507 508 [=============================================================================] 509 [Package.FvImageFile.DefaultStripped] 510 PACKAGE.INF 511 \[.] 512 BASE_NAME = $(BASE_NAME) 513 FFS_FILEGUID = $(FILE_GUID) 514 FFS_FILETYPE = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE 515 FFS_ATTRIB_CHECKSUM = TRUE 516 517 IMAGE_SCRIPT = 518 { 519 Compress ($(COMPRESS_METHOD)) { 520 $(DEST_DIR)\$(SOURCE_FV)Fv.sec 521 } 522 } 523 524 [=============================================================================] 525 [Package.FvImageFile.FvMainCompact] 526 PACKAGE.INF 527 \[.] 528 BASE_NAME = $(BASE_NAME) 529 FFS_FILEGUID = $(FILE_GUID) 530 FFS_FILETYPE = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE 531 FFS_ATTRIB_CHECKSUM = TRUE 532 533 IMAGE_SCRIPT = 534 { 535 Compress ($(COMPRESS_METHOD)) { 536 Blank.pad 537 $(SOURCE_FV)Fv.sec 538 } 539 } 540 541 [=============================================================================] 542 [Package.SECURITY_CORE.Default|DefaultStripped] 543 PACKAGE.INF 544 \[.] 545 BASE_NAME = $(BASE_NAME) 546 FFS_FILEGUID = $(FILE_GUID) 547 FFS_FILETYPE = EFI_FV_FILETYPE_SECURITY_CORE 548 FFS_ATTRIB_CHECKSUM = FALSE 549 550 IMAGE_SCRIPT = 551 { \ 552 Blank1.pad \ 553 $(BASE_NAME).tes \ 554 ResetVec.raw \ 555 } 556 557 [=============================================================================] 558 [Package.AcpiTable.Default] 559 PACKAGE.INF 560 \[.] 561 BASE_NAME = $(BASE_NAME) 562 FFS_FILEGUID = $(FILE_GUID) 563 FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM 564 FFS_ATTRIB_CHECKSUM = TRUE 565 566 IMAGE_SCRIPT = 567 { 568 Compress ($(COMPRESS_METHOD)) { 569 Tool ( 570 $(OEMTOOLPATH)\GenCRC32Section 571 ARGS= -i $(SECTION_TARGETS) 572 $(DEST_DIR)\$(BASE_NAME).ui 573 -o $(DEST_DIR)\$(BASE_NAME).crc32 574 OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32 575 ) 576 } 577 } 578 579 [=============================================================================] 580 [Package.AcpiTable.DefaultStripped] 581 PACKAGE.INF 582 \[.] 583 BASE_NAME = $(BASE_NAME) 584 FFS_FILEGUID = $(FILE_GUID) 585 FFS_FILETYPE = EFI_FV_FILETYPE_FREEFORM 586 FFS_ATTRIB_CHECKSUM = TRUE 587 588 IMAGE_SCRIPT = 589 { 590 Compress ($(COMPRESS_METHOD)) { 591 $(SECTION_TARGETS) 592 } 593 } 594 595 [=============================================================================] 596