[coreboot] [v2] r4053 - trunk/coreboot-v2/src/arch/i386

svn at coreboot.org svn at coreboot.org
Fri Apr 3 17:57:59 CEST 2009

Author: oxygene
Date: 2009-04-03 17:57:58 +0200 (Fri, 03 Apr 2009)
New Revision: 4053

The attached patch tries new style compression first and runs old
style compression if the command returned an error code (happens if
you run an old lzma with the new arguments)

Tested on new-style lzma only (as I lack a build environment with
old lzma), but I tested that the old lzma returns with an error code.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

Modified: trunk/coreboot-v2/src/arch/i386/Config.lb
--- trunk/coreboot-v2/src/arch/i386/Config.lb	2009-04-03 15:02:08 UTC (rev 4052)
+++ trunk/coreboot-v2/src/arch/i386/Config.lb	2009-04-03 15:57:58 UTC (rev 4053)
@@ -48,7 +48,7 @@
 # unlike nrv2b, lzma is a huge build mess. If they want lzma, they have to have built it
 makerule payload.lzma
 	depends "$(PAYLOAD) "
-	action  "lzma e $(PAYLOAD) $@"
+	action  "lzma -zc $(PAYLOAD) > $@ || lzma e $(PAYLOAD) $@"

More information about the coreboot mailing list