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
b6adc16e
Commit
b6adc16e
authored
Aug 20, 2017
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Wire up support for self-extracting kernel
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
f5213b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
arch/parisc/Kconfig
arch/parisc/Kconfig
+6
-0
arch/parisc/Makefile
arch/parisc/Makefile
+13
-3
No files found.
arch/parisc/Kconfig
View file @
b6adc16e
...
@@ -20,6 +20,12 @@ config PARISC
...
@@ -20,6 +20,12 @@ config PARISC
select BUG
select BUG
select BUILDTIME_EXTABLE_SORT
select BUILDTIME_EXTABLE_SORT
select HAVE_PERF_EVENTS
select HAVE_PERF_EVENTS
select HAVE_KERNEL_BZIP2
select HAVE_KERNEL_GZIP
select HAVE_KERNEL_LZ4
select HAVE_KERNEL_LZMA
select HAVE_KERNEL_LZO
select HAVE_KERNEL_XZ
select GENERIC_ATOMIC64 if !64BIT
select GENERIC_ATOMIC64 if !64BIT
select GENERIC_IRQ_PROBE
select GENERIC_IRQ_PROBE
select GENERIC_PCI_IOMAP
select GENERIC_PCI_IOMAP
...
...
arch/parisc/Makefile
View file @
b6adc16e
...
@@ -24,15 +24,20 @@ KBUILD_DEFCONFIG := default_defconfig
...
@@ -24,15 +24,20 @@ KBUILD_DEFCONFIG := default_defconfig
NM
=
sh
$(srctree)
/arch/parisc/nm
NM
=
sh
$(srctree)
/arch/parisc/nm
CHECKFLAGS
+=
-D__hppa__
=
1
CHECKFLAGS
+=
-D__hppa__
=
1
LIBGCC
=
$(
shell
$(CC)
$(KBUILD_CFLAGS)
-print-libgcc-file-name
)
LIBGCC
=
$(
shell
$(CC)
$(KBUILD_CFLAGS)
-print-libgcc-file-name
)
export
LIBGCC
ifdef
CONFIG_64BIT
ifdef
CONFIG_64BIT
UTS_MACHINE
:=
parisc64
UTS_MACHINE
:=
parisc64
CHECKFLAGS
+=
-D__LP64__
=
1
-m64
CHECKFLAGS
+=
-D__LP64__
=
1
-m64
CC_ARCHES
=
hppa64
CC_ARCHES
=
hppa64
LD_BFD
:=
elf64-hppa-linux
else
# 32-bit
else
# 32-bit
CC_ARCHES
=
hppa hppa2.0 hppa1.1
CC_ARCHES
=
hppa hppa2.0 hppa1.1
LD_BFD
:=
elf32-hppa-linux
endif
endif
export
LD_BFD
ifneq
($(SUBARCH),$(UTS_MACHINE))
ifneq
($(SUBARCH),$(UTS_MACHINE))
ifeq
($(CROSS_COMPILE),)
ifeq
($(CROSS_COMPILE),)
CC_SUFFIXES
=
linux linux-gnu unknown-linux-gnu
CC_SUFFIXES
=
linux linux-gnu unknown-linux-gnu
...
@@ -88,6 +93,8 @@ libs-y += arch/parisc/lib/ $(LIBGCC)
...
@@ -88,6 +93,8 @@ libs-y += arch/parisc/lib/ $(LIBGCC)
drivers-$(CONFIG_OPROFILE)
+=
arch
/parisc/oprofile/
drivers-$(CONFIG_OPROFILE)
+=
arch
/parisc/oprofile/
boot
:=
arch
/parisc/boot
PALO
:=
$(
shell
if
(
which palo 2>&1
)
;
then
:
;
\
PALO
:=
$(
shell
if
(
which palo 2>&1
)
;
then
:
;
\
elif
[
-x
/sbin/palo
]
;
then
echo
/sbin/palo
;
\
elif
[
-x
/sbin/palo
]
;
then
echo
/sbin/palo
;
\
fi
)
fi
)
...
@@ -116,11 +123,14 @@ INSTALL_TARGETS = zinstall install
...
@@ -116,11 +123,14 @@ INSTALL_TARGETS = zinstall install
PHONY
+=
bzImage
$(BOOT_TARGETS)
$(INSTALL_TARGETS)
PHONY
+=
bzImage
$(BOOT_TARGETS)
$(INSTALL_TARGETS)
bzImage
zImage
:
vmlinuz
zImage
:
vmlinuz
Image
:
vmlinux
Image
:
vmlinux
vmlinuz
:
vmlinux
bzImage
:
vmlinux
@
gzip
-cf
-9
$<
>
$@
$(Q)$(MAKE)
$(build)
=
$(boot)
$(boot)
/
$@
vmlinuz
:
bzImage
$(OBJCOPY)
$(boot)
/bzImage
$@
install
:
install
:
$(CONFIG_SHELL)
$(src)
/arch/parisc/install.sh
\
$(CONFIG_SHELL)
$(src)
/arch/parisc/install.sh
\
...
...
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