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
This commit is contained in:
Patrick Georgi 2009-04-03 15:57:58 +00:00
parent 48e8c3c36d
commit d107831182
1 changed files with 1 additions and 1 deletions

View File

@ -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