the following patch was just integrated into master:
commit ab5754da6639f51ee2aec796f832ce4e3b164f82
Author: Patrick Georgi <pgeorgi(a)google.com>
Date: Tue Sep 1 18:20:20 2015 +0200
cbfstool: off-by-one on the gcc version that provides _Static_assert
According to https://gcc.gnu.org/gcc-4.6/changes.html it's only in gcc 4.6,
not 4.5, which I mistakenly believed.
Change-Id: I8212e7921bd9d1436a0ba491cbe6c4d473228956
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
Reviewed-on: http://review.coreboot.org/11476
Reviewed-by: Jonathan A. Kollasch <jakllsch(a)kollasch.net>
Tested-by: build bot (Jenkins)
See http://review.coreboot.org/11476 for details.
-gerrit
Patrick Georgi (pgeorgi(a)google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11476
-gerrit
commit c8aa3222082cf4dc09fe2da6625ede0ca250ad7c
Author: Patrick Georgi <pgeorgi(a)google.com>
Date: Tue Sep 1 18:20:20 2015 +0200
cbfstool: off-by-one on the gcc version that provides _Static_assert
According to https://gcc.gnu.org/gcc-4.6/changes.html it's only in gcc 4.6,
not 4.5, which I mistakenly believed.
Change-Id: I8212e7921bd9d1436a0ba491cbe6c4d473228956
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
util/cbfstool/cbfs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h
index d1b97c5..f738c60 100644
--- a/util/cbfstool/cbfs.h
+++ b/util/cbfstool/cbfs.h
@@ -88,7 +88,7 @@ struct cbfs_file {
char filename[];
} __PACKED;
-#if defined __GNUC__ && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405
+#if defined __GNUC__ && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406
_Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch");
#endif
the following patch was just integrated into master:
commit 57c67e5aa52426ee8665bc6e0706ac2abf625a13
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Tue Sep 1 12:37:41 2015 +0200
cbfstool: guard _Static_assert
This isn't required for correct execution, and doesn't need to be tested
on every single compiler out there.
Since GCC < 4.5 has no idea about _Static_assert, hide it there. Our
build tests will make sure that the test is run before changes are
submitted to master.
Change-Id: I4141f4aa23b140d2d1017ca7b4dace5aa7db0c04
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/11475
Tested-by: build bot (Jenkins)
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-by: Jonathan A. Kollasch <jakllsch(a)kollasch.net>
See http://review.coreboot.org/11475 for details.
-gerrit
the following patch was just integrated into master:
commit 23aeaff41b94af818191a8668a517abb04a7d516
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Aug 26 13:01:10 2015 +0200
cbfstool: implement decompression support for cbfstool extract
Change-Id: I5142b03d3c3e028eeb179f225848f762186f94a8
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/11363
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See http://review.coreboot.org/11363 for details.
-gerrit
the following patch was just integrated into master:
commit 61c822900e8907e28ef6dca326835692ae6d18ca
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Aug 26 12:53:41 2015 +0200
cbfstool: add decompression wrappers
... and document the interface.
Change-Id: I86a071a61fd6c1ef842f8ffe51f12f0cefdaf2fe
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/11362
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
Tested-by: build bot (Jenkins)
See http://review.coreboot.org/11362 for details.
-gerrit
the following patch was just integrated into master:
commit a71c83fa5c3904b562bad939a3103387cd561c80
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Aug 26 12:23:26 2015 +0200
cbfstool: factor out parsing compression file attributes
cbfstool extract also needs it.
Change-Id: I8302bb18c5f797eb0a43ec4e4269790f3d49a896
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/11361
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See http://review.coreboot.org/11361 for details.
-gerrit
the following patch was just integrated into master:
commit c82725c5b912a695b4582b34253029552932de69
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Aug 26 12:13:03 2015 +0200
cbfstool: support compressed files in cbfstool print
Display compressed and decompressed sizes, as well as the compression
algorithm used, when a compressed file is encountered.
Change-Id: I13c2332702c4a5bec379e1ebda72753e06f8e135
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/11359
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See http://review.coreboot.org/11359 for details.
-gerrit
the following patch was just integrated into master:
commit 8984a637c121d06a408a5f2b3b9d5233a7aa0e6e
Author: Daisuke Nojiri <dnojiri(a)chromium.org>
Date: Thu Jul 9 15:07:45 2015 -0700
cbfstool: allow compression at file header level
Currently, compression is only allowed at subheader level (e.g. cbfs_stage,
cbfs_payload_segment). This change adds compression field to each file's
header so that any cbfs file can be compressed.
With the necessary additions in coreboot and libpayload, the following sample
code can load a compressed file:
const char *name = "foo.bmp";
struct cbfs_file *file = cbfs_get_file(media, name);
void *dst = malloc(ntohl(file->uncompressed_size));
dst = cbfs_get_file_content(media, name, type, file, dst);
cbfs_stage and cbfs_payload_segment continue to support compression at
subheader level because stages and payloads have to be decompressed to the load
address, which is stored in the subheader. For these, file level compression
should be turned off.
Change-Id: I9a00ec99dfc68ffb2771bb4a3cc5ba6ba8a326f4
Signed-off-by: Daisuke Nojiri <dnojiri(a)chromium.org>
Signed-off-by: Patrick Georgi <pgeorgi(a)chromium.org>
Reviewed-on: http://review.coreboot.org/10935
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See http://review.coreboot.org/10935 for details.
-gerrit
the following patch was just integrated into master:
commit 2c61506630b8e76bed93b3a5ac0ab2089376f548
Author: Patrick Georgi <pgeorgi(a)chromium.org>
Date: Wed Jul 15 20:49:00 2015 +0200
cbfstool: add extended file attributes for cbfs_file
cbfs_file_first_attr(struct cbfs_file *) and
cbfs_file_next_attr(struct cbfs_file *, struct cbfs_file_attribute *)
help navigate through extended attributes.
cbfs_add_file_attr(header, tag, size) adds a new file attribute to
header.
Change-Id: I325965286c44f31abd95df684d340cebb0e68b75
Signed-off-by: Patrick Georgi <pgeorgi(a)chromium.org>
Reviewed-on: http://review.coreboot.org/10934
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See http://review.coreboot.org/10934 for details.
-gerrit