Commit Graph

108 Commits

Author SHA1 Message Date
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