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
-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
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
- "MyBuild.py" steps:\r
+ "build.py" steps:\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
- 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
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