On Fri, Nov 05, 2004 at 10:04:15AM -0600, Timur Tabi wrote:
> I'm trying to compile an external module and use the O= kbuild option,
> but it's not working for me:
> 
> make -C /usr/ammasso/src/sles9/2.6.5-32smp
> SUBDIRS=/home/ttabi/sb/starcore/software/host/linux/sys/devccil
> O=/home/ttabi/sb/starcore/software/host/linux/sys/devccil/obj_2.6.5-32smp_debug
> make[1]: Entering directory `/usr/ammasso/src/sles9/2.6.5-32smp'
> /usr/ammasso/src/sles9/2.6.5-32smp/Makefile:438: .config: No such file
> or directory

When compiling modules O= is used to point out where output
of the original kernel compile is placed - not where output for the external
module is placed.

So
make -C $KERNELSRC O=$KERNELOUTPUT M=$PWD

is the better syntax (M= and SUBDIRS= has same effect).

KERNELSRC equals /usr/ammasso/src/sles9/2.6.5-32smp in your example
KERNELOUTPUT equals ??? in your example

You may say it is inconsistent, improvements are welcome.


        Sam


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to