diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-03 06:11:35 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-03 06:11:35 +0000 |
commit | 0c71bc327dca7e25619b7bd0b8cc1edb34530c61 (patch) | |
tree | fc9ab6e49fc99e22a1c0d4a3c1f2919de7013072 | |
parent | f4a9471d55072a615b6fd384aeecbd74a3bd1f9b (diff) | |
download | edk2-platforms-0c71bc327dca7e25619b7bd0b8cc1edb34530c61.tar.xz |
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
-rw-r--r-- | BuildNotes2.txt | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/BuildNotes2.txt b/BuildNotes2.txt index 120c3542e1..ffec64462d 100644 --- a/BuildNotes2.txt +++ b/BuildNotes2.txt @@ -75,11 +75,13 @@ For more information on build options, please try "build -h" on command line. No Supported build targets
-----------------------
-all - Build whole platform or module. It can be ignored.
+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
-run - Launch NT32 shell (only valid for NT32 platform)
+run - Launch NT32 shell (only valid for NT32 platform)
-------------------------------------------------------------------------------
Tools in Python
@@ -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.
|