Makefile (9fec6060d9e48ed7db0dac0e16d0f0f0e615b7f6) Makefile (349101da8e1f8e5eb1476b02823da80495224485)
1# Makefile for the Sparc boot stuff.
2#
3# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
4# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
5
6ROOT_IMG := /usr/src/root.img
7ELFTOAOUT := elftoaout
8

--- 5 unchanged lines hidden (view full) ---

14quiet_cmd_piggy = PIGGY $@
15 cmd_piggy = $(obj)/piggyback $@ $(obj)/System.map $(ROOT_IMG)
16quiet_cmd_btfix = BTFIX $@
17 cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@
18quiet_cmd_sysmap = SYSMAP $(obj)/System.map
19 cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap
20quiet_cmd_image = LD $@
21 cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@
1# Makefile for the Sparc boot stuff.
2#
3# Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
4# Copyright (C) 1997,1998 Jakub Jelinek (jj@ultra.linux.cz)
5
6ROOT_IMG := /usr/src/root.img
7ELFTOAOUT := elftoaout
8

--- 5 unchanged lines hidden (view full) ---

14quiet_cmd_piggy = PIGGY $@
15 cmd_piggy = $(obj)/piggyback $@ $(obj)/System.map $(ROOT_IMG)
16quiet_cmd_btfix = BTFIX $@
17 cmd_btfix = $(OBJDUMP) -x vmlinux | $(obj)/btfixupprep > $@
18quiet_cmd_sysmap = SYSMAP $(obj)/System.map
19 cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap
20quiet_cmd_image = LD $@
21 cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@
22quiet_cmd_strip = STRIP $@
23 cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $(obj)/image -o $@
22
24
25
23define rule_image
24 $(if $($(quiet)cmd_image), \
25 echo ' $($(quiet)cmd_image)' &&) \
26 $(cmd_image); \
27 $(if $($(quiet)cmd_sysmap), \
28 echo ' $($(quiet)cmd_sysmap)' &&) \
29 $(cmd_sysmap) $@ $(obj)/System.map; \
30 if [ $$? -ne 0 ]; then \

--- 13 unchanged lines hidden (view full) ---

44# This is a replacement for the link done in the top-level Makefile.
45# Note: No dependency on the prerequisite files since that would require
46# make to try check if they are updated - and due to changes
47# in gcc options (path for example) this would result in
48# these files being recompiled for each build.
49$(obj)/image: $(obj)/btfix.o FORCE
50 $(call if_changed_rule,image)
51
26define rule_image
27 $(if $($(quiet)cmd_image), \
28 echo ' $($(quiet)cmd_image)' &&) \
29 $(cmd_image); \
30 $(if $($(quiet)cmd_sysmap), \
31 echo ' $($(quiet)cmd_sysmap)' &&) \
32 $(cmd_sysmap) $@ $(obj)/System.map; \
33 if [ $$? -ne 0 ]; then \

--- 13 unchanged lines hidden (view full) ---

47# This is a replacement for the link done in the top-level Makefile.
48# Note: No dependency on the prerequisite files since that would require
49# make to try check if they are updated - and due to changes
50# in gcc options (path for example) this would result in
51# these files being recompiled for each build.
52$(obj)/image: $(obj)/btfix.o FORCE
53 $(call if_changed_rule,image)
54
55$(obj)/zImage: $(obj)/image
56 $(call if_changed,strip)
57
52$(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE
53 $(call if_changed,elftoaout)
54 $(call if_changed,piggy)
55
56$(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE
57 $(call if_changed,btfix)
58$(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE
59 $(call if_changed,elftoaout)
60 $(call if_changed,piggy)
61
62$(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE
63 $(call if_changed,btfix)