aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-04-25 07:33:25 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-04-25 07:33:25 +0000
commitfe6201651233fbeff7aaef84211286e7716bf8a9 (patch)
tree2c6f87d28e52a38d49e4eaa8939cb4dc0a35f773 /util
parent369bc7882a6fa26bbcbd4d050a26fbc496cfdc47 (diff)
Enable cbfs payload compression (the "l" flag) if payloads are
supposed to be compressed (with lzma only, as cbfstool lacks nrv2b compression support for now) Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4208 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/newconfig/config.g4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 9c7aa3fe64..176ef6d3b5 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -2293,6 +2293,8 @@ def writemakefile(path):
file.write("\trm -f romcc*\n\n")
file.write("ifeq \"$(CONFIG_CBFS)\" \"1\"\n\n")
+ file.write("CBFS_COMPRESS_FLAG:=\n")
+ file.write("ifeq \"$(CONFIG_COMPRESSED_PAYLOAD_LZMA)\" \"1\"\nCBFS_COMPRESS_FLAG:=l\nendif\n\n")
for i in buildroms:
file.write("%s: cbfstool" %(i.name))
@@ -2316,7 +2318,7 @@ def writemakefile(path):
for j in i.roms:
#failover is a hack that will go away soon.
if (j != "failover") and (rommapping[j] != "/dev/null"):
- file.write("\t./cbfstool %s add-payload %s %s/payload\n" % (i.name, rommapping[j], j,))
+ file.write("\t./cbfstool %s add-payload %s %s/payload $(CBFS_COMPRESS_FLAG)\n" % (i.name, rommapping[j], j,))
file.write("\t./cbfstool %s print\n" % i.name)
file.write("\n")
file.write("else\n\n")