Re: Compile one file in kernel

From: AmÃrico Wang
Date: Wed Aug 11 2010 - 00:23:16 EST


On Wed, Aug 11, 2010 at 08:59:06AM +0800, Zhang, Wei-Jovi (NSN - CN/Hangzhou) wrote:
>Hi,
> I always using command make, then it will compile all files. How
>about just compile one c file(just make sure some modify can compile
>successful), how should I do? Is there any command to allow me to doing
>this?


You can always find these info in `make help`:

...
dir/ - Build all files in dir and below
dir/file.[oisS] - Build specified target only
dir/file.lst - Build specified mixed source/assembly target only
(requires a recent binutils and recent build (System.map))
dir/file.ko - Build module including final link
...
--
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/