Commit Graph

12 Commits

Author SHA1 Message Date
Zdenek Behan
99fb742e5a update_chroot: autodiscard all config updates
* This is now safe to do, since the only protected files are exactly
the ones that have been autogenerated during chroot creation and may
not be overwritten.

BUG=chromium-os:13987
TEST=update the chroot

Change-Id: Ica4d8328b21089b23e2b0e8a29530cedddabc299
Reviewed-on: https://gerrit.chromium.org/gerrit/10166
Commit-Ready: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-11-09 14:00:11 -08:00
David James
e996baa382 Add IGNORE_PREFLIGHT_BINHOST env variable for ignoring PREFLIGHT_BINHOST.
This variable is intended to be used by cbuildbot to allow it to ignore
the preflight binhost when clobbering the preflight builder itself, to
ensure it doesn't pick up the old preflight prebuilts again.

BUG=chromium-os:21788
TEST=Set IGNORE_PREFLIGHT_BINHOST and see that preflight binhosts are ignored.

Change-Id: I2a0ca38ad8d35b34d2f14a980d5cd67ab66c0f07
Reviewed-on: https://gerrit.chromium.org/gerrit/11088
Reviewed-by: Ryan Cui <rcui@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
Commit-Ready: David James <davidjames@chromium.org>
2011-11-02 18:13:58 -07:00
Zdenek Behan
4748e87341 update_chroot: update toolchain and portage first, also select gcc
BUG=chromium-os:21474
TEST=run the script, see my chroot being updated, cases below:
1) run normally, see the latest gcc being selected
2) run while having an older gcc manually selected, see no updates
3) set an invalid native profile, see it being fixed

Change-Id: Ic84187b8acf39fba11f2e39f36457e6f696ad7e4
Reviewed-on: http://gerrit.chromium.org/gerrit/9832
Tested-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Zdenek Behan <zbehan@chromium.org>
2011-10-25 11:01:58 -07:00
David James
d899f8d93f Recompile any old perl modules after perl upgrade
Whenever perl is upgraded, it is a good idea to clean out any old
modules and recompile them. This check ensures that perl-cleaner is run
once and only once after each major perl upgrade.

BUG=chromium-os:19244
TEST=Run preflight queue with perl upgrade and old sdk. Verify that old
     perl modules are removed in the first run. Verify perl-cleaner is
     not run again in subsequent runs. Run sdk builder and confirm sdk
     builder runs perl-cleaner every time since it starts with an old
     version of perl.

Change-Id: Ib14f9d73122d5ff2c7a23afc3f56905e30ff2cbc
Reviewed-on: http://gerrit.chromium.org/gerrit/6149
Reviewed-by: Anush Elangovan <anush@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-08-17 11:03:25 -07:00
Brian Harring
d5d5dbffa1 Fix/standardize exiting if common.sh can't be found
The problem here is that most were doing their exiting w/in a subshell;
exit within a subshell kills the subshell, not the parent.  Not all scripts
were using set -e (which would pick up the failing subshell); as such
just rewriting them to remove the potential via eliminateing the subshelling.

Beyond that, removed a couple of custom (working, although non-standard)
approaches, and removed a duplicate common.sh sourc'ing w/in mk_memento_images.sh

TEST=force 'find_common_sh' to fail, note the scripts fails to exit
BUG=none

Change-Id: Ia1108a091a6399ad6aedd3cade4a107f4411686c
Reviewed-on: http://gerrit.chromium.org/gerrit/3905
Reviewed-by: Brian Harring <ferringb@chromium.org>
Tested-by: Brian Harring <ferringb@chromium.org>
2011-07-22 12:06:59 -07:00
David James
0dccff339e Allow for new toolchains to be rolled out when sdk builder completes.
New toolchains should only be rolled out to developers running with
binary packages when the sdk-builder has completed and uploaded the
prebuilts. This ensures that we've vetted the toolchain properly
before it rolls out and also speeds up binary builds for developers.

This also provides consistency with the behavior of setup_board.

BUG=chromium-os:16363
TEST=Verify these 3 packages are only updated in --usepkg builds
     when the prebuilts are also updated.

Change-Id: I6be7c6c98c12130751d3d4440bec7c71afb1d4c2
Reviewed-on: http://gerrit.chromium.org/gerrit/2391
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-10 00:35:18 -07:00
Zdenek Behan
308e9fd4c4 version_hooks: integrate upgrade hooks into chroot updater
BUG=chromium-os:6151
TEST=run update_chroot

Change-Id: I1fee2428247eb3dd1a3133d5781d4e5b6d5bdeb9
Reviewed-on: http://gerrit.chromium.org/gerrit/903
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-17 15:51:32 -07:00
Zdenek Behan
77f27827f1 Revert "upgrade_chroot: integrate upgrade hooks into chroot updater"
BUG=none (breaks bot)
TEST=none

This reverts commit 3427593fccdd16248931797dc2e37b267151e759.

Change-Id: I42967a80607e8b90f93048ed9fe7d846aab05ac0
Reviewed-on: http://gerrit.chromium.org/gerrit/900
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-13 20:28:51 -07:00
Zdenek Behan
8cfdd3d266 upgrade_chroot: integrate upgrade hooks into chroot updater
BUG=chromium-os:6151
TEST=run update_chroot

Change-Id: Ieb9afafa7961bd43f9b53ead14e698adc9d5179e
Reviewed-on: http://gerrit.chromium.org/gerrit/886
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-13 17:42:41 -07:00
Zdenek Behan
9562620a59 update_chroot: sort out emerge arguments into just one variable
BUG=none
TEST=update_chroot, verify all options are passed in correctly

Change-Id: Ic64ae6cce1b21bb70c04341a5607f6327cc43cb1
Reviewed-on: http://gerrit.chromium.org/gerrit/745
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-12 15:31:03 -07:00
Zdenek Behan
a29fb20065 update_chroot: emerge with --with-bdeps=y
BUG=quickfix for bot break
TEST=run ./update_chroot

Change-Id: I459d50f3e3374c1ff8ff8fc692c8ba7f3582bbd5
Reviewed-on: http://gerrit.chromium.org/gerrit/743
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
2011-05-11 20:25:15 -07:00
Zdenek Behan
d7bfd869b7 update_chroot: split the process of updating chroot into a separate
script

BUG=none
TEST=run build_packages, setup_board, make_chroot, with the paths fixed
to this script (http://gerrit.chromium.org/gerrit/700), see things work

Change-Id: I5a3950ddd5949fcf900a609f86092fce33db8cbd
Reviewed-on: http://gerrit.chromium.org/gerrit/720
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-11 16:56:47 -07:00