-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Blechd0se/jb_clean-2.6.32-9-patch
[PATCH] Added XZ Compression for 2.6.32.9
- Loading branch information
Showing
27 changed files
with
4,281 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* Copyright 1995, 1996, 1998, 1999, 2000, 2003, 2004, 2005 | ||
Free Software Foundation, Inc. | ||
This file is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published by the | ||
Free Software Foundation; either version 2, or (at your option) any | ||
later version. | ||
In addition to the permissions in the GNU General Public License, the | ||
Free Software Foundation gives you unlimited permission to link the | ||
compiled version of this file into combinations with other programs, | ||
and to distribute those combinations without any restriction coming | ||
from the use of this file. (The General Public License restrictions | ||
do apply in other respects; for example, they cover modification of | ||
the file, and distribution when not linked into a combine | ||
executable.) | ||
This file is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; see the file COPYING. If not, write to | ||
the Free Software Foundation, 51 Franklin Street, Fifth Floor, | ||
Boston, MA 02110-1301, USA. */ | ||
|
||
|
||
#include <linux/linkage.h> | ||
|
||
#ifdef __ARMEB__ | ||
#define al r1 | ||
#define ah r0 | ||
#else | ||
#define al r0 | ||
#define ah r1 | ||
#endif | ||
|
||
ENTRY(__ashldi3) | ||
ENTRY(__aeabi_llsl) | ||
|
||
subs r3, r2, #32 | ||
rsb ip, r2, #32 | ||
movmi ah, ah, lsl r2 | ||
movpl ah, al, lsl r3 | ||
ARM( orrmi ah, ah, al, lsr ip ) | ||
THUMB( lsrmi r3, al, ip ) | ||
THUMB( orrmi ah, ah, r3 ) | ||
mov al, al, lsl r2 | ||
mov pc, lr | ||
|
||
ENDPROC(__ashldi3) | ||
ENDPROC(__aeabi_llsl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#define _LINUX_STRING_H_ | ||
|
||
#include <linux/compiler.h> /* for inline */ | ||
#include <linux/types.h> /* for size_t */ | ||
#include <linux/stddef.h> /* for NULL */ | ||
#include <linux/linkage.h> | ||
#include <asm/string.h> | ||
|
||
extern unsigned long free_mem_ptr; | ||
extern unsigned long free_mem_end_ptr; | ||
extern void error(char *); | ||
|
||
#define STATIC static | ||
#define STATIC_RW_DATA /* non-static please */ | ||
|
||
#define ARCH_HAS_DECOMP_WDOG | ||
|
||
/* Diagnostic functions */ | ||
#ifdef DEBUG | ||
# define Assert(cond,msg) {if(!(cond)) error(msg);} | ||
# define Trace(x) fprintf x | ||
# define Tracev(x) {if (verbose) fprintf x ;} | ||
# define Tracevv(x) {if (verbose>1) fprintf x ;} | ||
# define Tracec(c,x) {if (verbose && (c)) fprintf x ;} | ||
# define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;} | ||
#else | ||
# define Assert(cond,msg) | ||
# define Trace(x) | ||
# define Tracev(x) | ||
# define Tracevv(x) | ||
# define Tracec(c,x) | ||
# define Tracecv(c,x) | ||
#endif | ||
|
||
#ifdef CONFIG_KERNEL_GZIP | ||
#include "../../../../lib/decompress_inflate.c" | ||
#endif | ||
|
||
#ifdef CONFIG_KERNEL_BZIP2 | ||
#include "../../../../lib/decompress_bunzip2.c" | ||
#endif | ||
|
||
#ifdef CONFIG_KERNEL_LZMA | ||
#include "../../../../lib/decompress_unlzma.c" | ||
#endif | ||
|
||
#ifdef CONFIG_KERNEL_LZO | ||
#include "../../../../lib/decompress_unlzo.c" | ||
#endif | ||
|
||
#ifdef CONFIG_KERNEL_XZ | ||
#include "../../../../lib/decompress_unxz.c" | ||
#endif | ||
|
||
void do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x)) | ||
{ | ||
decompress(input, len, NULL, NULL, output, NULL, error); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.section .piggydata,#alloc | ||
.globl input_data | ||
input_data: | ||
.incbin "arch/arm/boot/compressed/piggy.xzkern" | ||
.globl input_data_end | ||
input_data_end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Override defconfig here | ||
|
||
# do not use, to keep module compat | ||
# CONFIG_LOCALVERSION="-Jellybean" | ||
|
||
CONFIG_DEBUG_FS=y | ||
CONFIG_ARM_THUMBEE=y | ||
CONFIG_NLS_UTF8=y | ||
CONFIG_IKCONFIG=y | ||
CONFIG_IKCONFIG_PROC=y | ||
|
||
# CONFIG_KERNEL_LZMA=y | ||
# CONFIG_KERNEL_LZO=y | ||
CONFIG_KERNEL_XZ=y | ||
CONFIG_CLEANCACHE=y | ||
CONFIG_SLQB=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.