Re: Linux v2.6.27-rc1

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Date: Tuesday, July 29, 2008 - 6:30 pm

On Tue, Jul 29, 2008 at 03:03:47PM -0700, Linus Torvalds wrote:

I agree that we do this to combine all arch files. But we then have the
possibility to get rid of some build stuff that is fragile and needs
special care for O=.. builds etc.
So when we anyway do the renames I saw the opportunity to go one step
further.
Lets see how the x86 + um stuff looks like.

For x86 alone the patchs looks like this:

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index f5631da..c7493e7 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -110,16 +110,16 @@ KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,)
 mcore-y  := arch/x86/mach-default/
 
 # Voyager subarch support
-mflags-$(CONFIG_X86_VOYAGER)	:= -Iinclude/asm-x86/mach-voyager
+mflags-$(CONFIG_X86_VOYAGER)	:= -Iarch/x86/include/mach-voyager
 mcore-$(CONFIG_X86_VOYAGER)	:= arch/x86/mach-voyager/
 
 # generic subarchitecture
-mflags-$(CONFIG_X86_GENERICARCH):= -Iinclude/asm-x86/mach-generic
+mflags-$(CONFIG_X86_GENERICARCH):= -Iarch/x86/include/mach-generic
 fcore-$(CONFIG_X86_GENERICARCH)	+= arch/x86/mach-generic/
 mcore-$(CONFIG_X86_GENERICARCH)	:= arch/x86/mach-default/
 
 # default subarch .h files
-mflags-y += -Iinclude/asm-x86/mach-default
+mflags-y += -Iarch/x86/include/mach-default
 
 # 64 bit does not support subarch support - clear sub arch variables
 fcore-$(CONFIG_X86_64)  :=

And the script to move the files looks like this:
set -e
for D in include/asm-x86/mach-*; do
	echo $D
	DD=$(echo $D | cut -d '-' -f 3)
        mkdir -p arch/x86/include/mach-$DD/arch
        git mv include/asm-x86/mach-$DD/* arch/x86/include/mach-$DD
        rmdir include/asm-x86/mach-$DD
done

mkdir -p arch/x86/include/asm
git mv include/asm-x86/* arch/x86/include/asm

But I have not yet looked at um.

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux v2.6.27-rc1, Linus Torvalds, (Mon Jul 28, 11:23 pm)
Linux v2.6.27-rc1: fails to compile, Grant Coady, (Tue Jul 29, 6:03 pm)
Re: Linux v2.6.27-rc1: fails to compile, Frederik Deweerdt, (Tue Jul 29, 6:40 pm)
Re: Linux v2.6.27-rc1: fails to compile, Grant Coady, (Tue Jul 29, 7:46 pm)
Re: Linux v2.6.27-rc1, Sam Ravnborg, (Tue Jul 29, 5:37 pm)
Re: Linux v2.6.27-rc1, Linus Torvalds, (Tue Jul 29, 5:42 pm)
Re: Linux v2.6.27-rc1, Sam Ravnborg, (Tue Jul 29, 5:59 pm)
Re: Linux v2.6.27-rc1, Linus Torvalds, (Tue Jul 29, 6:03 pm)
Re: Linux v2.6.27-rc1, Sam Ravnborg, (Tue Jul 29, 6:30 pm)
Re: Linux v2.6.27-rc1: problem with firmware stuff, Rafael J. Wysocki, (Tue Jul 29, 4:49 pm)
Re: Linux v2.6.27-rc1: problem with firmware stuff, Rafael J. Wysocki, (Tue Jul 29, 5:01 pm)
Re: Linux v2.6.27-rc1: problem with firmware stuff, Linus Torvalds, (Tue Jul 29, 5:01 pm)
Re: Linux v2.6.27-rc1: problem with firmware stuff, David Woodhouse, (Tue Jul 29, 6:26 pm)
Re: Linux v2.6.27-rc1, Jesse Barnes, (Tue Jul 29, 12:27 pm)
Re: Linux v2.6.27-rc1, Linus Torvalds, (Tue Jul 29, 12:59 pm)
Re: Linux v2.6.27-rc1, Andrew Morton, (Wed Jul 30, 5:03 am)
Re: Linux v2.6.27-rc1: linux-next, Rafael J. Wysocki, (Thu Jul 31, 6:22 pm)
Re: Linux v2.6.27-rc1, Roland Dreier, (Tue Jul 29, 1:31 pm)
Oops in microcode sysfs registration,, Alistair John Strachan, (Tue Jul 29, 9:57 am)
Re: Oops in microcode sysfs registration,, Pekka Paalanen, (Tue Jul 29, 12:22 pm)
Re: Oops in microcode sysfs registration,, Alistair John Strachan, (Tue Jul 29, 12:50 pm)
Re: Oops in microcode sysfs registration,, Dmitry Adamushko, (Wed Jul 30, 5:07 am)
Re: Oops in microcode sysfs registration,, Dmitry Adamushko, (Wed Jul 30, 6:35 am)
Re: Oops in microcode sysfs registration,, Ingo Molnar, (Thu Jul 31, 12:56 pm)
Re: Oops in microcode sysfs registration,, Dmitry Adamushko, (Thu Jul 31, 3:52 pm)
Re: Oops in microcode sysfs registration,, Dmitry Adamushko, (Thu Jul 31, 3:55 pm)
Re: Oops in microcode sysfs registration,, Alistair John Strachan, (Thu Jul 31, 8:49 am)
Re: Oops in microcode sysfs registration,, Peter Oruba, (Wed Jul 30, 9:28 am)
2.6.27-rc1: zd1211rw association fails, Alistair John Strachan, (Tue Jul 29, 5:49 am)
Re: 2.6.27-rc1: zd1211rw association fails, Johannes Berg, (Tue Jul 29, 6:09 am)
Re: 2.6.27-rc1: zd1211rw association fails, Theodore Tso, (Tue Jul 29, 8:04 am)
Re: 2.6.27-rc1: zd1211rw association fails, Johannes Berg, (Tue Jul 29, 8:09 am)
Re: 2.6.27-rc1: zd1211rw association fails, Johannes Berg, (Tue Jul 29, 8:15 am)
Re: 2.6.27-rc1: zd1211rw association fails, John W. Linville, (Tue Jul 29, 1:52 pm)
Re: 2.6.27-rc1: zd1211rw association fails, David Miller, (Wed Jul 30, 12:48 am)
Re: 2.6.27-rc1: zd1211rw association fails, Theodore Tso, (Tue Jul 29, 11:18 am)
Re: 2.6.27-rc1: zd1211rw association fails, Alistair John Strachan, (Tue Jul 29, 7:25 am)
Re: 2.6.27-rc1: zd1211rw association fails, Johannes Berg, (Tue Jul 29, 7:26 am)
Re: 2.6.27-rc1: zd1211rw association fails, Alistair John Strachan, (Tue Jul 29, 7:55 am)
Re: 2.6.27-rc1: zd1211rw association fails, Kalle Valo, (Tue Jul 29, 7:46 am)
Re: 2.6.27-rc1: zd1211rw association fails, Hugh Dickins, (Tue Jul 29, 7:37 am)
Re: Linux v2.6.27-rc1, Nick Piggin, (Tue Jul 29, 12:01 am)