Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
42b510eb
Commit
42b510eb
authored
Dec 04, 2015
by
Yoshinori Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: Add LZO compression
Signed-off-by:
Yoshinori Sato
<
ysato@users.sourceforge.jp
>
parent
af3da579
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
arch/h8300/Kconfig
arch/h8300/Kconfig
+2
-0
arch/h8300/boot/compressed/Makefile
arch/h8300/boot/compressed/Makefile
+8
-3
arch/h8300/boot/compressed/misc.c
arch/h8300/boot/compressed/misc.c
+6
-0
No files found.
arch/h8300/Kconfig
View file @
42b510eb
...
...
@@ -18,6 +18,8 @@ config H8300
select HAVE_DMA_ATTRS
select CLKSRC_OF
select H8300_TMR8
select HAVE_KERNEL_GZIP
select HAVE_KERNEL_LZO
config RWSEM_GENERIC_SPINLOCK
def_bool y
...
...
arch/h8300/boot/compressed/Makefile
View file @
42b510eb
...
...
@@ -28,11 +28,16 @@ $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE
$(obj)/vmlinux.bin
:
vmlinux FORCE
$(
call
if_changed,objcopy
)
$(obj)/vmlinux.bin.gz
:
$(obj)/vmlinux.bin FORCE
$(
call
if_changed,gzip
)
suffix-$(CONFIG_KERNEL_GZIP)
:=
gzip
suffix-$(CONFIG_KERNEL_LZO)
:=
lzo
$(obj)/vmlinux.bin.$(suffix-y)
:
$(obj)/vmlinux.bin FORCE
$(
call
if_changed,
$
(
suffix-y
))
LDFLAGS_piggy.o
:=
-r
--format
binary
--oformat
elf32-h8300-linux
-T
OBJCOPYFLAGS
:=
-O
binary
$(obj)/piggy.o
:
$(obj)/vmlinux.scr $(obj)/vmlinux.bin.
gz
FORCE
$(obj)/piggy.o
:
$(obj)/vmlinux.scr $(obj)/vmlinux.bin.
$(suffix-y)
FORCE
$(
call
if_changed,ld
)
CFLAGS_misc.o
=
-O0
arch/h8300/boot/compressed/misc.c
View file @
42b510eb
...
...
@@ -32,7 +32,13 @@ extern char output[];
#define HEAP_SIZE 0x10000
#ifdef CONFIG_KERNEL_GZIP
#include "../../../../lib/decompress_inflate.c"
#endif
#ifdef CONFIG_KERNEL_LZO
#include "../../../../lib/decompress_unlzo.c"
#endif
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment