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
3ce50dce
Commit
3ce50dce
authored
Jan 02, 2003
by
Pete Zaitcev
Committed by
David S. Miller
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add Ravnborg Makefile cleanups.
parent
773b54d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
43 deletions
+37
-43
arch/sparc/Makefile
arch/sparc/Makefile
+10
-11
arch/sparc/boot/Makefile
arch/sparc/boot/Makefile
+25
-28
arch/sparc/kernel/Makefile
arch/sparc/kernel/Makefile
+2
-4
No files found.
arch/sparc/Makefile
View file @
3ce50dce
...
@@ -53,27 +53,26 @@ NET_Y := $(patsubst %/, %/built-in.o, $(net-y))
...
@@ -53,27 +53,26 @@ NET_Y := $(patsubst %/, %/built-in.o, $(net-y))
LIBS_Y
:=
$(
patsubst
%/, %/lib.a,
$
(
libs-y
))
LIBS_Y
:=
$(
patsubst
%/, %/lib.a,
$
(
libs-y
))
export
INIT_Y
CORE_Y
DRIVERS_Y
NET_Y
LIBS_Y
HEAD
export
INIT_Y
CORE_Y
DRIVERS_Y
NET_Y
LIBS_Y
HEAD
image
:
vmlinux
makeboot
=
$(Q)$(MAKE)
-f
scripts/Makefile.build
obj
=
arch
/
$(ARCH)
/boot
$(1)
$(MAKE)
-C
arch
/sparc/boot image
image tftpboot.img
:
vmlinux
$(
call
makeboot,arch/sparc/boot/
$@
)
archclean
:
archclean
:
rm
-f
$(TOPDIR)
/vmlinux.aout
$(Q)$(MAKE)
-f
scripts/Makefile.clean
obj
=
arch
/
$(ARCH)
/boot
-
$(MAKE)
-C
arch
/sparc/boot clean
archmrproper
:
archmrproper
:
rm
-f
$(TOPDIR)
/include/asm-sparc/asm_offsets.h
prepare
:
include/asm-$(ARCH)/asm_offsets.h
prepare
:
include/asm-$(ARCH)/asm_offsets.h
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
arch/$(ARCH)/kernel/asm-offsets.s
:
include/asm include/linux/version.h
\
include/config/MARKER
include/config/MARKER
include/asm-$(ARCH)/asm_offsets.h.tmp
:
arch/$(ARCH)/kernel/asm-offsets.s
include/asm-$(ARCH)/asm_offsets.h
:
arch/$(ARCH)/kernel/asm-offsets.s
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
include/asm-$(ARCH)/asm_offsets.h
:
include/asm-$(ARCH)/asm_offsets.h.tmp
@
echo
-n
' Generating $@'
@
echo
-n
' Generating $@'
@
$
(
generate-asm-offsets.h
)
<
$<
>
$@
.tmp
@
$
(
update-if-changed
)
@
$
(
update-if-changed
)
tftpboot.img
:
CLEAN_FILES
+=
include/asm-
$(ARCH)
/asm_offsets.h.tmp
\
$(MAKE)
-C
arch
/sparc/boot tftpboot.img
include/asm-
$(ARCH)
/asm_offsets.h
\
arch
/
$(ARCH)
/kernel/asm-offsets.s
arch/sparc/boot/Makefile
View file @
3ce50dce
...
@@ -4,38 +4,35 @@
...
@@ -4,38 +4,35 @@
# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
ROOT_IMG
=
/usr/src/root.img
ROOT_IMG
:=
/usr/src/root.img
ELFTOAOUT
=
elftoaout
ELFTOAOUT
:=
elftoaout
all
:
btfix.o
host-progs
:=
piggyback btfixupprep
EXTRA_TARGETS
:=
tftpboot.img btfix.o btfix.s image
tftpboot.img
:
piggyback
quiet_cmd_elftoaout
=
ELFTOAOUT
$@
$(ELFTOAOUT)
$(TOPDIR)
/vmlinux
-o
tftpboot.img
cmd_elftoaout
=
$(ELFTOAOUT)
$(obj)
/image
-o
$@
./piggyback tftpboot.img
$(TOPDIR)
/System.map
$(ROOT_IMG)
quiet_cmd_piggy
=
PIGGY
$@
cmd_piggy
=
$(obj)
/piggyback
$@
$(obj)
/System.map
$(ROOT_IMG)
piggyback
:
piggyback.c
quiet_cmd_btfix
=
BTFIX
$@
$(HOSTCC)
$(HOSTCFLAGS)
-o
piggyback piggyback.c
cmd_btfix
=
$(OBJDUMP)
-x
vmlinux |
$(obj)
/btfixupprep
>
$@
btfixupprep
:
btfixupprep.c
$(HOSTCC)
$(HOSTCFLAGS)
-o
btfixupprep btfixupprep.c
clean
:
rm
-f
btfixupprep piggyback tftpboot.img btfix.o btfix.s image
BTOBJS
:=
$(HEAD)
$(INIT_Y)
BTOBJS
:=
$(HEAD)
$(INIT_Y)
BTLIBS
:=
$(CORE_Y)
$(LIBS_Y)
$(DRIVERS_Y)
$(NET_Y)
BTLIBS
:=
$(CORE_Y)
$(LIBS_Y)
$(DRIVERS_Y)
$(NET_Y)
LDFLAGS_image
:=
-T
arch
/sparc/vmlinux.lds.s
$(BTOBJS)
--start-group
$(BTLIBS)
--end-group
# Actual linking
# Actual linking
image
:
btfix.o
$(obj)/image
:
$(obj)/btfix.o FORCE
$(LD)
$(LDFLAGS)
-T
../vmlinux.lds.s
\
$(
call
if_changed,ld
)
$(
patsubst
%,
$(TOPDIR)
/%,
$(BTOBJS)
)
\
$(NM)
$@
|
grep
-v
'\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)'
|
sort
>
$(obj)
/System.map
--start-group
\
$(
patsubst
%,
$(TOPDIR)
/%,
$(BTLIBS)
)
\
$(obj)/tftpboot.img
:
$(obj)/piggyback $(obj)/System.map $(obj)/image FORCE
btfix.o
\
$(
call
if_changed,elftoaout
)
--end-group
-o
image
$(
call
if_changed,piggy
)
btfix.s
:
btfixupprep $(TOPDIR)/vmlinux
$(obj)/btfix.s
:
$(obj)/btfixupprep vmlinux FORCE
$(OBJDUMP)
-x
$(TOPDIR)
/vmlinux | ./btfixupprep
>
btfix.s
$(
call
if_changed,btfix
)
btfix.o
:
btfix.s
archhelp
:
$(CC)
-c
-o
btfix.o btfix.s
@
echo
'* image - kernel image (
$(obj)
/image)'
@
echo
' tftpboot.img - image prepared for tftp'
arch/sparc/kernel/Makefile
View file @
3ce50dce
...
@@ -2,15 +2,13 @@
...
@@ -2,15 +2,13 @@
# Makefile for the linux kernel.
# Makefile for the linux kernel.
#
#
SH
=
$(CONFIG_SHELL)
EXTRA_TARGETS
:=
head.o init_task.o
EXTRA_TARGETS
:=
head.o init_task.o
EXTRA_AFLAGS
:=
-ansi
EXTRA_AFLAGS
:=
-ansi
export-objs
:=
sparc_ksyms.o
export-objs
:=
sparc_ksyms.o
IRQ_OBJS
:=
irq.o sun4m_irq.o sun4c_irq.o sun4d_irq.o
IRQ_OBJS
:=
irq.o sun4m_irq.o sun4c_irq.o sun4d_irq.o
obj-y
:=
entry.o wof.o wuf.o etrap.o rtrap.o traps.o
$
{IRQ_OBJS}
\
obj-y
:=
entry.o wof.o wuf.o etrap.o rtrap.o traps.o
$
(IRQ_OBJS)
\
process.o signal.o ioport.o setup.o idprom.o
\
process.o signal.o ioport.o setup.o idprom.o
\
sys_sparc.o sunos_asm.o systbls.o
\
sys_sparc.o sunos_asm.o systbls.o
\
time.o windows.o cpu.o devices.o sclow.o
\
time.o windows.o cpu.o devices.o sclow.o
\
...
...
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