Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: af9c4e5e67ab12a77434564ff61c124ef0e5b5dd
https://github.com/tianocore/edk2/commit/af9c4e5e67ab12a77434564ff61c124ef0e5b5dd
Author: Michael D Kinney <michael.d.kin...@intel.com>
Date: 2017-08-11 (Fri, 11 Aug 2017)
Changed paths:
M BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
M BaseTools/Source/Python/build/build.py
Log Message:
-----------
BaseTools/build: Expand PREBUILD/POSTBUILD DSC actions
https://bugzilla.tianocore.org/show_bug.cgi?id=670
* Extend PREBUILD/POSTBUILD define values to support more than
one argument.
* Delay normalization of PREBUILD/POSTBUILD define values
until all arguments in the define values can be processed.
* Convert PREBUILD/POSTBUILD build define value arguments
that are WORKSPACE or PACKAGES_PATH relative paths to
absolute paths.
* Append -p PlatformFile, --conf=ConfDirectory, and build target
flags to command line used to execute PREBUILD/POSTBUILD
actions.
* Remove PrebuildScript and PostbuildScript fields from the
Build class and use Prebuild and Postbuild fields instead.
Cc: Liming Gao <liming....@intel.com>
Cc: Yonghong Zhu <yonghong....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kin...@intel.com>
Reviewed-by: Yonghong Zhu <yonghong....@intel.com>
Commit: c8d385265fa38e0933768fccc8dc0bf5b8725037
https://github.com/tianocore/edk2/commit/c8d385265fa38e0933768fccc8dc0bf5b8725037
Author: Michael D Kinney <michael.d.kin...@intel.com>
Date: 2017-08-11 (Fri, 11 Aug 2017)
Changed paths:
A BaseTools/Scripts/RunMakefile.py
Log Message:
-----------
BaseTools/Scripts: Add python script to run a makefile
https://bugzilla.tianocore.org/show_bug.cgi?id=670
Add the python script RunMakefile.py that can be used
in a PREBUILD/POSTBUIILD action to invoke a makefile
passing in context as makefile defines. The command
line arguments passed into RunMakefile.py are converted
to the following set of defines.
* ACTIVE_PLATFORM
* TARGET_ARCH
* TOOL_CHAIN_TAG
* CONF_DIRECTORY
* TARGET
* EXTRA_FLAGS
In addition, a makefile can access the system environment
variables including WORKSPACE and PACKAGES_PATH.
The makefile target from the following set is also passed
into the makefile. If no target is passed into build, then
the 'all' target is used.
[all|fds|genc|genmake|clean|cleanall|cleanlib|modules|libraries|run]
A platform DSC file can use a statements in the [Defines]
section of the following form to use this script. MAKEFILE
is a WORKSPACE or PACKAGES_PATH relative path to the makefile
to run.
[Defines]
PREBUILD = python BaseTools/Script/RunMakefile.py --makefile MAKEFILE
POSTBUILD = python BaseTools/Script/RunMakefile.py --makefile MAKEFILE
Cc: Liming Gao <liming....@intel.com>
Cc: Yonghong Zhu <yonghong....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kin...@intel.com>
Reviewed-by: Yonghong Zhu <yonghong....@intel.com>
Commit: ef190542b4dbc4577ef7d1f99209199f0c1b6e66
https://github.com/tianocore/edk2/commit/ef190542b4dbc4577ef7d1f99209199f0c1b6e66
Author: Michael D Kinney <michael.d.kin...@intel.com>
Date: 2017-08-11 (Fri, 11 Aug 2017)
Changed paths:
A BaseTools/Scripts/RunMakefileSample.mak
Log Message:
-----------
BaseTools/Scripts: Add sample makefile for use with RunMakefile.py
https://bugzilla.tianocore.org/show_bug.cgi?id=670
Add sample makefile that can be used to test RunMakefile.py
script and can also be used as a template to start a new
PREBUILD/POSTBUILD makefile.
This makefile contains TAB characters instead of spaces on
purpose to maximize compatibility with make utilities.
Cc: Liming Gao <liming....@intel.com>
Cc: Yonghong Zhu <yonghong....@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kin...@intel.com>
Reviewed-by: Yonghong Zhu <yonghong....@intel.com>
Compare: https://github.com/tianocore/edk2/compare/cc993a16e403...ef190542b4db
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits