• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## @file
2# Python2710.inf
3#
4#  Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>
5#  Copyright (c) 2011-2012, Intel Corporation. All rights reserved.<BR>
6#  This program and the accompanying materials
7#  are licensed and made available under the terms and conditions of the BSD License
8#  which accompanies this distribution. The full text of the license may be found at
9#  http://opensource.org/licenses/bsd-license.
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
16[Defines]
17  INF_VERSION                 = 0x00010016
18  BASE_NAME                   = Python2710
19  FILE_GUID                   = F78285FD-121E-49f4-9716-44E307656586
20  MODULE_TYPE                 = UEFI_APPLICATION
21  VERSION_STRING              = 0.1
22  ENTRY_POINT                 = ShellCEntryLib
23
24  DEFINE PYTHON_VERSION       = 2.7.10
25
26#
27#  VALID_ARCHITECTURES        = IA32 X64
28#
29
30[Packages]
31  StdLib/StdLib.dec
32  MdePkg/MdePkg.dec
33
34[LibraryClasses]
35  UefiLib
36  DebugLib
37  LibC
38  LibString
39  LibStdio
40  LibGdtoa
41  LibMath
42  LibWchar
43  LibGen
44  LibNetUtil
45  DevMedia
46  #
47# Comment out the following two library classes if socket support is
48# NOT being built in to Python.
49  #BsdSocketLib
50  #EfiSocketLib
51
52[FixedPcd]
53  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0F
54  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040
55
56[Sources]
57#Parser
58  Parser/acceler.c
59  Parser/bitset.c
60  Parser/firstsets.c
61  Parser/grammar.c
62  Parser/grammar1.c
63  Parser/listnode.c
64  Parser/metagrammar.c
65  Parser/myreadline.c
66  Parser/node.c
67  Parser/parser.c
68  Parser/parsetok.c
69  Parser/tokenizer.c
70
71#Python
72  PyMod-$(PYTHON_VERSION)/Python/getcopyright.c
73  PyMod-$(PYTHON_VERSION)/Python/marshal.c
74  PyMod-$(PYTHON_VERSION)/Python/random.c
75
76  Python/_warnings.c
77  Python/asdl.c
78  Python/ast.c
79  Python/bltinmodule.c
80  Python/ceval.c
81  Python/codecs.c
82  Python/compile.c
83  Python/dtoa.c
84  Python/dynload_stub.c
85  Python/errors.c
86  Python/formatter_string.c
87  Python/formatter_unicode.c
88  Python/frozen.c
89  Python/future.c
90  Python/getargs.c
91  Python/getcompiler.c
92  Python/getopt.c
93  Python/getplatform.c
94  Python/getversion.c
95  Python/graminit.c
96  Python/import.c
97  Python/importdl.c
98  Python/modsupport.c
99  Python/mysnprintf.c
100  Python/mystrtoul.c
101  Python/peephole.c
102  Python/pyarena.c
103  Python/pyctype.c
104  Python/pyfpe.c
105  Python/pymath.c
106  Python/pystate.c
107  Python/pystrcmp.c
108  Python/pystrtod.c
109  Python/Python-ast.c
110  Python/pythonrun.c
111  Python/structmember.c
112  Python/symtable.c
113  Python/sysmodule.c
114  Python/traceback.c
115
116#Objects
117  PyMod-$(PYTHON_VERSION)/Objects/longobject.c
118
119  Objects/abstract.c
120  Objects/boolobject.c
121  Objects/bufferobject.c
122  Objects/bytearrayobject.c
123  Objects/bytes_methods.c
124  Objects/capsule.c
125  Objects/cellobject.c
126  Objects/classobject.c
127  Objects/cobject.c
128  Objects/codeobject.c
129  Objects/complexobject.c
130  Objects/descrobject.c
131  Objects/dictobject.c
132  Objects/enumobject.c
133  Objects/exceptions.c
134  Objects/fileobject.c
135  Objects/floatobject.c
136  Objects/frameobject.c
137  Objects/funcobject.c
138  Objects/genobject.c
139  Objects/intobject.c
140  Objects/iterobject.c
141  Objects/listobject.c
142  Objects/memoryobject.c
143  Objects/methodobject.c
144  Objects/moduleobject.c
145  Objects/object.c
146  Objects/obmalloc.c
147  Objects/rangeobject.c
148  Objects/setobject.c
149  Objects/sliceobject.c
150  Objects/stringobject.c
151  Objects/structseq.c
152  Objects/tupleobject.c
153  Objects/typeobject.c
154  Objects/unicodectype.c
155  Objects/unicodeobject.c
156  Objects/weakrefobject.c
157
158#Modules -- See config.c
159  # Mandatory Modules -- These must always be built in.
160  PyMod-$(PYTHON_VERSION)/Modules/config.c
161  PyMod-$(PYTHON_VERSION)/Modules/edk2module.c
162  PyMod-$(PYTHON_VERSION)/Modules/errnomodule.c
163  PyMod-$(PYTHON_VERSION)/Modules/getpath.c
164  PyMod-$(PYTHON_VERSION)/Modules/main.c
165
166  Modules/_functoolsmodule.c
167  Modules/gcmodule.c
168  Modules/getbuildinfo.c
169  Modules/python.c
170
171  # Optional Modules -- See Python/Efi/config.c
172  PyMod-$(PYTHON_VERSION)/Modules/_sre.c
173  PyMod-$(PYTHON_VERSION)/Modules/selectmodule.c
174  #
175  Modules/_bisectmodule.c              #
176  Modules/_codecsmodule.c              #
177  Modules/_collectionsmodule.c         #
178  Modules/_csv.c                       #
179  Modules/_heapqmodule.c               #
180  Modules/_json.c                      #
181  Modules/_localemodule.c              #
182  Modules/_math.c                      #
183  Modules/_randommodule.c              #
184  Modules/_struct.c                    #
185  Modules/_weakref.c                   #
186  Modules/arraymodule.c                #
187  Modules/binascii.c                   #
188  Modules/cmathmodule.c                #
189  Modules/cPickle.c                    #
190  Modules/cStringIO.c                  #
191  Modules/datetimemodule.c             #
192  Modules/future_builtins.c            #
193  Modules/itertoolsmodule.c            #
194  Modules/mathmodule.c                 #
195  Modules/md5.c                        #
196  Modules/md5module.c                  #
197  Modules/operator.c                   #
198  Modules/parsermodule.c               #
199  Modules/sha256module.c               #
200  Modules/sha512module.c               #
201  Modules/shamodule.c                  #
202  Modules/signalmodule.c               #
203  Modules/socketmodule.c               #
204  Modules/stropmodule.c                #
205  Modules/symtablemodule.c             #
206  Modules/timemodule.c                 #
207  Modules/unicodedata.c                #
208  Modules/xxsubtype.c                  #
209  Modules/zipimport.c                  #
210  Modules/zlibmodule.c                 #
211
212#Modules/_io
213  Modules/_io/_iomodule.c              #
214  Modules/_io/bufferedio.c             #
215  Modules/_io/bytesio.c                #
216  Modules/_io/fileio.c                 #
217  Modules/_io/iobase.c                 #
218  Modules/_io/stringio.c               #
219  Modules/_io/textio.c                 #
220
221#Modules/cjkcodecs
222  Modules/cjkcodecs/multibytecodec.c   #
223  Modules/cjkcodecs/_codecs_cn.c       #
224  Modules/cjkcodecs/_codecs_hk.c       #
225  Modules/cjkcodecs/_codecs_iso2022.c  #
226  Modules/cjkcodecs/_codecs_jp.c       #
227  Modules/cjkcodecs/_codecs_kr.c       #
228  Modules/cjkcodecs/_codecs_tw.c       #
229
230#Modules/expat
231  Modules/pyexpat.c                    #
232  Modules/expat/xmlrole.c              #
233  Modules/expat/xmltok.c               #
234  Modules/expat/xmlparse.c             #
235
236#Modules/zlib
237  Modules/zlib/adler32.c               #
238  Modules/zlib/compress.c              #
239  Modules/zlib/crc32.c                 #
240  Modules/zlib/deflate.c               #
241  Modules/zlib/gzclose.c               #
242  Modules/zlib/gzlib.c                 #
243  Modules/zlib/gzread.c                #
244  Modules/zlib/gzwrite.c               #
245
246  Modules/zlib/infback.c               #
247  Modules/zlib/inffast.c               #
248  Modules/zlib/inflate.c               #
249  Modules/zlib/inftrees.c              #
250  Modules/zlib/trees.c                 #
251  Modules/zlib/uncompr.c               #
252  Modules/zlib/zutil.c                 #
253
254[BuildOptions]
255   MSFT:*_*_IA32_CC_FLAGS         = /Oi- /wd4018 /wd4054 /wd4055 /wd4101 /wd4131 /wd4152 /wd4204 /wd4210 /wd4244 /wd4267 /wd4305 /wd4310 /wd4389 /wd4701 /wd4702 /wd4706 /I$(WORKSPACE)\AppPkg\Applications\Python\Python-2.7.10\Ia32 /I$(WORKSPACE)\AppPkg\Applications\Python\Python-2.7.10\Include /DHAVE_MEMMOVE /DUSE_PYEXPAT_CAPI /DXML_STATIC
256   MSFT:*_*_X64_CC_FLAGS          = /Oi- /wd4018 /wd4054 /wd4055 /wd4101 /wd4131 /wd4152 /wd4204 /wd4210 /wd4244 /wd4267 /wd4305 /wd4310 /wd4389 /wd4701 /wd4702 /wd4706 /I$(WORKSPACE)\AppPkg\Applications\Python\Python-2.7.10\X64 /I$(WORKSPACE)\AppPkg\Applications\Python\Python-2.7.10\Include /DHAVE_MEMMOVE /DUSE_PYEXPAT_CAPI /DXML_STATIC
257    GCC:*_*_IA32_CC_FLAGS         = -fno-builtin -Wno-format -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/Ia32 -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Include -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/Include -DHAVE_MEMMOVE -DUSE_PYEXPAT_CAPI -DXML_STATIC
258    GCC:*_*_X64_CC_FLAGS          = -Wno-format -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/X64 -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Include -I$(WORKSPACE)/AppPkg/Applications/Python/Python-2.7.10/Include -DHAVE_MEMMOVE -DUSE_PYEXPAT_CAPI -DXML_STATIC
259