Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > media > contrib-testing-src > by-pkgid > af55b0715b6e12cd315b30d7fe810011 > files > 5

kernel-tmb-2.6.34.6-1mdv2010.1.src.rpm

diff -Nurp linux-2.6.33-rc1/Kbuild linux-2.6.33-rc1-t1/Kbuild
--- linux-2.6.33-rc1/Kbuild	2009-12-18 12:58:07.107877160 +0200
+++ linux-2.6.33-rc1-t1/Kbuild	2009-12-18 14:05:15.161375570 +0200
@@ -10,8 +10,8 @@
 
 bounds-file := include/generated/bounds.h
 
-always  := $(bounds-file)
-targets := $(bounds-file) kernel/bounds.s
+always_noclean := $(bounds-file)
+targets := kernel/bounds.s
 
 quiet_cmd_bounds = GEN     $@
 define cmd_bounds
@@ -45,8 +45,7 @@ $(obj)/$(bounds-file): kernel/bounds.s K
 
 offsets-file := include/generated/asm-offsets.h
 
-always  += $(offsets-file)
-targets += $(offsets-file)
+always_noclean += $(offsets-file)
 targets += arch/$(SRCARCH)/kernel/asm-offsets.s
 
 
@@ -93,6 +92,3 @@ quiet_cmd_syscalls = CALL    $<
 PHONY += missing-syscalls
 missing-syscalls: scripts/checksyscalls.sh FORCE
 	$(call cmd,syscalls)
-
-# Delete all targets during make clean
-clean-files := $(addprefix $(objtree)/,$(filter-out $(bounds-file) $(offsets-file),$(targets)))
diff -Nurp linux-2.6.33-rc1/scripts/Makefile.build linux-2.6.33-rc1-t1/scripts/Makefile.build
--- linux-2.6.33-rc1/scripts/Makefile.build	2009-12-18 12:58:15.975876655 +0200
+++ linux-2.6.33-rc1-t1/scripts/Makefile.build	2009-12-18 14:05:15.171875553 +0200
@@ -15,6 +15,7 @@ obj-m :=
 lib-y :=
 lib-m :=
 always :=
+always_noclean :=
 targets :=
 subdir-y :=
 subdir-m :=
@@ -92,7 +93,7 @@ modorder-target := $(obj)/modules.order
 
 __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \
 	 $(if $(KBUILD_MODULES),$(obj-m) $(modorder-target)) \
-	 $(subdir-ym) $(always)
+	 $(subdir-ym) $(always) $(always_noclean)
 	@:
 
 # Linus' kernel sanity checking tool
@@ -266,7 +267,7 @@ $(obj)/%.o: $(src)/%.S FORCE
 	$(call if_changed_dep,as_o_S)
 
 targets += $(real-objs-y) $(real-objs-m) $(lib-y)
-targets += $(extra-y) $(MAKECMDGOALS) $(always)
+targets += $(extra-y) $(MAKECMDGOALS) $(always) $(always_noclean)
 
 # Linker scripts preprocessor (.lds.S -> .lds)
 # ---------------------------------------------------------------------------