]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Updated per the latest status of tools
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 3 Sep 2007 06:11:35 +0000 (06:11 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 3 Sep 2007 06:11:35 +0000 (06:11 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3765 6f19259b-4bc3-4df7-8a09-765794883524

BuildNotes2.txt

index 120c3542e18335b4c46ed282c02cfb1e7888bd6a..ffec64462ddc4f35e9ae33197dc38871ca19a040 100644 (file)
@@ -75,11 +75,13 @@ For more information on build options, please try "build -h" on command line. No
 Supported build targets\r
 -----------------------\r
 \r
 Supported build targets\r
 -----------------------\r
 \r
-all                            - Build whole platform or module. It can be ignored.\r
+all       - Build whole platform or module. It can be ignored.\r
+genc      - Generate AutoGen.c, AutoGen.h and <ModuleName>.depex files only.\r
+genmake   - Generate makefiles in addition to files generated by "genc" target.\r
 clean     - Clean intermediate files\r
 cleanall  - Clean all generated files and directories during build, except Makefile\r
 cleanlib  - Clean all generated files and directories during library build\r
 clean     - Clean intermediate files\r
 cleanall  - Clean all generated files and directories during build, except Makefile\r
 cleanlib  - Clean all generated files and directories during library build\r
-run                            - Launch NT32 shell (only valid for NT32 platform)\r
+run       - Launch NT32 shell (only valid for NT32 platform)\r
 \r
 -------------------------------------------------------------------------------\r
 Tools in Python\r
 \r
 -------------------------------------------------------------------------------\r
 Tools in Python\r
@@ -93,20 +95,22 @@ have the Python interpreter (version 2.5) installed. The source of Python code i
 \r
        where:\r
 \r
 \r
        where:\r
 \r
-               Bld.py      - The entry tool of build tools\r
-               AutoGen.py  - Generate AutoGen.c/.h and makefile only\r
+               build/build.py      - The entry tool of build tools\r
+               AutoGen/AutoGen.py  - Generate AutoGen.c/.h and makefile only\r
 \r
 \r
-       "MyBuild.py" steps:\r
+       "build.py" steps:\r
                1. Run "edksetup.bat newbuild"\r
                1. Run "edksetup.bat newbuild"\r
-               2. Set ACTIVE_PLATFORM in WORKSPACE\Conf\r
-               3. Go to platform or module directory\r
-               4. Run "<python_interpreter.exe> <python_source_dir>\Bld.py" or "<python_source_dir>\Bld.py"\r
+        2. set PYTHONPATH to the local directory of above source (BaseTools/Source/Python)\r
+               3. Set ACTIVE_PLATFORM in WORKSPACE\Conf\r
+               4. Go to platform or module directory\r
+               5. Run "<python_interpreter.exe> <python_source_dir>/build/build.py" or "<python_source_dir>/build/build.py"\r
                   directly.\r
 \r
        "AutoGen.py" steps:\r
                1. Run "edksetup.bat newbuild"\r
                   directly.\r
 \r
        "AutoGen.py" steps:\r
                1. Run "edksetup.bat newbuild"\r
-               2. Set ACTIVE_PLATFORM in WORKSPACE\Conf\r
-               4. Run "<python_interpreter.exe> <python_source_dir>\AutoGen.py" or "<python_source_dir>\AutoGen.py"\r
+        2. set PYTHONPATH to the local directory of above source (BaseTools/Source/Python)\r
+               3. Set ACTIVE_PLATFORM in WORKSPACE\Conf\r
+               4. Run "<python_interpreter.exe> <python_source_dir>/AutoGen/AutoGen.py" or "<python_source_dir>/AutoGen/AutoGen.py"\r
 \r
 * Convert Python source to exe file\r
   The tools written in Python can be coverted into executable program which can be executed\r
 \r
 * Convert Python source to exe file\r
   The tools written in Python can be coverted into executable program which can be executed\r
@@ -116,6 +120,7 @@ without Python interpreter. One of the convertion tools is called cx_Freeze at
 \r
        Suppose you have installed cx_Freeze at c:\cx_Freeze-3.0.3. Use following command line to convert MyBuild.py\r
 \r
 \r
        Suppose you have installed cx_Freeze at c:\cx_Freeze-3.0.3. Use following command line to convert MyBuild.py\r
 \r
+    set PYTHONPATH=<buildtools>\BaseTools\Source\Python\r
        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\r
 \r
        The generated .exe files are put in "mybuild" subdirectory.\r
        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\r
 \r
        The generated .exe files are put in "mybuild" subdirectory.\r