summaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/Makefile2
-rw-r--r--arch/sparc/boot/Makefile3
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index 43db7e1d533..9c4c8b8b451 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -58,8 +58,6 @@ archclean:
# This is the image used for packaging
KBUILD_IMAGE := $(boot)/zImage
-CLEAN_FILES += arch/$(ARCH)/boot/System.map
-
# Don't use tabs in echo arguments.
define archhelp
echo '* image - kernel image ($(boot)/image)'
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile
index 4fd562034a7..06b653df820 100644
--- a/arch/sparc/boot/Makefile
+++ b/arch/sparc/boot/Makefile
@@ -7,7 +7,8 @@ ROOT_IMG := /usr/src/root.img
ELFTOAOUT := elftoaout
hostprogs-y := piggyback btfixupprep
-targets := tftpboot.img btfix.o btfix.S image
+targets := tftpboot.img btfix.o btfix.S image zImage
+clean-files := System.map
quiet_cmd_elftoaout = ELFTOAOUT $@
cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@