summaryrefslogtreecommitdiff
path: root/payloads/bayou/lzma.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2019-07-25 12:19:44 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-12-09 09:51:23 +0000
commit3979def529ac6efeb37248e1bfc965112e6c86db (patch)
treef4802514891326292c5ae76b1abc84bca0553166 /payloads/bayou/lzma.c
parentd01b67506735f685cdadab7a175529df23b50c8f (diff)
downloadcoreboot-3979def529ac6efeb37248e1bfc965112e6c86db.tar.xz
payloads/bayou: remove unhooked payload
The bayou payload is not attached to the build system in any way, and has not been for quite a while. Since selecting it in Kconfig does nothing, remove this payload now that coreboot 4.10 has been released. Change-Id: Icfb18b88e460a4e4b538b7efe907d4eef6c40638 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34565 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: ron minnich <rminnich@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/bayou/lzma.c')
-rw-r--r--payloads/bayou/lzma.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/payloads/bayou/lzma.c b/payloads/bayou/lzma.c
deleted file mode 100644
index 14bd921527..0000000000
--- a/payloads/bayou/lzma.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-
-coreboot interface to memory-saving variant of LZMA decoder
-
-(C)opyright 2006 Carl-Daniel Hailfinger
-Released under the GNU GPL v2 or later
-
-Parts of this file are based on C/7zip/Compress/LZMA_C/LzmaTest.c from the LZMA
-SDK 4.42, which is written and distributed to public domain by Igor Pavlov.
-
-*/
-
-#include <libpayload.h>
-#include "lzmadecode.c"
-
-unsigned long ulzma(u8 *src, u8 *dst)
-{
- unsigned char properties[LZMA_PROPERTIES_SIZE];
- UInt32 outSize;
- SizeT inProcessed;
- SizeT outProcessed;
- int res;
- CLzmaDecoderState state;
- SizeT mallocneeds;
- unsigned char scratchpad[15980];
-
- memcpy(properties, src, LZMA_PROPERTIES_SIZE);
- outSize = *(UInt32 *)(src + LZMA_PROPERTIES_SIZE);
- if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {
- printf("Incorrect stream properties\n");
- }
- mallocneeds = (LzmaGetNumProbs(&state.Properties) * sizeof(CProb));
- if (mallocneeds > 15980) {
- printf("Decoder scratchpad too small!\n");
- }
- state.Probs = (CProb *)scratchpad;
- res = LzmaDecode(&state, src + LZMA_PROPERTIES_SIZE + 8, (SizeT)0xffffffff, &inProcessed,
- dst, outSize, &outProcessed);
- if (res != 0) {
- printf("Decoding error = %d\n", res);
- }
- return outSize;
-}