[coreboot] [v2] r4208 - trunk/coreboot-v2/util/newconfig
svn at coreboot.org
svn at coreboot.org
Sat Apr 25 09:33:26 CEST 2009
Author: oxygene
Date: 2009-04-25 09:33:25 +0200 (Sat, 25 Apr 2009)
New Revision: 4208
Modified:
trunk/coreboot-v2/util/newconfig/config.g
Log:
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 at coresystems.de>
Acked-by: Ronald G. Minnich <rminnich at gmail.com>
Modified: trunk/coreboot-v2/util/newconfig/config.g
===================================================================
--- trunk/coreboot-v2/util/newconfig/config.g 2009-04-25 07:32:24 UTC (rev 4207)
+++ trunk/coreboot-v2/util/newconfig/config.g 2009-04-25 07:33:25 UTC (rev 4208)
@@ -2293,6 +2293,8 @@
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 @@
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")
More information about the coreboot
mailing list