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
Kirill Smelkov
linux
Commits
67df6cc6
Commit
67df6cc6
authored
Jul 19, 2010
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blackfin: add support for LZO compressed kernels
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
382dbe5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
arch/blackfin/Kconfig
arch/blackfin/Kconfig
+1
-0
arch/blackfin/Makefile
arch/blackfin/Makefile
+2
-1
arch/blackfin/boot/Makefile
arch/blackfin/boot/Makefile
+9
-2
No files found.
arch/blackfin/Kconfig
View file @
67df6cc6
...
@@ -32,6 +32,7 @@ config BLACKFIN
...
@@ -32,6 +32,7 @@ config BLACKFIN
select HAVE_KERNEL_GZIP if RAMKERNEL
select HAVE_KERNEL_GZIP if RAMKERNEL
select HAVE_KERNEL_BZIP2 if RAMKERNEL
select HAVE_KERNEL_BZIP2 if RAMKERNEL
select HAVE_KERNEL_LZMA if RAMKERNEL
select HAVE_KERNEL_LZMA if RAMKERNEL
select HAVE_KERNEL_LZO if RAMKERNEL
select HAVE_OPROFILE
select HAVE_OPROFILE
select ARCH_WANT_OPTIONAL_GPIOLIB
select ARCH_WANT_OPTIONAL_GPIOLIB
...
...
arch/blackfin/Makefile
View file @
67df6cc6
...
@@ -140,7 +140,7 @@ archclean:
...
@@ -140,7 +140,7 @@ archclean:
INSTALL_PATH
?=
/tftpboot
INSTALL_PATH
?=
/tftpboot
boot
:=
arch
/
$(ARCH)
/boot
boot
:=
arch
/
$(ARCH)
/boot
BOOT_TARGETS
=
vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.xip
BOOT_TARGETS
=
vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.
lzo vmImage.
xip
PHONY
+=
$(BOOT_TARGETS)
install
PHONY
+=
$(BOOT_TARGETS)
install
KBUILD_IMAGE
:=
$(boot)
/vmImage
KBUILD_IMAGE
:=
$(boot)
/vmImage
...
@@ -158,6 +158,7 @@ define archhelp
...
@@ -158,6 +158,7 @@ define archhelp
echo
' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)'
echo
' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)'
echo
'* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
echo
'* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
echo
' vmImage.lzma - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)'
echo
' vmImage.lzma - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)'
echo
' vmImage.lzo - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzo)'
echo
' vmImage.xip - XIP Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.xip)'
echo
' vmImage.xip - XIP Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.xip)'
echo
' install - Install kernel using'
echo
' install - Install kernel using'
echo
' (your) ~/bin/$(INSTALLKERNEL) or'
echo
' (your) ~/bin/$(INSTALLKERNEL) or'
...
...
arch/blackfin/boot/Makefile
View file @
67df6cc6
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
MKIMAGE
:=
$(srctree)
/scripts/mkuboot.sh
MKIMAGE
:=
$(srctree)
/scripts/mkuboot.sh
targets
:=
vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.xip
targets
:=
vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.
lzo vmImage.
xip
extra-y
+=
vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xip
extra-y
+=
vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.
lzo vmlinux.bin.
xip
UIMAGE_OPTS-y
:=
UIMAGE_OPTS-y
:=
UIMAGE_OPTS-$(CONFIG_RAMKERNEL)
+=
-a
$(CONFIG_BOOT_LOAD)
UIMAGE_OPTS-$(CONFIG_RAMKERNEL)
+=
-a
$(CONFIG_BOOT_LOAD)
...
@@ -33,6 +33,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
...
@@ -33,6 +33,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
$(obj)/vmlinux.bin.lzma
:
$(obj)/vmlinux.bin FORCE
$(obj)/vmlinux.bin.lzma
:
$(obj)/vmlinux.bin FORCE
$(
call
if_changed,lzma
)
$(
call
if_changed,lzma
)
$(obj)/vmlinux.bin.lzo
:
$(obj)/vmlinux.bin FORCE
$(
call
if_changed,lzo
)
# The mkimage tool wants 64bytes prepended to the image
# The mkimage tool wants 64bytes prepended to the image
quiet_cmd_mk_bin_xip
=
BIN
$@
quiet_cmd_mk_bin_xip
=
BIN
$@
cmd_mk_bin_xip
=
(
printf
'%64s'
|
tr
' '
'\377'
;
cat
$<
)
>
$@
cmd_mk_bin_xip
=
(
printf
'%64s'
|
tr
' '
'\377'
;
cat
$<
)
>
$@
...
@@ -51,6 +54,9 @@ $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
...
@@ -51,6 +54,9 @@ $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
$(obj)/vmImage.lzma
:
$(obj)/vmlinux.bin.lzma
$(obj)/vmImage.lzma
:
$(obj)/vmlinux.bin.lzma
$(
call
if_changed,uimage,lzma
)
$(
call
if_changed,uimage,lzma
)
$(obj)/vmImage.lzo
:
$(obj)/vmlinux.bin.lzo
$(
call
if_changed,uimage,lzo
)
$(obj)/vmImage.xip
:
$(obj)/vmlinux.bin.xip
$(obj)/vmImage.xip
:
$(obj)/vmlinux.bin.xip
$(
call
if_changed,uimage,none
)
$(
call
if_changed,uimage,none
)
...
@@ -58,6 +64,7 @@ suffix-y := bin
...
@@ -58,6 +64,7 @@ suffix-y := bin
suffix-$(CONFIG_KERNEL_GZIP)
:=
gz
suffix-$(CONFIG_KERNEL_GZIP)
:=
gz
suffix-$(CONFIG_KERNEL_BZIP2)
:=
bz2
suffix-$(CONFIG_KERNEL_BZIP2)
:=
bz2
suffix-$(CONFIG_KERNEL_LZMA)
:=
lzma
suffix-$(CONFIG_KERNEL_LZMA)
:=
lzma
suffix-$(CONFIG_KERNEL_LZO)
:=
lzo
suffix-$(CONFIG_ROMKERNEL)
:=
xip
suffix-$(CONFIG_ROMKERNEL)
:=
xip
$(obj)/vmImage
:
$(obj)/vmImage.$(suffix-y)
$(obj)/vmImage
:
$(obj)/vmImage.$(suffix-y)
...
...
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