RE: Compile one file in kernel
From: Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Date: Wed Aug 11 2010 - 00:10:15 EST
Apparently not, you should run "rm -f <filename>.o" firstly, then "make <filename>.o"
Maybe you can write a script to do this if you want to.
-----Original Message-----
From: ext zhanglx [mailto:zhanglx@xxxxxxxxxxxxx]
Sent: Wednesday, August 11, 2010 12:07 PM
To: 'Xiaotian Feng'; Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: RE: Compile one file in kernel
If .o file is not cleaned, make will automatically select the changed files
to compile and link?
-----Original Message-----
From: linux-kernel-owner@xxxxxxxxxxxxxxx
[mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of Xiaotian Feng
Sent: Wednesday, August 11, 2010 9:50 AM
To: Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Compile one file in kernel
On Wed, Aug 11, 2010 at 8:59 AM, Zhang, Wei-Jovi (NSN - CN/Hangzhou)
<wei-jovi.zhang@xxxxxxx> 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?
make <filename>.o
> Thanks.
> .jovi
> --
> 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/
>
--
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/
--
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/