ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] One step, CMO build


From: Jump, Lance
Subject: Re: [Ltib] One step, CMO build
Date: Mon, 30 Sep 2013 18:53:09 +0000

Designation:  Non-Finmeccanica

------------------------  ><= snip --------------------------
> The overall process I am trying to execute is this:
>> 1. Starting with a fresh ltib.tar.gz file, do a manual/interactive build 
>> using  LTIB.
>> 2. Save all packages downloaded during the process.
>> 3. Save any necessary configuration files that describe what has been 
>> selected.
>> 4. Deliver ltib.tar.gz and the packages and configuration from steps 2 and 3 
>> to CMO.
>> 5. At the CMO machine take the ltib, packages and configuration files 
>> and run a script to create the environment that resulted at the end of step 
>> 1.
>> 
>> The key ideas here are:
>> a) very few byproducts of the original build (step 1) are saved;
>> b) the LTIB working and opt directories are completely erased; and
>> c) the CMO agent need only run a script with no interaction -- especially any
>>   that would require domain/project knowledge.
>> 
>
> 1) The only files you need to save are:
> 
> - The packages downloaded into /opt/ltib/pkgs (they need to be copied 
> into your local package pool)
> 
> - The platform defconfig.dev file (LTIB saves changes to the platform 
> defconfig in defconfig.dev).  To save do "mv 
> config/platform/<platform>/defconfig.dev
> config/platform/<platform>/defconfig" (don't use cp as the 
> defconfig.dev takes precidence) after you're happy with the build 
> after you've modified the configuration
> 
> - The kernel config .dev file (if you changed the kernel 
> configuration).  Again mv it into its appropriate place (can't tell 
> you exactly since each platform/kernel combination uses different 
> names for the kernel defconfig).
> 
> 2) The only command the CMO should need to run to recreate your build 
> "./ltib -b --preconfig config/platform/<platform>/defconfig"
> 
> That's it.

Okay -- that appears to have worked! The problem I reported earlier was 
somewhat unrelated, but deserves mention. I reported the error:

/opt/freescale/ltib/usr/bin/rpm has gone missing at ./ltib line 2245.

That appears to be caused by directories in my /tmp directory. I found that I 
got the error even with a completely fresh LTIB being used 
manually/interactively. But when I added "rm -rf /tmp/rpm*" to my "prebuild 
cleanup" the problem went away. 

I have not yet tested the outputs, but the build as I described with the 
configuration files you specified has completed successfully.

> 
> As an experiment, pull out the fresh LTIB tarball, unpack it and check 
> it into SVN.  Then check it out and do your build.  Use "svn status"
> to find out anything that changed and any newly created files.  mv 
> your selected platform defconfig back to defconfig (in the same 
> directory).  Then remove _anything_ else that was freshly generated 
> (i.e "sudo rm -rf "svn status | grep '^?' | awk '{print $2}'").  Run 
> "./ltib -b --preconfig config/platform/<platform>/defconfig" and it should do 
> what you want...
> 

I had done something similar where I made copies of the fresh LTIB and the LTIB 
after the host packages built (just before the interactive part). I went back 
and checked what files were changed/modified. 

Thank you very much for your fast responses and great advice.


3.3.042312



reply via email to

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