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 <[email protected]>
Index: src/arch/i386/Config.lb
===================================================================
--- src/arch/i386/Config.lb (Revision 4049)
+++ src/arch/i386/Config.lb (Arbeitskopie)
@@ -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) $@"
end
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot