Messages in this thread | | | Subject | RE: Compile one file in kernel | Date | Wed, 11 Aug 2010 12:09:34 +0800 | From | "Zhang, Wei-Jovi (NSN - CN/Hangzhou)" <> |
| |
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@semico.com.cn] Sent: Wednesday, August 11, 2010 12:07 PM To: 'Xiaotian Feng'; Zhang, Wei-Jovi (NSN - CN/Hangzhou) Cc: linux-kernel@vger.kernel.org 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@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Xiaotian Feng Sent: Wednesday, August 11, 2010 9:50 AM To: Zhang, Wei-Jovi (NSN - CN/Hangzhou) Cc: linux-kernel@vger.kernel.org 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@nsn.com> 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@vger.kernel.org > 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@vger.kernel.org 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |