bmpblk: Rewrite image build script in Python.
The build procedure in shell script is slow and hard to scale/automate for
parameter calculation and configuration customization.
This commit rewrites the shell script in Python and changed the config
description to a YAML file that can be easily maintained with more human
readable settings.
Execution time for single board (ex, "time LOCALES=en build_images.py parrot")
has reduced from 4.8s to 4.0s. With the help from python version of
make_default_yaml.py, "make all" reduced execution time from 7:39s to 2:04s.
BUG=none
TEST=manual: make clean; make # all bmpblks generated properly.
"pylint" shows no errors. # (cd images;
pylint --rcfile ../../../../chromite/third_party/pylintrc build_images.py)
Change-Id: I211b70dda9250b7445722b6dc659e791c3cf2a79
Reviewed-on: https://chrome-internal-review.googlesource.com/41886
Tested-by: Hung-Te Lin <[email protected]>
Reviewed-by: Vadim Bendebury <[email protected]>
Commit-Queue: Hung-Te Lin <[email protected]>
5 files changed