ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Auestion regarding ltib.preconfig configuration changes and h


From: Peter Barada
Subject: Re: [Ltib] Auestion regarding ltib.preconfig configuration changes and how to have LTIB follow it
Date: Thu, 26 Apr 2012 17:16:31 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20

On 04/26/2012 04:35 AM, Stuart Hughes wrote:
> Hi Peter,
>
>  From memory; you're correct once you've run ltib it will not look at 
> ltib.preconfig any more.  You'd need to put the system back in the 
> default state (distclean).  Alternatively you should be able to add the 
> needed packages using the  ./ltib --hostcf -m config
> When you're done,  you can copy the result back to ltib.preconfig for a 
> cold-build.
>
> One thing to watch out for though is that when you run ./ltib --hostcf 
> -m config it takes notice of all the collateral dependencies (intended 
> for the target) and so the list of package you end up installing is more 
> than if you just enabled the single packages in the ltib.preconfig file 
> by hand.
Stuart, the following is a patch to current ltib to do:

1) If you run "./ltib -b --hostcf" it won't ask to Drop a package that
is deselected in the host configuration
2) If config/platform/host/ltib.preconfig is newer than
config/platform/host/{.config,host.config} it will copy
config/platform/host/ltib.preconfig into config/platform/host/.config

With this change, I can now run "./ltib -b --hostcf" as part of my
buildbot and changes in config/platform/host/ltib.preconfig will take
effect in that build.  Then I can run "./ltib -b --preconfig
config/platform/<platform>/defconfig" and everything just works.

I'm loathe to distclean on my buildbot setup since that causes LTIB to
unecessarily rebuild packages (and I don't want to do that for every
build done by buildbot).

*** ltib.~1.85.~    2012-04-26 13:13:34.000000000 -0400
--- ltib    2012-04-26 17:11:38.515832995 -0400
***************
*** 1445,1451 ****
      if($host_pkg_dev == 1) {
          # we are working on host packages
          ltib_host_config();
!         $cf->{dodrop} = 'ask';
          exit 0 if $cf->{mode} eq 'config';
      } else {
          # this is the case where we are doing just the basic host packages
--- 1445,1451 ----
      if($host_pkg_dev == 1) {
          # we are working on host packages
          ltib_host_config();
!         $cf->{dodrop} = 'ask' unless $cf->{batch};
          exit 0 if $cf->{mode} eq 'config';
      } else {
          # this is the case where we are doing just the basic host packages
***************
*** 2918,2926 ****
      system_nb(<<TXT) == 0 or die;
  set -ex
  cd $hostpath
! if [ ! -f .config ]
  then
!     if [ -f ${PLATFORM}.config ]
      then
          cp ${PLATFORM}.config .config
      else
--- 2918,2931 ----
      system_nb(<<TXT) == 0 or die;
  set -ex
  cd $hostpath
! if [ -f .config ]
  then
!     if [ $cf->{hostconfig} -nt ${PLATFORM}.config ]
!     then
!         cp $cf->{hostconfig} .config
!     fi
! else
!     if [ -f ${PLATFORM}.config -a ${PLATFORM}.config -nt
$cf->{hostconfig} ]
      then
          cp ${PLATFORM}.config .config
      else


-- 
Peter Barada
address@hidden




reply via email to

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