Home | History | Annotate | Download | only in Library
      1 ## @file

      2 # This file is used to define common static strings and global data used by UPT

      3 #

      4 # Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>

      5 #

      6 # This program and the accompanying materials are licensed and made available 

      7 # under the terms and conditions of the BSD License which accompanies this 

      8 # distribution. The full text of the license may be found at 

      9 # http://opensource.org/licenses/bsd-license.php

     10 #

     11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

     12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

     13 
     14 '''
     15 GlobalData
     16 '''
     17 
     18 #

     19 # The workspace directory 

     20 #

     21 gWORKSPACE = '.'
     22 gPACKAGE_PATH = None
     23 
     24 #

     25 # INF module directory

     26 #

     27 gINF_MODULE_DIR = "."
     28 gINF_MODULE_NAME = ''
     29 
     30 #

     31 # the directory to holds upt related files

     32 #

     33 gUPT_DIR = r"Conf/upt/"
     34 
     35 #

     36 # Log file for invalid meta-data files during force removing

     37 #

     38 gINVALID_MODULE_FILE = gUPT_DIR + r"Invalid_Modules.log"
     39 
     40 #

     41 # File name for content zip file in the distribution

     42 #

     43 gCONTENT_FILE = "dist.content"
     44 
     45 #

     46 # File name for XML file in the distibution

     47 #

     48 gDESC_FILE = 'dist.pkg'
     49 
     50 #

     51 # Case Insensitive flag

     52 #

     53 gCASE_INSENSITIVE = ''
     54 
     55 #

     56 # All Files dictionary

     57 #

     58 gALL_FILES = {}
     59 
     60 #

     61 # Database instance

     62 #

     63 gDB = None
     64 
     65 #

     66 # list for files that are found in module level but not in INF files,

     67 # items are (File, ModulePath), all these should be relative to $(WORKSPACE)

     68 #

     69 gMISS_FILE_IN_MODLIST = []
     70 
     71 #

     72 # Global Current Line

     73 #

     74 gINF_CURRENT_LINE = None
     75 
     76 #

     77 # Global pkg list

     78 #

     79 gWSPKG_LIST = []
     80 
     81 #

     82 # Flag used to take WARN as ERROR.

     83 # By default, only ERROR message will break the tools execution.

     84 #

     85 gWARNING_AS_ERROR = False
     86 
     87 #

     88 # Used to specify the temp directory to hold the unpacked distribution files

     89 #

     90 gUNPACK_DIR = None
     91 
     92 #

     93 # Flag used to mark whether the INF file is Binary INF or not.

     94 #

     95 gIS_BINARY_INF = False
     96 
     97 #

     98 # Used by FileHook module.

     99 #

    100 gRECOVERMGR = None
    101 
    102 #

    103 # Used by PCD parser

    104 #

    105 gPackageDict = {}
    106 
    107 #

    108 # Used by Library instance parser

    109 # {FilePath: FileObj}

    110 #

    111 gLIBINSTANCEDICT = {}
    112