From fe6201651233fbeff7aaef84211286e7716bf8a9 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 25 Apr 2009 07:33:25 +0000 Subject: 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 Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4208 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3