Hallo,

The x86-64 port is reusing several source files from the i386 port. 
Originally in 2.4 this was done using symlinks created in the Makefile;
but that was changed in 2.6 when the separate obj directory support was
added.

Currently it uses e.g in arch/x86_64/kernel/Makefile for the cpuid driver:

obj-$(CONFIG_X86_CPUID)         += cpuid.o
cpuid-$(CONFIG_X86_CPUID)       += ../../i386/kernel/cpuid.o

This works fine as long as cpuid.o is linked into the kernel. But 
when it is compiled as a module it breaks (Makefile cannot find the 
source). This variant works for the modular build:

obj-$(CONFIG_X86_CPUID)                += ../../i386/kernel/cpuid.o

but breaks when cpuid is compiled in. Is there a way to do this for
both cases short of checking the CONFIG using ifeq() or making cpuid
a bool instead of tristate?

Problem occurs in 2.6.0test9

Thanks,
-Andi







-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to