diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-27 17:31:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-27 17:31:27 -0400 |
commit | 3d87ff3e44bd2a13cbe2d2e02cc5e38953ff260f (patch) | |
tree | e045433982a9f367e9fc1fe34c845b362cadcb1c /arch | |
parent | 2caf959966d540c9a2358c6b74f67aa86248e34b (diff) | |
parent | 349101da8e1f8e5eb1476b02823da80495224485 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sparc: Add target for a stripped kernel
sparc64: Make NUMA depend upon SMP.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/Makefile | 8 | ||||
-rw-r--r-- | arch/sparc/boot/Makefile | 6 | ||||
-rw-r--r-- | arch/sparc64/Kconfig | 1 |
3 files changed, 13 insertions, 2 deletions
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 6668e6037af..9592889a6fd 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile | |||
@@ -52,20 +52,24 @@ endif | |||
52 | export INIT_Y CORE_Y DRIVERS_Y NET_Y LIBS_Y HEAD_Y kallsyms.o | 52 | export INIT_Y CORE_Y DRIVERS_Y NET_Y LIBS_Y HEAD_Y kallsyms.o |
53 | 53 | ||
54 | # Default target | 54 | # Default target |
55 | all: image | 55 | all: zImage |
56 | 56 | ||
57 | boot := arch/sparc/boot | 57 | boot := arch/sparc/boot |
58 | 58 | ||
59 | image tftpboot.img: vmlinux | 59 | image zImage tftpboot.img: vmlinux |
60 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 60 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
61 | 61 | ||
62 | archclean: | 62 | archclean: |
63 | $(Q)$(MAKE) $(clean)=$(boot) | 63 | $(Q)$(MAKE) $(clean)=$(boot) |
64 | 64 | ||
65 | # This is the image used for packaging | ||
66 | KBUILD_IMAGE := $(boot)/zImage | ||
67 | |||
65 | CLEAN_FILES += arch/$(ARCH)/boot/System.map | 68 | CLEAN_FILES += arch/$(ARCH)/boot/System.map |
66 | 69 | ||
67 | # Don't use tabs in echo arguments. | 70 | # Don't use tabs in echo arguments. |
68 | define archhelp | 71 | define archhelp |
69 | echo '* image - kernel image ($(boot)/image)' | 72 | echo '* image - kernel image ($(boot)/image)' |
73 | echo '* zImage - stripped kernel image ($(boot)/zImage)' | ||
70 | echo ' tftpboot.img - image prepared for tftp' | 74 | echo ' tftpboot.img - image prepared for tftp' |
71 | endef | 75 | endef |
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile index 22d331e1e94..3e77a9f5224 100644 --- a/arch/sparc/boot/Makefile +++ b/arch/sparc/boot/Makefile | |||
@@ -19,6 +19,9 @@ quiet_cmd_sysmap = SYSMAP $(obj)/System.map | |||
19 | cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap | 19 | cmd_sysmap = $(CONFIG_SHELL) $(srctree)/scripts/mksysmap |
20 | quiet_cmd_image = LD $@ | 20 | quiet_cmd_image = LD $@ |
21 | cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@ | 21 | cmd_image = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) -o $@ |
22 | quiet_cmd_strip = STRIP $@ | ||
23 | cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start $(obj)/image -o $@ | ||
24 | |||
22 | 25 | ||
23 | define rule_image | 26 | define rule_image |
24 | $(if $($(quiet)cmd_image), \ | 27 | $(if $($(quiet)cmd_image), \ |
@@ -49,6 +52,9 @@ LDFLAGS_image := -T arch/sparc/kernel/vmlinux.lds $(BTOBJS) \ | |||
49 | $(obj)/image: $(obj)/btfix.o FORCE | 52 | $(obj)/image: $(obj)/btfix.o FORCE |
50 | $(call if_changed_rule,image) | 53 | $(call if_changed_rule,image) |
51 | 54 | ||
55 | $(obj)/zImage: $(obj)/image | ||
56 | $(call if_changed,strip) | ||
57 | |||
52 | $(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE | 58 | $(obj)/tftpboot.img: $(obj)/piggyback $(obj)/System.map $(obj)/image FORCE |
53 | $(call if_changed,elftoaout) | 59 | $(call if_changed,elftoaout) |
54 | $(call if_changed,piggy) | 60 | $(call if_changed,piggy) |
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig index 923a98959fa..36b4b7ab9cf 100644 --- a/arch/sparc64/Kconfig +++ b/arch/sparc64/Kconfig | |||
@@ -231,6 +231,7 @@ endmenu | |||
231 | 231 | ||
232 | config NUMA | 232 | config NUMA |
233 | bool "NUMA support" | 233 | bool "NUMA support" |
234 | depends on SMP | ||
234 | 235 | ||
235 | config NODES_SHIFT | 236 | config NODES_SHIFT |
236 | int | 237 | int |