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@coresystems.de Acked-by: Ronald G. Minnich rminnich@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")