Re: Module compilation

From: Richard B. Johnson
Date: Wed Oct 20 2004 - 10:18:28 EST


On Wed, 20 Oct 2004, Ian Campbell wrote:

On Wed, 2004-10-20 at 15:36, Richard B. Johnson wrote:

Could whomever remade the kernel Makefile, please add
a variable, initially set to "", like CFLAGS_KERNEL, that
is exported and is always included on the compiler command-
line?

Does the existing EXTRA_CFLAGS do what you want?


Well it's exported and gets on the command-line, but it's
not a "CFLAG" I want, but a definition to be passed to
the compiler. Using EXTRA_CFLAGS is no different than
using CFLAGS which, for a human readable implicit
documentation perspective, is incorrect (not a compiler flag).

I believe you can also set CFLAGS_blah.o if you just want extra stuff
for a single file.

Ian.

--
Ian Campbell, Senior Design Engineer
Web: http://www.arcom.com
Arcom, Clifton Road, Direct: +44 (0)1223 403 465
Cambridge CB1 7EA, United Kingdom Phone: +44 (0)1223 411 200


Cheers,
Dick Johnson
Penguin : Linux version 2.6.9 on an i686 machine (5537.79 GrumpyMips).
98.36% of all statistics are fiction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/