Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Unified Diff: scripts/newbitmaps/make_bmp_from_components.py

Issue 6686025: Don't modify fv old-style bitmaps (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@0.11.241.B
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/newbitmaps/make_bmp_from_components.py
diff --git a/scripts/newbitmaps/make_bmp_from_components.py b/scripts/newbitmaps/make_bmp_from_components.py
index ad4c3d4ef69d85037bcf522112c36745711320e5..dffe1eda4602f4f4bcb3b711d6cec84e4bca7bb5 100755
--- a/scripts/newbitmaps/make_bmp_from_components.py
+++ b/scripts/newbitmaps/make_bmp_from_components.py
@@ -49,6 +49,8 @@ def ProcessDir(directory):
re_bmp = re.compile(r'\'data_bitmap_fv\': \[\'(?P<bmp>.*)\'\],')
re_hwid = re.compile(r'\'part_id_hwqual\': \[\'(?P<hwid>.*)\'\],')
re_geom = re.compile(r'\'data_display_geometry\': \[\'(?P<geom>.*)\'\],')
+ # Old bitmap style
+ re_fv = re.compile(r'.*\.fv')
# Find the components files.
files = glob.glob(os.path.join(directory, "data_*/components_*"))
@@ -74,8 +76,11 @@ def ProcessDir(directory):
if not ( bmp and hwid and geom):
print "Corrupt HWID configuration"
sys.exit(1)
- print "HWID: %s, %s, %s" % (hwid, geom, bmp)
- MakeBmp(hwid, geom, bmp, directory)
+ if re_fv.match(bmp):
+ print "HWID: %s, %s, %s (skipping old style bitmap)" % (hwid, geom, bmp)
+ else:
+ print "HWID: %s, %s, %s" % (hwid, geom, bmp)
+ MakeBmp(hwid, geom, bmp, directory)
def main():
directory = os.path.abspath(sys.argv[1])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698