From 0c71bc327dca7e25619b7bd0b8cc1edb34530c61 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Mon, 3 Sep 2007 06:11:35 +0000 Subject: [PATCH] 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 --- BuildNotes2.txt | 25 +++++++++++++++---------- 1 file 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 .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 " \Bld.py" or "\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 " /build/build.py" or "/build/build.py" directly. "AutoGen.py" steps: 1. Run "edksetup.bat newbuild" - 2. Set ACTIVE_PLATFORM in WORKSPACE\Conf - 4. Run " \AutoGen.py" or "\AutoGen.py" + 2. set PYTHONPATH to the local directory of above source (BaseTools/Source/Python) + 3. Set ACTIVE_PLATFORM in WORKSPACE\Conf + 4. Run " /AutoGen/AutoGen.py" or "/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=\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. -- 2.39.2