linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i386 requires x86_64?
@ 2006-01-31  3:10 L. A. Walsh
  2006-01-31  3:31 ` Randy.Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: L. A. Walsh @ 2006-01-31  3:10 UTC (permalink / raw)
  To: Linux-Kernel

Generating a new kernel and wanted to delete the unrelated architectures.

Is the i386 supposed to depend on the the x86_64 architecture?

In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or 
directory
arch/i386/kernel/acpi/earlyquirk.c: In function `check_acpi_pci':
arch/i386/kernel/acpi/earlyquirk.c:34: warning: implicit declaration of 
function `read_pci_config'
make[2]: *** [arch/i386/kernel/acpi/earlyquirk.o] Error 1
make[1]: *** [arch/i386/kernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2
make: *** Waiting for unfinished jobs....

I'm generating for a pentium-3 based computer.  Should that
include x86_64 bits?

Thanks,
Linda

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

* Re: i386 requires x86_64?
  2006-01-31  3:10 i386 requires x86_64? L. A. Walsh
@ 2006-01-31  3:31 ` Randy.Dunlap
  2006-01-31 13:02   ` Steven Rostedt
  2006-01-31  3:34 ` Nish Aravamudan
  2006-01-31  8:54 ` Jesper Juhl
  2 siblings, 1 reply; 7+ messages in thread
From: Randy.Dunlap @ 2006-01-31  3:31 UTC (permalink / raw)
  To: L. A. Walsh; +Cc: linux-kernel

On Mon, 30 Jan 2006 19:10:42 -0800 L. A. Walsh wrote:

> Generating a new kernel and wanted to delete the unrelated architectures.
> 
> Is the i386 supposed to depend on the the x86_64 architecture?
> 
> In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
> include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or 
> directory
> arch/i386/kernel/acpi/earlyquirk.c: In function `check_acpi_pci':
> arch/i386/kernel/acpi/earlyquirk.c:34: warning: implicit declaration of 
> function `read_pci_config'
> make[2]: *** [arch/i386/kernel/acpi/earlyquirk.o] Error 1
> make[1]: *** [arch/i386/kernel/acpi] Error 2
> make: *** [arch/i386/kernel] Error 2
> make: *** Waiting for unfinished jobs....
> 
> I'm generating for a pentium-3 based computer.  Should that
> include x86_64 bits?

Yes, there are bits in i386 that use x86_64 and there are
bits in x86_64 that use i386 code, so that the source code
won't have to be duplicated.


---
~Randy

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

* Re: i386 requires x86_64?
  2006-01-31  3:10 i386 requires x86_64? L. A. Walsh
  2006-01-31  3:31 ` Randy.Dunlap
@ 2006-01-31  3:34 ` Nish Aravamudan
  2006-01-31  8:54 ` Jesper Juhl
  2 siblings, 0 replies; 7+ messages in thread
From: Nish Aravamudan @ 2006-01-31  3:34 UTC (permalink / raw)
  To: L. A. Walsh; +Cc: Linux-Kernel

On 1/30/06, L. A. Walsh <lkml@tlinx.org> wrote:
> Generating a new kernel and wanted to delete the unrelated architectures.
>
> Is the i386 supposed to depend on the the x86_64 architecture?
>
> In file included from arch/i386/kernel/acpi/earlyquirk.c:8:
> include/asm/pci-direct.h:1:35: asm-x86_64/pci-direct.h: No such file or
> directory

You didn't say which kernel, but it looks like you didn't do a make
clean/mrproper before trying to build just an i386 kernel? Did you
build an x86_64 kernel at some point from the same tree?

I think that include/asm is pointing to asm-x86_64, which, if you
removed it, is why the compiler can't find said file.

Thanks,
Nish

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

* Re: i386 requires x86_64?
  2006-01-31  3:10 i386 requires x86_64? L. A. Walsh
  2006-01-31  3:31 ` Randy.Dunlap
  2006-01-31  3:34 ` Nish Aravamudan
@ 2006-01-31  8:54 ` Jesper Juhl
  2006-01-31 13:17   ` Steven Rostedt
  2 siblings, 1 reply; 7+ messages in thread
From: Jesper Juhl @ 2006-01-31  8:54 UTC (permalink / raw)
  To: L. A. Walsh; +Cc: Linux-Kernel

On 1/31/06, L. A. Walsh <lkml@tlinx.org> wrote:
> Generating a new kernel and wanted to delete the unrelated architectures.
>

Why bother deleting parts of the code?
The kernel you build will only contain code for the architecture you
build for anyway. Sure, the extra source takes up a little space on
disk but if that bothers you you could just delete (or tar+bzip2) the
entire source tree after you build and install your new kernel.

--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

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

* Re: i386 requires x86_64?
  2006-01-31  3:31 ` Randy.Dunlap
@ 2006-01-31 13:02   ` Steven Rostedt
  2006-02-01  2:56     ` L. A. Walsh
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Rostedt @ 2006-01-31 13:02 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel, L. A. Walsh

On Mon, 2006-01-30 at 19:31 -0800, Randy.Dunlap wrote:

> 
> Yes, there are bits in i386 that use x86_64 and there are
> bits in x86_64 that use i386 code, so that the source code
> won't have to be duplicated.

Perhaps we need an arch/x86_common that has this code.  Not just to help
those that like to delete other archs, but also to make it easier for us
that might modify the code and know that this code is shared.  It's
better design to have a arch/x86_common that is compiled with i386 and
x86_64 than to have code with - #include "../../x86_64/kernel/blah.c" -
in it.

-- Steve



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

* Re: i386 requires x86_64?
  2006-01-31  8:54 ` Jesper Juhl
@ 2006-01-31 13:17   ` Steven Rostedt
  0 siblings, 0 replies; 7+ messages in thread
From: Steven Rostedt @ 2006-01-31 13:17 UTC (permalink / raw)
  To: Jesper Juhl; +Cc: Linux-Kernel, L. A. Walsh

On Tue, 2006-01-31 at 09:54 +0100, Jesper Juhl wrote:
> On 1/31/06, L. A. Walsh <lkml@tlinx.org> wrote:
> > Generating a new kernel and wanted to delete the unrelated architectures.
> >
> 
> Why bother deleting parts of the code?
> The kernel you build will only contain code for the architecture you
> build for anyway. Sure, the extra source takes up a little space on
> disk but if that bothers you you could just delete (or tar+bzip2) the
> entire source tree after you build and install your new kernel.

I still have 1G boxes (and even an 800Meg) HD boxes that I sometimes
develop on.  And these things are not very fast either, so doing the tar
bzip2 is also slow.  So I have deleted not only archs, but drivers that
I don't need to work on these and to keep the code there.

Now, I mainly do the development on a bigger and faster machine, and
only do the make install via nfs. But that wasn't always an option.

-- Steve



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

* Re: i386 requires x86_64?
  2006-01-31 13:02   ` Steven Rostedt
@ 2006-02-01  2:56     ` L. A. Walsh
  0 siblings, 0 replies; 7+ messages in thread
From: L. A. Walsh @ 2006-02-01  2:56 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Randy.Dunlap, linux-kernel

Steven Rostedt wrote:
> On Mon, 2006-01-30 at 19:31 -0800, Randy.Dunlap wrote:
>   
>> Yes, there are bits in i386 that use x86_64 and there are
>> bits in x86_64 that use i386 code, so that the source code
>> won't have to be duplicated.
>>     
> Perhaps we need an arch/x86_common that has this code.  Not just to help
> those that like to delete other archs, but also to make it easier for us
> that might modify the code and know that this code is shared.  It's
> better design to have a arch/x86_common that is compiled with i386 and
> x86_64 than to have code with - #include "../../x86_64/kernel/blah.c" -
> in it.
>
>   
I'd tend to agree (unless it is a big problem).
It seems an unsound design principle to manually be
including code via direct references to a different architecture
tree.

Linda


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

end of thread, other threads:[~2006-02-01  2:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-31  3:10 i386 requires x86_64? L. A. Walsh
2006-01-31  3:31 ` Randy.Dunlap
2006-01-31 13:02   ` Steven Rostedt
2006-02-01  2:56     ` L. A. Walsh
2006-01-31  3:34 ` Nish Aravamudan
2006-01-31  8:54 ` Jesper Juhl
2006-01-31 13:17   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).