Home | History | Annotate | Download | only in Platform
      1 #/*++
      2 #
      3 # Copyright (c) 2004 - 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 #   CommonIpf.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,Package.FILE.Default]
     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,Package.Config.Default|Config]
     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.SECURITY_CORE.Default]
    161 PACKAGE.INF
    162 \[.]
    163 BASE_NAME                   = $(BASE_NAME)
    164 FFS_FILEGUID                = $(FILE_GUID)
    165 FFS_FILETYPE                = EFI_FV_FILETYPE_SECURITY_CORE
    166 FFS_ATTRIB_CHECKSUM         = TRUE
    167 FFS_ALIGNMENT               = 0x1
    168 
    169 IMAGE_SCRIPT =
    170 {          \
    171   Blank.pad \
    172   $(BASE_NAME).pe32 \
    173   $(BASE_NAME).ui \
    174   $(BASE_NAME).ver \
    175 }
    176 
    177 [=============================================================================]
    178 [Package.PEI_CORE.Default]
    179 PACKAGE.INF
    180 \[.]
    181 BASE_NAME                   = $(BASE_NAME)
    182 FFS_FILEGUID                = $(FILE_GUID)
    183 FFS_FILETYPE                = EFI_FV_FILETYPE_PEI_CORE
    184 FFS_ATTRIB_CHECKSUM         = TRUE
    185 FFS_ALIGNMENT               = 0x1
    186 
    187 IMAGE_SCRIPT =
    188 {          \
    189   Blank.pad \
    190   $(BASE_NAME).pe32 \
    191   $(BASE_NAME).ui \
    192   $(BASE_NAME).ver \
    193 }
    194 
    195 [=============================================================================]
    196 [Package.PE32_PEIM.Default]
    197 PACKAGE.INF
    198 \[.]
    199 BASE_NAME                   = $(BASE_NAME)
    200 FFS_FILEGUID                = $(FILE_GUID)
    201 FFS_FILETYPE                = EFI_FV_FILETYPE_PEIM
    202 FFS_ATTRIB_CHECKSUM         = TRUE
    203 FFS_ALIGNMENT               = 0x1
    204 
    205 IMAGE_SCRIPT =
    206 { \
    207   Blank.pad \
    208   $(BASE_NAME).pe32 \
    209   $(BASE_NAME).dpx \
    210   $(BASE_NAME).ui \
    211   $(BASE_NAME).ver \
    212 }
    213 
    214 [=============================================================================]
    215 [Package.PE32_PEIM.CompressPEIM]
    216 PACKAGE.INF
    217 \[.]
    218 BASE_NAME                   = $(BASE_NAME)
    219 FFS_FILEGUID                = $(FILE_GUID)
    220 FFS_FILETYPE                = EFI_FV_FILETYPE_PEIM
    221 FFS_ATTRIB_CHECKSUM         = TRUE
    222 
    223 IMAGE_SCRIPT =
    224 { 
    225   $(BASE_NAME).dpx 
    226   Compress ($(COMPRESS_METHOD)) {
    227     $(BASE_NAME).pe32
    228     $(BASE_NAME).ui 
    229     $(BASE_NAME).ver
    230   }
    231 }
    232 
    233 [=============================================================================]
    234 [Package.COMBINED_PEIM_DRIVER.Default]
    235 PACKAGE.INF
    236 \[.]
    237 BASE_NAME                   = $(BASE_NAME)
    238 FFS_FILEGUID                = $(FILE_GUID)
    239 FFS_FILETYPE                = EFI_FV_FILETYPE_COMBINED_PEIM_DRIVER
    240 FFS_ATTRIB_CHECKSUM         = TRUE
    241 FFS_ALIGNMENT               = 0x1
    242 
    243 IMAGE_SCRIPT =
    244 { \
    245   Blank.pad \
    246   $(BASE_NAME).pe32 \
    247   $(BASE_NAME).dpx \
    248   $(BASE_NAME).dpxd \
    249   $(BASE_NAME).ui \
    250   $(BASE_NAME).ver \
    251 }
    252 
    253 [=============================================================================]
    254 [Package.PIC_PEIM.Default]
    255 PACKAGE.INF
    256 \[.]
    257 BASE_NAME                   = $(BASE_NAME)
    258 FFS_FILEGUID                = $(FILE_GUID)
    259 FFS_FILETYPE                = EFI_FV_FILETYPE_PEIM
    260 FFS_ATTRIB_CHECKSUM         = TRUE
    261 FFS_ALIGNMENT               = 0x1
    262 
    263 IMAGE_SCRIPT =
    264 { \
    265   Blank.pad \
    266   $(BASE_NAME).dpx \
    267   $(BASE_NAME).pic \
    268   $(BASE_NAME).ui \
    269   $(BASE_NAME).ver \
    270 }
    271 
    272 [=============================================================================]
    273 [Package.DxeIplPad.Default]
    274 PACKAGE.INF 
    275 \[.]
    276 BASE_NAME                   = $(BASE_NAME)
    277 FFS_FILEGUID                = $(FILE_GUID)
    278 FFS_FILETYPE                = EFI_FV_FILETYPE_RAW
    279 FFS_ATTRIB_CHECKSUM         = TRUE
    280 FFS_ALIGNMENT               = 0x7
    281 
    282 IMAGE_SCRIPT =
    283 { \
    284   $(BASE_NAME).pad \
    285 }
    286 
    287 [=============================================================================]
    288 [Package.BS_DRIVER.DxeMain]
    289 PACKAGE.INF
    290 \[.]
    291 BASE_NAME                   = $(BASE_NAME)
    292 FFS_FILEGUID                = $(FILE_GUID)
    293 FFS_FILETYPE                = EFI_FV_FILETYPE_DXE_CORE
    294 FFS_ATTRIB_CHECKSUM         = TRUE
    295 
    296 IMAGE_SCRIPT =
    297 {
    298   Compress ($(COMPRESS_METHOD)) {
    299     $(BASE_NAME).pe32
    300     $(BASE_NAME).ui
    301     $(BASE_NAME).ver
    302   }
    303 }
    304 
    305 [=============================================================================]
    306 [Package.BS_DRIVER.Default,Package.RT_DRIVER.Default,Package.SAL_RT_DRIVER.Default]
    307 PACKAGE.INF
    308 \[.]
    309 BASE_NAME                   = $(BASE_NAME)
    310 FFS_FILEGUID                = $(FILE_GUID)
    311 FFS_FILETYPE                = EFI_FV_FILETYPE_DRIVER
    312 FFS_ATTRIB_CHECKSUM         = TRUE
    313 
    314 IMAGE_SCRIPT =
    315 {
    316   Compress ($(COMPRESS_METHOD)) {
    317     Tool ( 
    318       $(OEMTOOLPATH)\GenCRC32Section
    319       ARGS= -i $(DEST_DIR)\$(BASE_NAME).dpx
    320                $(DEST_DIR)\$(BASE_NAME).pe32
    321                $(DEST_DIR)\$(BASE_NAME).ui
    322                $(DEST_DIR)\$(BASE_NAME).ver
    323             -o $(DEST_DIR)\$(BASE_NAME).crc32
    324       OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32
    325     )
    326   }
    327 }
    328 
    329 [=============================================================================]
    330 [Package.FvImageFile.Default]
    331 PACKAGE.INF
    332 \[.]
    333 BASE_NAME                   = $(BASE_NAME)
    334 FFS_FILEGUID                = $(FILE_GUID)
    335 FFS_FILETYPE                = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE
    336 FFS_ATTRIB_CHECKSUM         = TRUE
    337 
    338 IMAGE_SCRIPT =
    339 {
    340   Compress ($(COMPRESS_METHOD)) {
    341     Tool (
    342       $(OEMTOOLPATH)\GenCRC32Section
    343       ARGS= -i $(DEST_DIR)\$(SOURCE_FV)Fv.sec
    344             -o $(DEST_DIR)\$(BASE_NAME)fv.crc32
    345       OUTPUT = $(DEST_DIR)\$(BASE_NAME)fv.crc32
    346     )
    347   }
    348 }
    349 
    350 [=============================================================================]
    351 #
    352 # Define a package that "signs" our capsule cargo FV
    353 #
    354 [Package.FvImageFile.SignedFVPackage]
    355 PACKAGE.INF
    356 \[.]
    357 BASE_NAME                   = $(BASE_NAME)
    358 FFS_FILEGUID                = $(FILE_GUID)
    359 FFS_FILETYPE                = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE
    360 FFS_ATTRIB_CHECKSUM         = TRUE
    361 
    362 IMAGE_SCRIPT =
    363 {
    364     Tool (
    365       $(OEMTOOLPATH)\GenCRC32Section
    366       ARGS= -i $(DEST_DIR)\$(SOURCE_FV)Fv.sec
    367             -o $(DEST_DIR)\$(BASE_NAME).crc32
    368       OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32
    369     )
    370 }
    371 
    372 [=============================================================================]
    373 [Package.FvImageFile.FvMainCompact]
    374 PACKAGE.INF
    375 \[.]
    376 BASE_NAME                   = $(BASE_NAME)
    377 FFS_FILEGUID                = $(FILE_GUID)
    378 FFS_FILETYPE                = EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE
    379 FFS_ATTRIB_CHECKSUM         = TRUE
    380 
    381 IMAGE_SCRIPT =
    382 {
    383   Compress ($(COMPRESS_METHOD)) {
    384     Blank.pad
    385     $(SOURCE_FV)Fv.sec
    386   }
    387 }
    388 
    389 [=============================================================================]
    390 [Package.AcpiTable.Default]
    391 PACKAGE.INF
    392 \[.]
    393 BASE_NAME                   = $(BASE_NAME)
    394 FFS_FILEGUID                = $(FILE_GUID)
    395 FFS_FILETYPE                = EFI_FV_FILETYPE_FREEFORM
    396 FFS_ATTRIB_CHECKSUM         = TRUE
    397 
    398 IMAGE_SCRIPT =
    399 {
    400   Compress ($(COMPRESS_METHOD)) {
    401     Tool (
    402       $(OEMTOOLPATH)\GenCRC32Section
    403       ARGS= -i $(SECTION_TARGETS)
    404                $(DEST_DIR)\$(BASE_NAME).ui
    405             -o $(DEST_DIR)\$(BASE_NAME).crc32
    406       OUTPUT = $(DEST_DIR)\$(BASE_NAME).crc32
    407     )
    408   }
    409 }
    410 
    411 [=============================================================================]
    412