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
059edde4
Commit
059edde4
authored
Nov 19, 2002
by
Sam Ravnborg
Committed by
David S. Miller
Nov 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use kbuild more consistently, add archhelp target.
parent
344fb053
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
arch/sparc64/Makefile
arch/sparc64/Makefile
+5
-7
arch/sparc64/boot/Makefile
arch/sparc64/boot/Makefile
+20
-10
No files found.
arch/sparc64/Makefile
View file @
059edde4
...
...
@@ -33,7 +33,7 @@ AS := $(AS) -64
LDFLAGS
:=
-m
elf64_sparc
LDFLAGS_BLOB
:=
--format
binary
--oformat
elf64-sparc
endif
ELFTOAOUT
=
elftoaout
ifneq
($(UNDECLARED_REGS),y)
CC_UNDECL
=
else
...
...
@@ -63,13 +63,11 @@ core-$(CONFIG_SOLARIS_EMUL) += arch/sparc64/solaris/
core-y
+=
arch
/sparc64/math-emu/
libs-y
+=
arch
/sparc64/prom/
arch
/sparc64/lib/
vmlinux.aout
:
vmlinux
$(ELFTOAOUT)
-o
$(TOPDIR)
/vmlinux.aout
$(TOPDIR)
/vmlinux
makeboot
=
$(Q)$(MAKE)
-f
scripts/Makefile.build
obj
=
arch
/sparc64/boot
$(1)
archclean
:
rm
-f
$(TOPDIR)
/vmlinux.aout
tftpboot.img vmlinux.aout
:
$(
call
makeboot,arch/sparc64/boot/
$@
)
archmrproper
:
archclean
:
tftpboot.img
:
$(MAKE)
-C
arch
/sparc64/boot tftpboot.img
arch/sparc64/boot/Makefile
View file @
059edde4
...
...
@@ -4,17 +4,27 @@
# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
# Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
ROOT_IMG
=
/usr/src/root.img
ELFTOAOUT
=
elftoaout
ROOT_IMG
:=
/usr/src/root.img
ELFTOAOUT
:=
elftoaout
all
:
boot
host-progs
:=
piggyback
EXTRA_TARGETS
:=
tftpboot.img vmlinux.aout
boot
:
@
echo
"Nothing special to be done for 'boot' on Linux/UltraSPARC."
quiet_cmd_elftoaout
=
ELT2AOUT
$@
cmd_elftoaout
=
$(ELFTOAOUT)
vmlinux
-o
$@
quiet_cmd_piggy
=
PIGGY
$@
cmd_piggy
=
$(obj)
/piggyback
$@
System.map
$(ROOT_IMG)
tftpboot.img
:
piggyback $(TOPDIR)/vmlinux $(ROOT_IMG)
$(ELFTOAOUT)
$(TOPDIR)
/vmlinux
-o
tftpboot.img
./piggyback tftpboot.img
$(TOPDIR)
/System.map
$(ROOT_IMG)
$(obj)/tftpboot.img
:
$(obj)/piggyback System.map vmlinux $(ROOT_IMG) FORCE
$(
call
if_changed,elftoaout
)
$(
call
if_changed,piggy
)
@
echo
' kernel: $@ is ready'
piggyback
:
piggyback.c
$(HOSTCC)
$(HOSTCFLAGS)
-o
piggyback piggyback.c
$(obj)/vmlinux.aout
:
vmlinux FORCE
$(
call
if_changed,elftoaout
)
@
echo
' kernel: $@ is ready'
archhelp
:
@
echo
'* vmlinux - Standard sparc64 kernel'
@
echo
' vmlinux.aout - a.out kernel for sparc64'
@
echo
' tftpboot.img - Image prepared for tftp'
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