Updated per the latest status of tools

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3765 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2007-09-03 06:11:35 +00:00
parent f4a9471d55
commit 0c71bc327d
1 changed files with 15 additions and 10 deletions

View File

@ -76,6 +76,8 @@ Supported build targets
-----------------------
all - Build whole platform or module. It can be ignored.
genc - Generate AutoGen.c, AutoGen.h and <ModuleName>.depex files only.
genmake - Generate makefiles in addition to files generated by "genc" target.
clean - Clean intermediate files
cleanall - Clean all generated files and directories during build, except Makefile
cleanlib - Clean all generated files and directories during library build
@ -93,20 +95,22 @@ have the Python interpreter (version 2.5) installed. The source of Python code i
where:
Bld.py - The entry tool of build tools
AutoGen.py - Generate AutoGen.c/.h and makefile only
build/build.py - The entry tool of build tools
AutoGen/AutoGen.py - Generate AutoGen.c/.h and makefile only
"MyBuild.py" steps:
"build.py" steps:
1. Run "edksetup.bat newbuild"
2. Set ACTIVE_PLATFORM in WORKSPACE\Conf
3. Go to platform or module directory
4. Run "<python_interpreter.exe> <python_source_dir>\Bld.py" or "<python_source_dir>\Bld.py"
2. set PYTHONPATH to the local directory of above source (BaseTools/Source/Python)
3. Set ACTIVE_PLATFORM in WORKSPACE\Conf
4. Go to platform or module directory
5. Run "<python_interpreter.exe> <python_source_dir>/build/build.py" or "<python_source_dir>/build/build.py"
directly.
"AutoGen.py" steps:
1. Run "edksetup.bat newbuild"
2. Set ACTIVE_PLATFORM in WORKSPACE\Conf
4. Run "<python_interpreter.exe> <python_source_dir>\AutoGen.py" or "<python_source_dir>\AutoGen.py"
2. set PYTHONPATH to the local directory of above source (BaseTools/Source/Python)
3. Set ACTIVE_PLATFORM in WORKSPACE\Conf
4. Run "<python_interpreter.exe> <python_source_dir>/AutoGen/AutoGen.py" or "<python_source_dir>/AutoGen/AutoGen.py"
* Convert Python source to exe file
The tools written in Python can be coverted into executable program which can be executed
@ -116,6 +120,7 @@ without Python interpreter. One of the convertion tools is called cx_Freeze at
Suppose you have installed cx_Freeze at c:\cx_Freeze-3.0.3. Use following command line to convert MyBuild.py
set PYTHONPATH=<buildtools>\BaseTools\Source\Python
c:\cx_Freeze-3.0.3\FreezePython.exe --include-modules=encodings.cp437,encodings.gbk,encodings.utf_16,encodings.utf_8 --install-dir=.\mybuild MyBuild.py
The generated .exe files are put in "mybuild" subdirectory.