RE: Compile one file in kernel

From: Zhang, Wei-Jovi (NSN - CN/Hangzhou)
Date: Wed Aug 11 2010 - 00:48:24 EST


Sorry, I forgot it, make will compare the timestamp of .c and .o file


-----Original Message-----
From: ext zhanglx [mailto:zhanglx@xxxxxxxxxxxxx]
Sent: Wednesday, August 11, 2010 12:48 PM
To: Zhang, Wei-Jovi (NSN - CN/Hangzhou); 'Xiaotian Feng'
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: RE: Compile one file in kernel

You mean make will not compare the timestamp of .c and .o file?

-----Original Message-----
From: linux-kernel-owner@xxxxxxxxxxxxxxx
[mailto:linux-kernel-owner@xxxxxxxxxxxxxxx] On Behalf Of Zhang, Wei-Jovi
(NSN - CN/Hangzhou)
Sent: Wednesday, August 11, 2010 12:10 PM
To: ext zhanglx; Xiaotian Feng
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: RE: Compile one file in kernel

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/

--
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/