ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Can LTIB compile just one single module without recompiling w


From: Stuart Hughes
Subject: Re: [Ltib] Can LTIB compile just one single module without recompiling whole kernel???
Date: Fri, 03 Sep 2010 12:52:23 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Quentin,

See Peter's reply.  patchmerge is a way of capturing your changes and
updating the .spec file.

Please note, LTIB is not a version control system.  For anything other
than bug-fixes, you should work in an unpacked VCS source tree (for
example a git-clone of the kernel).  For kernels (and some other
packageS) you can point LTIB at the unpacked source tree and have it
build/package that.  Note also that this can use KBUILD_OUT so that the
source tree can be shared across platforms.

Regards, Stuart

Quentin YANG wrote:
> Hi Stuart,
> 
> I am a bit confused now.
> 
> If keeping kernel source un-packed, how do I modify the 'spidev.c' source 
> code?
> 
> The only thing I can think of is modifying 'spidev.c' and then zip it back 
> into
> "X:\lpc3250\ltib-qs\rpm\SOURCES\linux-2.6.34.tar.bz2" before running a
> new build ' ./ltib '
> 
> Not sure is this what you suggested?
> Please advise.
> Thanks.
> 
> 
> Regards,
> Quentin
> 
> 
> On Wed, Sep 1, 2010 at 5:32 AM, Stuart Hughes <address@hidden> wrote:
>> Hi Quentin,
>>
>> No, I would not recommend moving stuff out of the kernel and into a
>> separate package.  If it's already in the kernel leave it there.
>>
>> A re-build of the un-packed kernel source should be quick, a minute or
>> so once you've built it once.
>>
>> Regards, Stuart
>>
>> Quentin YANG wrote:
>>> Thanks. Stuart.
>>>
>>> So, similar like what we've done for 'helloworld' module.
>>> " X:\lpc3250\ltib-qs\rpm\BUILD\hello_mod-1.2\"
>>>
>>> I need to copy 'spidev.c/h' to a folder, say "
>>> X:\lpc3250\ltib-qs\rpm\BUILD\spidev_mod\ ", and remove all
>>> unpacked kernel source codes under "
>>> X:\lpc3250\ltib-qs\rpm\BUILD\linux-2.6.34\ ".
>>>
>>> I'll give it a go.
>>>
>>> Regards,
>>> Quentin
>>>
>>>
>>> On Mon, Aug 30, 2010 at 8:06 PM, Stuart Hughes <address@hidden> wrote:
>>>> Hi Quentin,
>>>>
>>>> If you leave the kernel source unpacked (there's an option for this),
>>>> then the re-compiles should be quick, as only the module and a bit of
>>>> house-keeping is done.
>>>>
>>>> Regards, Stuart
>>>>
>>>>
>>>> Quentin YANG wrote:
>>>>> Hi,
>>>>>
>>>>> I am modifying a module driver 'spidev.c'
>>>>>
>>>>> I already settled the kernel to use this as a module driver and,
>>>>> compiling it together with the kernel, it runs ok.
>>>>>
>>>>> To save time, I am wondering can LTIB compile 'spidev module' without
>>>>> re-compiling the whole kernel. ( Takes 2 or 3 minutes each compile
>>>>> with a tiny module source code change ).
>>>>>
>>>>> Can anyone advise me how to get LTIB to compile a single module only?
>>>>> (Only saw single package compile in LTIB -help)
>>>>>
>>>>> Thanks very much.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Quentin
>>>>>
>>>>>
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]