summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-04-03 15:57:58 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-04-03 15:57:58 +0000
commitd107831182ebbf485590c32946ee375b3233b24a (patch)
treebda36c5f24c94b7fd3e0cbb9d186907759869583
parent48e8c3c36dc128969da26610d67d30c93155da5a (diff)
downloadcoreboot-d107831182ebbf485590c32946ee375b3233b24a.tar.xz
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@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4053 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/arch/i386/Config.lb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/Config.lb b/src/arch/i386/Config.lb
index 4c0241d69c..f13bf2f23b 100644
--- a/src/arch/i386/Config.lb
+++ b/src/arch/i386/Config.lb
@@ -48,7 +48,7 @@ end
# 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