From 498b59b2f395482195e96b6362354e773a0cf142 Mon Sep 17 00:00:00 2001
From: Thomas Chou <thomas@wytron.com.tw>
Date: Mon, 26 Nov 2007 15:01:32 +0800
Subject: [PATCH] nios2: clean up compressed targets

Update clean rules, because files in arch/nios2nommu/boot/compressed were not cleaned.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>

diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile
index ca139b6..632f049 100644
--- a/linux-2.6.x/arch/nios2nommu/Makefile
+++ b/linux-2.6.x/arch/nios2nommu/Makefile
@@ -97,7 +97,7 @@ endif
 
 head-y := arch/nios2nommu/kernel/head.o arch/nios2nommu/kernel/init_task.o
 
-CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
+CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h \
 	       $(HARDWARE_MK) \
 	       arch/$(ARCH)/kernel/asm-offsets.s \
 	       linux.srec \
@@ -145,7 +145,7 @@ hwselect:
 prepare: include/nios2_system.h
 
 archclean:
-	$(call descend arch/$(ARCH)/boot, subdirclean)
+	@$(MAKE) $(clean)=arch/$(ARCH)/boot
 
 define filechk_nios2_system.h
 	# call perl script that will build nios2_system.h file
-- 
1.5.3.3

