aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-01-30 07:30:04 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:04 -0500
commit9484b1eb4d05957d3114dc63026448eb66106c06 (patch)
tree335e1c7eaa5fa66ecbb0f0914c4f41ffcc3f21a7 /arch/x86
parent6378ddb592158db4b42197f1bc8666228800e379 (diff)
x86: fix make mrproper
Michael Opdenacker reported: For backward compatibility with earlier (< 2.6.24) kernels, arch/i386/boot/bzImage or arch/x86_64/boot/bzImage symbolic links to arch/x86/boot/bzImage are created when you build an x86 kernel. The arch/i386 or arch/x86_64 directories are then created for this only purpose. Issue: these generated directories and symbolic links are *not cleaned up* when you run "make mrproper" (and thus "make distclean"). This disturbs the production of patches, because the source tree is left with generated files and directories. Sam has an alternative fix: The directory is killed during make clean as opposed to make mrproper. Reported-by: Michael Opdenacker <michael-lists@free-electrons.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/Makefile_323
-rw-r--r--arch/x86/Makefile_643
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/Makefile_32 b/arch/x86/Makefile_32
index 50394da2f6c1..f806ceccff7a 100644
--- a/arch/x86/Makefile_32
+++ b/arch/x86/Makefile_32
@@ -156,7 +156,8 @@ install:
156 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install 156 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
157 157
158archclean: 158archclean:
159 $(Q)rm -rf $(objtree)/arch/i386/boot 159 $(Q)rm -rf $(objtree)/arch/i386
160 $(Q)rm -rf $(objtree)/arch/x86_64
160 $(Q)$(MAKE) $(clean)=arch/x86/boot 161 $(Q)$(MAKE) $(clean)=arch/x86/boot
161 162
162define archhelp 163define archhelp
diff --git a/arch/x86/Makefile_64 b/arch/x86/Makefile_64
index a804860022e6..93cf17769ff5 100644
--- a/arch/x86/Makefile_64
+++ b/arch/x86/Makefile_64
@@ -123,7 +123,8 @@ endif
123 $(Q)$(MAKE) $(build)=arch/x86/vdso $@ 123 $(Q)$(MAKE) $(build)=arch/x86/vdso $@
124 124
125archclean: 125archclean:
126 $(Q)rm -rf $(objtree)/arch/x86_64/boot 126 $(Q)rm -rf $(objtree)/arch/i386
127 $(Q)rm -rf $(objtree)/arch/x86_64
127 $(Q)$(MAKE) $(clean)=$(boot) 128 $(Q)$(MAKE) $(clean)=$(boot)
128 129
129define archhelp 130define archhelp