public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] kill i386 and x86_64 directories
@ 2007-10-25 19:56 Sam Ravnborg
  2007-10-25 20:14 ` Sam Ravnborg
  2007-10-25 20:17 ` Thomas Gleixner
  0 siblings, 2 replies; 9+ messages in thread
From: Sam Ravnborg @ 2007-10-25 19:56 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild; +Cc: sam

This series kill the old i386 and x86_64 directories.
The relevant files are moved and adapted and
Kconfig.debug was consolidated (thanks to Randy).

I had to modify both the top-lvel Makefile and the kconfig
Makefile to accomplish this. It was done in such a way that
it is trivial for other archs to use the same mechanism
should they have the need.

To solve the defconfig issue (i386 and x86_64 cannot share one)
the arch/x86/configs/ directory were introduced. This has
been used by other archs for some time now but x86 had not had
the need until now.

The Kconfig files could be consolidated much more - I only
did the minimal changes to make it work in the new place.

Total diffstat (in git format):

 Makefile                                           |    7 ++-
 arch/i386/.gitignore                               |    1 -
 arch/{i386 => x86}/Kconfig.cpu                     |    0 
 arch/{i386 => x86}/Kconfig.debug                   |   51 +++++++++++++---
 arch/{i386/Kconfig => x86/Kconfig.i386}            |    4 +-
 arch/{x86_64/Kconfig => x86/Kconfig.x86_64}        |    6 +--
 arch/x86/Makefile                                  |   16 +++++
 arch/{i386/Makefile => x86/Makefile_32}            |    7 +--
 arch/{i386/Makefile.cpu => x86/Makefile_32.cpu}    |    0 
 arch/{x86_64/Makefile => x86/Makefile_64}          |    5 +-
 .../{i386/defconfig => x86/configs/i386_defconfig} |    0 
 .../defconfig => x86/configs/x86_64_defconfig}     |    0 
 arch/x86_64/.gitignore                             |    1 -
 arch/x86_64/Kconfig.debug                          |   61 --------------------
 scripts/kconfig/Makefile                           |   35 +++++++-----
 15 files changed, 89 insertions(+), 105 deletions(-)

Patches follows.
The full serie can be pulled from:

	git://git.kernel.org/pub/scm/linux/kernel/git/sam/x86.git

Note: The serie were slightly modfied compared to the fist published
      version.

	Sam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-25 19:56 Sam Ravnborg
@ 2007-10-25 20:14 ` Sam Ravnborg
  2007-10-25 20:19   ` Kay Sievers
  2007-10-25 20:17 ` Thomas Gleixner
  1 sibling, 1 reply; 9+ messages in thread
From: Sam Ravnborg @ 2007-10-25 20:14 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild,
	Linus Torvalds

On Thu, Oct 25, 2007 at 09:56:44PM +0200, Sam Ravnborg wrote:
> This series kill the old i386 and x86_64 directories.
> The relevant files are moved and adapted and
> Kconfig.debug was consolidated (thanks to Randy).
> 
> I had to modify both the top-lvel Makefile and the kconfig
> Makefile to accomplish this. It was done in such a way that
> it is trivial for other archs to use the same mechanism
> should they have the need.
> 
> To solve the defconfig issue (i386 and x86_64 cannot share one)
> the arch/x86/configs/ directory were introduced. This has
> been used by other archs for some time now but x86 had not had
> the need until now.
> 
> The Kconfig files could be consolidated much more - I only
> did the minimal changes to make it work in the new place.
> 
> Total diffstat (in git format):
> 
>  Makefile                                           |    7 ++-
>  arch/i386/.gitignore                               |    1 -
>  arch/{i386 => x86}/Kconfig.cpu                     |    0 
>  arch/{i386 => x86}/Kconfig.debug                   |   51 +++++++++++++---
>  arch/{i386/Kconfig => x86/Kconfig.i386}            |    4 +-
>  arch/{x86_64/Kconfig => x86/Kconfig.x86_64}        |    6 +--
>  arch/x86/Makefile                                  |   16 +++++
>  arch/{i386/Makefile => x86/Makefile_32}            |    7 +--
>  arch/{i386/Makefile.cpu => x86/Makefile_32.cpu}    |    0 
>  arch/{x86_64/Makefile => x86/Makefile_64}          |    5 +-
>  .../{i386/defconfig => x86/configs/i386_defconfig} |    0 
>  .../defconfig => x86/configs/x86_64_defconfig}     |    0 
>  arch/x86_64/.gitignore                             |    1 -
>  arch/x86_64/Kconfig.debug                          |   61 --------------------
>  scripts/kconfig/Makefile                           |   35 +++++++-----
>  15 files changed, 89 insertions(+), 105 deletions(-)
> 

By the way I consider this -rc1 material.
Because:
1) It sort of finishes the initial merge
2) Any breakage should be easy to trigger (build breakage) and easy to fix.

It is 1) that make me say this is -rc1 materail,
 and 2) that say that this is an acceptable 'breaking the rules' patch serie.

	Sam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-25 19:56 Sam Ravnborg
  2007-10-25 20:14 ` Sam Ravnborg
@ 2007-10-25 20:17 ` Thomas Gleixner
  2007-10-26  6:23   ` Sam Ravnborg
  1 sibling, 1 reply; 9+ messages in thread
From: Thomas Gleixner @ 2007-10-25 20:17 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild

Sam,

On Thu, 25 Oct 2007, Sam Ravnborg wrote:
> This series kill the old i386 and x86_64 directories.
> The relevant files are moved and adapted and
> Kconfig.debug was consolidated (thanks to Randy).
> 
> I had to modify both the top-lvel Makefile and the kconfig
> Makefile to accomplish this. It was done in such a way that
> it is trivial for other archs to use the same mechanism
> should they have the need.
> 
> To solve the defconfig issue (i386 and x86_64 cannot share one)
> the arch/x86/configs/ directory were introduced. This has
> been used by other archs for some time now but x86 had not had
> the need until now.
> 
> The Kconfig files could be consolidated much more - I only
> did the minimal changes to make it work in the new place.

Thanks for doing this.

I think the last remaining bit to cleanup is the symlink from
arch/x86/boot/bzImage. Now that the old directories are gone it does
not make much sense to keep them alive. Andrew will survive it :)

Please send it Linus wards and feel free to add my Acked-by to all of
them.

Thanks,

	tglx


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-25 20:14 ` Sam Ravnborg
@ 2007-10-25 20:19   ` Kay Sievers
  2007-10-25 20:36     ` Sam Ravnborg
  0 siblings, 1 reply; 9+ messages in thread
From: Kay Sievers @ 2007-10-25 20:19 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild,
	Linus Torvalds

On 10/25/07, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Thu, Oct 25, 2007 at 09:56:44PM +0200, Sam Ravnborg wrote:
> > This series kill the old i386 and x86_64 directories.
> > The relevant files are moved and adapted and
> > Kconfig.debug was consolidated (thanks to Randy).
> >
> > I had to modify both the top-lvel Makefile and the kconfig
> > Makefile to accomplish this. It was done in such a way that
> > it is trivial for other archs to use the same mechanism
> > should they have the need.
> >
> > To solve the defconfig issue (i386 and x86_64 cannot share one)
> > the arch/x86/configs/ directory were introduced. This has
> > been used by other archs for some time now but x86 had not had
> > the need until now.
> >
> > The Kconfig files could be consolidated much more - I only
> > did the minimal changes to make it work in the new place.
> >
> > Total diffstat (in git format):
> >
> >  Makefile                                           |    7 ++-
> >  arch/i386/.gitignore                               |    1 -
> >  arch/{i386 => x86}/Kconfig.cpu                     |    0
> >  arch/{i386 => x86}/Kconfig.debug                   |   51 +++++++++++++---
> >  arch/{i386/Kconfig => x86/Kconfig.i386}            |    4 +-
> >  arch/{x86_64/Kconfig => x86/Kconfig.x86_64}        |    6 +--
> >  arch/x86/Makefile                                  |   16 +++++
> >  arch/{i386/Makefile => x86/Makefile_32}            |    7 +--
> >  arch/{i386/Makefile.cpu => x86/Makefile_32.cpu}    |    0
> >  arch/{x86_64/Makefile => x86/Makefile_64}          |    5 +-
> >  .../{i386/defconfig => x86/configs/i386_defconfig} |    0
> >  .../defconfig => x86/configs/x86_64_defconfig}     |    0
> >  arch/x86_64/.gitignore                             |    1 -
> >  arch/x86_64/Kconfig.debug                          |   61 --------------------
> >  scripts/kconfig/Makefile                           |   35 +++++++-----
> >  15 files changed, 89 insertions(+), 105 deletions(-)
> >
>
> By the way I consider this -rc1 material.
> Because:
> 1) It sort of finishes the initial merge
> 2) Any breakage should be easy to trigger (build breakage) and easy to fix.
>
> It is 1) that make me say this is -rc1 materail,
>  and 2) that say that this is an acceptable 'breaking the rules' patch serie.

Hey Sam,
I get this after a simple pull from your tree and a: make clean; make:
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/kernel/head_64.o: In function `early_idt_handler':
(.text.head+0x1e5): undefined reference to `early_printk'
arch/x86/kernel/head64.o: In function `x86_64_start_kernel':
head64.c:(.init.text+0xa8): undefined reference to `early_printk'
arch/x86/kernel/built-in.o: In function `early_panic':
(.text+0x9c07): undefined reference to `early_printk'
arch/x86/mm/built-in.o: In function `init_memory_mapping':
(.init.text+0xc0a): undefined reference to `early_printk'
make: *** [.tmp_vmlinux1] Error 1

Cheers,
Kay

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-25 20:19   ` Kay Sievers
@ 2007-10-25 20:36     ` Sam Ravnborg
  0 siblings, 0 replies; 9+ messages in thread
From: Sam Ravnborg @ 2007-10-25 20:36 UTC (permalink / raw)
  To: Kay Sievers
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild,
	Linus Torvalds

On Thu, Oct 25, 2007 at 10:19:40PM +0200, Kay Sievers wrote:
> > Because:
> > 1) It sort of finishes the initial merge
> > 2) Any breakage should be easy to trigger (build breakage) and easy to fix.
> >
> > It is 1) that make me say this is -rc1 materail,
> >  and 2) that say that this is an acceptable 'breaking the rules' patch serie.
> 
> Hey Sam,
> I get this after a simple pull from your tree and a: make clean; make:
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/x86/kernel/head_64.o: In function `early_idt_handler':
> (.text.head+0x1e5): undefined reference to `early_printk'
> arch/x86/kernel/head64.o: In function `x86_64_start_kernel':
> head64.c:(.init.text+0xa8): undefined reference to `early_printk'
> arch/x86/kernel/built-in.o: In function `early_panic':
> (.text+0x9c07): undefined reference to `early_printk'
> arch/x86/mm/built-in.o: In function `init_memory_mapping':
> (.init.text+0xc0a): undefined reference to `early_printk'
> make: *** [.tmp_vmlinux1] Error 1

I think this is my changes to the Kconfig.debug path
I received from Randy.

Checking....
Yup - reverting my change bring back EARLY_PRINTK wich is
always required on x86_64.

I will redo the series - and build test a bit more.
Thanks.

	Sam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
       [not found] ` <9ihlw-193-21@gated-at.bofh.it>
@ 2007-10-26  3:30   ` Bodo Eggert
  0 siblings, 0 replies; 9+ messages in thread
From: Bodo Eggert @ 2007-10-26  3:30 UTC (permalink / raw)
  To: Thomas Gleixner, Sam Ravnborg, Ingo Molnar, H. Peter Anvin, LKML,
	linux-kbuild

Thomas Gleixner <tglx@linutronix.de> wrote:

> I think the last remaining bit to cleanup is the symlink from
> arch/x86/boot/bzImage.

BTW: Is it useful to have (b)zimage under $ARCH while vmlinux is in the root
dir? (Besides being compatible to external scripts)
-- 
I always tell customers/clients the same thing:
   "Good, Fast, Cheap.  You can pick two."
        -- randem in <slrna09rui.g43.root@jade.randemmedia.com>
Friß, Spammer: 38Ewdi@3.7eggert.dyndns.org mQIC5mdv@t8x8ycg.7eggert.dyndns.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-25 20:17 ` Thomas Gleixner
@ 2007-10-26  6:23   ` Sam Ravnborg
  2007-10-26 12:01     ` Alan Cox
  2007-10-26 14:39     ` Arjan van de Ven
  0 siblings, 2 replies; 9+ messages in thread
From: Sam Ravnborg @ 2007-10-26  6:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild

On Thu, Oct 25, 2007 at 10:17:53PM +0200, Thomas Gleixner wrote:
> 
> I think the last remaining bit to cleanup is the symlink from
> arch/x86/boot/bzImage. Now that the old directories are gone it does
> not make much sense to keep them alive. Andrew will survive it :)

It is not just Andrew I'm afraid.
We got a Debian bug-report too when we did not have the symlink and I
asume this is true for several others.
We should let it stay in 2.6.24 and remove the symlink for 2.6.25 IMO.

	Sam

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-26  6:23   ` Sam Ravnborg
@ 2007-10-26 12:01     ` Alan Cox
  2007-10-26 14:39     ` Arjan van de Ven
  1 sibling, 0 replies; 9+ messages in thread
From: Alan Cox @ 2007-10-26 12:01 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild

On Fri, 26 Oct 2007 08:23:36 +0200
Sam Ravnborg <sam@ravnborg.org> wrote:

> On Thu, Oct 25, 2007 at 10:17:53PM +0200, Thomas Gleixner wrote:
> > 
> > I think the last remaining bit to cleanup is the symlink from
> > arch/x86/boot/bzImage. Now that the old directories are gone it does
> > not make much sense to keep them alive. Andrew will survive it :)
> 
> It is not just Andrew I'm afraid.
> We got a Debian bug-report too when we did not have the symlink and I
> asume this is true for several others.
> We should let it stay in 2.6.24 and remove the symlink for 2.6.25 IMO.

I would put it on the list and leave it for a couple of years so that
people using old distros have all upgraded at that point. Adrian will
remember to delete it if its on the list to go ....

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/6] kill i386 and x86_64 directories
  2007-10-26  6:23   ` Sam Ravnborg
  2007-10-26 12:01     ` Alan Cox
@ 2007-10-26 14:39     ` Arjan van de Ven
  1 sibling, 0 replies; 9+ messages in thread
From: Arjan van de Ven @ 2007-10-26 14:39 UTC (permalink / raw)
  To: Sam Ravnborg
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, LKML, linux-kbuild

On Fri, 26 Oct 2007 08:23:36 +0200
Sam Ravnborg <sam@ravnborg.org> wrote:

> On Thu, Oct 25, 2007 at 10:17:53PM +0200, Thomas Gleixner wrote:
> > 
> > I think the last remaining bit to cleanup is the symlink from
> > arch/x86/boot/bzImage. Now that the old directories are gone it does
> > not make much sense to keep them alive. Andrew will survive it :)
> 
> It is not just Andrew I'm afraid.
> We got a Debian bug-report too when we did not have the symlink and I
> asume this is true for several others.
> We should let it stay in 2.6.24 and remove the symlink for 2.6.25 IMO.

that's the worst of all things to do... either make a change in ONE go,
when you do all the changes anyway (users will remmeber 2.6.24 was the
unification kernel, but 2.6.25 breaking stuff will be a total
surprise)... or keep them around forever. As long as it works, nobody
will change the scripts.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-10-26 14:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <9ih2i-qd-15@gated-at.bofh.it>
     [not found] ` <9ihlw-193-21@gated-at.bofh.it>
2007-10-26  3:30   ` [PATCH 0/6] kill i386 and x86_64 directories Bodo Eggert
2007-10-25 19:56 Sam Ravnborg
2007-10-25 20:14 ` Sam Ravnborg
2007-10-25 20:19   ` Kay Sievers
2007-10-25 20:36     ` Sam Ravnborg
2007-10-25 20:17 ` Thomas Gleixner
2007-10-26  6:23   ` Sam Ravnborg
2007-10-26 12:01     ` Alan Cox
2007-10-26 14:39     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox