summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parker <dparker@chromium.org>2012-08-01 08:16:38 -0700
committerDave Parker <dparker@chromium.org>2012-08-16 18:59:30 -0700
commit4da5124368a1cbf898b8fc8d11fdec0919d50307 (patch)
tree7d1772765f1219662f76a6d84344152632ab9bc2
parent691a5a11dca0d2822f8ebe9a9a22a9b1918e414e (diff)
downloadvboot-4da5124368a1cbf898b8fc8d11fdec0919d50307.tar.gz
Kiev: Update bmpblk version from 1.2 to 2.0 for new-style screens.
This is needed to render new-style screens that use 13 bitmaps. bmpblk version is changed from 1.2 to 2.0, due to incompatibility. BUG=chrome-os-partner:11078 TEST=emerge-<board> vboot-reference. Run firmware with new bmpblock. Original-Change-Id: I80543c46a7c0e09169e29e32077d84c57192e431 Reviewed-on: https://gerrit.chromium.org/gerrit/29602 Reviewed-by: Dave Parker <dparker@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Hung-Te Lin <hungte@chromium.org> Tested-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org> Conflicts: scripts/newbitmaps/default_source/bmpblock.bin scripts/newbitmaps/default_source/config.yaml Change-Id: I14aa6895d0e80576c6a13968ae88edb9e2a6d44c Reviewed-on: https://gerrit.chromium.org/gerrit/30621 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: Dave Parker <dparker@chromium.org>
-rw-r--r--firmware/include/bmpblk_header.h4
-rw-r--r--scripts/newbitmaps/README6
-rwxr-xr-xscripts/newbitmaps/images/make_default_yaml2
-rw-r--r--utility/bmpblk_utility.cc15
4 files changed, 10 insertions, 17 deletions
diff --git a/firmware/include/bmpblk_header.h b/firmware/include/bmpblk_header.h
index f6683dce..06ddaa8f 100644
--- a/firmware/include/bmpblk_header.h
+++ b/firmware/include/bmpblk_header.h
@@ -53,8 +53,8 @@ __pragma(pack(push, 1)) /* Support packing for MSVC. */
#define BMPBLOCK_SIGNATURE "$BMP"
#define BMPBLOCK_SIGNATURE_SIZE (4)
-#define BMPBLOCK_MAJOR_VERSION (0x0001)
-#define BMPBLOCK_MINOR_VERSION (0x0002)
+#define BMPBLOCK_MAJOR_VERSION (0x0002)
+#define BMPBLOCK_MINOR_VERSION (0x0000)
#define MAX_IMAGE_IN_LAYOUT (16)
diff --git a/scripts/newbitmaps/README b/scripts/newbitmaps/README
index 5bc2d6fd..1720063d 100644
--- a/scripts/newbitmaps/README
+++ b/scripts/newbitmaps/README
@@ -74,6 +74,12 @@ The old v1.1 bmpblock will be accepted by the vboot wrapper, but a $HWID
screen without a corresponding font should be silently ignored.
+Version 2.0. Used by BIOS with complex composition (Kiev, Link, Snow, etc.)
+
+The max number of components in one screen has increased from 8 to 16, makes
+bitmap block structure incompatible with previous versions.
+
+
--------------------------------------------
Instructions for manually rebuilding things:
diff --git a/scripts/newbitmaps/images/make_default_yaml b/scripts/newbitmaps/images/make_default_yaml
index 1f7cedc8..2bc2fb91 100755
--- a/scripts/newbitmaps/images/make_default_yaml
+++ b/scripts/newbitmaps/images/make_default_yaml
@@ -273,7 +273,7 @@ for hwid_bmp in hwid_unknown.bmp; do
# List the images. The major difference is the HWID.
cat >"$yaml_file" <<'EOF1'
-bmpblock: 1.2
+bmpblock: 2.0
compression: 2
diff --git a/utility/bmpblk_utility.cc b/utility/bmpblk_utility.cc
index 2846746f..386d2d44 100644
--- a/utility/bmpblk_utility.cc
+++ b/utility/bmpblk_utility.cc
@@ -189,20 +189,7 @@ namespace vboot_reference {
error("Syntax error in parsing bmpblock.\n");
}
string gotversion = (char*)event.data.scalar.value;
- if (gotversion == "1.2") {
- render_hwid_ = true;
- support_font_ = true;
- } else if (gotversion == "1.1") {
- minor_version_ = 1;
- render_hwid_ = true;
- support_font_ = false;
- fprintf(stderr, "WARNING: using old format: %s\n", gotversion.c_str());
- } else if (gotversion == "1.0") {
- minor_version_ = 0;
- render_hwid_ = false;
- support_font_ = false;
- fprintf(stderr, "WARNING: using old format: %s\n", gotversion.c_str());
- } else {
+ if (gotversion != "2.0") {
error("Unsupported version specified in config file (%s)\n",
gotversion.c_str());
}