Skip to contentSkip to conversation

Don't clean bounds.h and asm-offsets.h

PATCH New Jan Blunck 1 participant 1 message May 16, 2008 Kbuild

lore
Share & tools
lore

Jan Blunck

author
#0 lore raw

PATCH 1/1 Don't clean bounds.h and asm-offsets.h

Since 97965478a66fbdf0f4ad5e4ecc4828f0cb548a45 mmzone.h includes bounds.h. Calling make clean after make prepare removes bounds.h again so when building external modules this fails.

--

Kbuild +1 -2
index 32f19c5..e750e9c 100644
@@ -96,5 +96,4 @@ missing-syscalls: scripts/checksyscalls.sh FORCE
 	$(call cmd,syscalls)
 
 # Delete all targets during make clean
-clean-files := $(addprefix $(objtree)/,$(targets))
-
+clean-files := $(addprefix $(objtree)/,$(filter-out $(bounds-file) $(offsets-file),$(targets)))
Makefile +1 -0
index 3140145..c1c9ed1 100644
@@ -1114,6 +1114,7 @@ MRPROPER_DIRS  += include/config include2 usr/include
 MRPROPER_FILES += .config .config.old include/asm .version .old_version \
                   include/linux/autoconf.h include/linux/version.h      \
                   include/linux/utsrelease.h                            \
+                  include/linux/bounds.h include/asm*/asm-offsets.h     \
 		  Module.symvers tags TAGS cscope*
 
 # clean - Delete most, but leave enough to build external modules