Commit Graph

2152 Commits

Author SHA1 Message Date
Mandeep Singh Baines
a0fcf30e54 cros_workon: quick hack at package name checking
Change-Id: I30e97760d5b96077e38414be31ef434542021361

Review URL: http://codereview.chromium.org/2883012
2010-07-01 14:05:19 -07:00
Antoine Labour
d0b0503276 Refactor the dot graph generation out of cros_generate_deps_graphs
This will be re-used by a separate tool

Review URL: http://codereview.chromium.org/2859039
2010-07-01 13:41:25 -07:00
David McMahon
02ad19d57f Created branch 0.7.52.B. Update CHROMEOS_VERSION_BRANCH=53
Change-Id: Idb2e894187260793f7608cfc1ffe9d33e3f928a1
2010-07-01 11:47:28 -07:00
Ken Mixter
25d48c4dcd Use gsutil to archive debug.tgz too
BUG=4263

Review URL: http://codereview.chromium.org/2866036
2010-07-01 11:20:42 -07:00
Benson Leung
70dc38b4c8 Create a symlink for the external_extensions.json.
power_LoadTest will use this symlink to load a test extension at login.

BUG=None
TEST=power_LoadTest

Signed-off-by: Benson Leung <bleung@chromium.org>

Review URL: http://codereview.chromium.org/2877007
2010-07-01 10:55:45 -07:00
Bill Richardson
2ace49e0a4 Generate and use .vbprivk files for signing now.
Review URL: http://codereview.chromium.org/2817047
2010-07-01 10:23:27 -07:00
Nick Sanders
f2dee6c5df Add --fast to build_image
Include checked in parallel emerge,
with an optional (default false) argument
in build_image to turn it on.

Review URL: http://codereview.chromium.org/2827037
2010-07-01 00:21:32 -07:00
Eric Li
02a22ecd8b Roll back change list 2838024.
The current autotest ebuild cros_workon change takes more time than I expected, so I had to roll back this change to enforce autotest prebuild on buildbot.

As of now, the prebuild autotest tarball has no binaries produced within it.

Review URL: http://codereview.chromium.org/2881007
2010-06-30 20:56:00 -07:00
Mandeep Singh Baines
952996c605 cros_workon: add support for a forall command
Change-Id: If0c75ee905c4a8076340fa9675c17e9292125268

Review URL: http://codereview.chromium.org/2880007
2010-06-30 18:51:48 -07:00
David McMahon
43603dd11e Created branch 0.7.50.B. Update CHROMEOS_VERSION_BRANCH=51
Change-Id: I02443c8095e3ef6b7e22e9f3138cc4a69912e3ce
2010-06-30 16:22:40 -07:00
Ken Mixter
aba0429e24 Archive debug artifacts - take two
Review URL: http://codereview.chromium.org/2852033
2010-06-30 12:38:53 -07:00
Mandeep Singh Baines
451cee1349 cros_workon: modify to be less verbose
We need to be able to use "cros_workon list" in pipelines. Also, would
be nice if the other commands were less verbose. Ideally, they should
die and return a non-zero value.

Also cleaned up the logic in some of the functions. This fixed a couple
of bugs:

1) "cros-workon list" would fail if KEYWORDS_FILE didn't exist
2) "cros-workon start" would fail if KEYWORDS_DIR didn't exit

Change-Id: I76c87f0e36b72c12e8ae937cbadca6cf21a34bad

Review URL: http://codereview.chromium.org/2880005
2010-06-30 09:21:55 -07:00
bradnelson
51a2e575b5 Fixing yet another path mistake.
BUG=None
TEST=None
TBR=djmm

Merge branch 'master' of ssh://chromiumos-git/crosutils

Fixing typo

BUG=None
TEST=None
TBR=djmm

Merge branch 'master' of ssh://chromiumos-git/crosutils

Fixing command line to work with file acls.

Merge branch 'gsd'

Merge branch 'master' into gsd

Fixing typo in command line.

Refactoring gsutil archiving into a function. Adding optional gsd_generate_index step.

Adding ACL option to archive_build.sh

Review URL: http://codereview.chromium.org/2881005
2010-06-30 05:13:18 -07:00
bradnelson
2303fa1d0f Fixing typo
BUG=None
TEST=None
TBR=djmm

Merge branch 'master' of ssh://chromiumos-git/crosutils

Fixing command line to work with file acls.

Merge branch 'gsd'

Merge branch 'master' into gsd

Fixing typo in command line.

Refactoring gsutil archiving into a function. Adding optional gsd_generate_index step.

Adding ACL option to archive_build.sh

Review URL: http://codereview.chromium.org/2803030
2010-06-30 04:51:26 -07:00
bradnelson
ed7f1122d6 Fixing command line to work with file acls.
Merge branch 'gsd'

Merge branch 'master' into gsd

Fixing typo in command line.

Refactoring gsutil archiving into a function. Adding optional gsd_generate_index step.

Adding ACL option to archive_build.sh

Review URL: http://codereview.chromium.org/2847036
2010-06-30 01:44:45 -07:00
bradnelson
8046594c0e Adding ACL option to archive_build.sh
Review URL: http://codereview.chromium.org/2804030
2010-06-29 18:12:08 -07:00
Randall Spangler
d51f39f681 TBR: wfrichar
Change flags for key block to 15 so it works in all modes, since I'm
about to fix the vboot bug which prevented flag checking from working.

BUG=none
TEST=none
2010-06-29 18:03:30 -07:00
robotboy
b49136dc8a TBR: Fix tree breakage. Ken's commit added sudo calls to archive_build.sh. 2010-06-29 15:03:37 -07:00
Ken Mixter
428e195dbe Add debug.tgz debug info archive as buildbot artifact
BUG=4263

Review URL: http://codereview.chromium.org/2852022
2010-06-29 12:42:51 -07:00
Chris Masone
d72ebe7050 image_to_usb.sh needs to pass --board to mod_image_for_test
At some point, mod_image_for_test started using emerge, but when we
call it from image_to_usb, we don't pass a --board flag...we just
assume the user is using the default_board magic file mechanism.

Review URL: http://codereview.chromium.org/2807028
2010-06-28 19:32:02 -07:00
Ken Mixter
ec2708c83a Add --nousepkg option for build_packages to sbt
Review URL: http://codereview.chromium.org/2810035
2010-06-28 18:41:22 -07:00
Chris Sosa
fc44b14c47 TBR: Fix build due to reference to deprecated crash folder. 2010-06-28 17:41:04 -07:00
Denis Romanov
110615446e Added empty ext3 filesystem initialization for OEM partner partition.
BUG=http://crosbug.com/3828
TEST=When mounted, /dev/sd8 (OEM partition) has a valid empty filesystem on it.

Review URL: http://codereview.chromium.org/2867030
2010-06-29 04:23:53 +04:00
Eric Li
5cf288fb1c Increase stateful test partition size to 1G, to accommodate autotest package pre-installation under /usr/local.
Review URL: http://codereview.chromium.org/2865018
2010-06-28 12:46:26 -07:00
Antoine Labour
86f7820447 Add a tool to generate graphs for Chrome OS packages.
You feed it the output of cros_extract_deps and you get pretty pictures:
./cros_extract_deps --board x86-generic chromeos chromeos-dev |./cros_generate_deps_graphs -o output -c -l

Review URL: http://codereview.chromium.org/2840020
2010-06-25 17:45:26 -07:00
David McMahon
0c995ee4ad Add another missing svn repo
Review URL: http://codereview.chromium.org/2860029
2010-06-25 15:43:55 -07:00
David James
868d7bb6b9 Added --preserve option and logic.
Other changes:
- Added update_base_packages() method.
- Fix a get_latest_image.sh problem when the image does not already exist.
- Cleanup method invocations, and remove OUTPUT_IMG global variable.
- Add kernel testing logic back (it was accidentally deleted in an earlier patch.)

TEST=Built regular image. Updated old image to contain new packages.
BUG=none

Patch by: Don Garrett <dgarrett@chromium.org>
(Tweaked by me to address review feedback.)

Review URL: http://codereview.chromium.org/2857020
2010-06-24 21:48:14 -07:00
Tan Gao
40551cd9ca recovery installer: fix build_gpt and build_image
Change-Id: I3cbb62827a33894f47d26dd047134b6c39c6667b

Review URL: http://codereview.chromium.org/2813029
2010-06-24 16:33:32 -07:00
David McMahon
b59dd19d2d Add missing svn repos
Review URL: http://codereview.chromium.org/2824030
2010-06-24 16:21:26 -07:00
Mandeep Singh Baines
3dfa852743 build_image: use --usepkg instead of --usepkgonly
We want build_image to honour the configuration in PORTDIR and only use
the latest stable version as known by portage and the overlays.

We get these semantics with --usepkg. We do not get them with --usepkgonly.
The one downside is that instead of failing when you forget to run
build_packages before build_image, build_image will try to build
packages from source.

From "man emerge":

       --usepkg[=n] (-k)
              Tells emerge to use binary packages (from $PKGDIR) if they
              are available, thus possibly avoiding some  time-consuming
              compiles.   This option is useful for CD installs; you can
              export PKGDIR=/mnt/cdrom/packages and then use this option
              to have emerge "pull" binary packages from the CD in order
              to satisfy dependencies.

       --usepkgonly[=n] (-K)
              Tells emerge to only use binary packages  (from  $PKGDIR).
              All  the  binary packages must be available at the time of
              dependency  calculation  or  emerge  will  simply   abort.
              Portage  does not use $PORTDIR when calculating dependency
              information so all masking information is ignored.

Change-Id: I267dad8992ac683d0ff4db0d0c72baba61ecbccf

Review URL: http://codereview.chromium.org/2874013
2010-06-24 15:00:49 -07:00
Eric Li
23761a3b61 Add -uDn flag to autotest emerge command.
Review URL: http://codereview.chromium.org/2838024
2010-06-24 14:58:21 -07:00
Will Drewry
69563b7349 build_image: pull out kernel partition creation
Makes kernel partition creation standalone.  This is motivated
both by the ability to build test kernel partitions easily as well
the need to create all kernel command line configuration after the
rootfs has been completely created.

Instead of a massive overhaul, I'll do this refactor in pieces.

TEST=manually rebuilt the image
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2825021
2010-06-24 16:12:58 -05:00
Antoine Labour
2561de0cbc Add a script to extract dependencies out of emerge.
BUG=none
TEST=run the script, observe the output

Review URL: http://codereview.chromium.org/2871021
2010-06-24 11:18:01 -07:00
Nathan Williams
9494671269 Fix up the modification of the flimflam upstart script
to handle changed command line arguments, and attempt
to make it resilient in the face of future changes.

TEST=Run script on fresh image; confirm that '-I eth_test' is present on the exec line of /etc/init/flimflam.conf

Review URL: http://codereview.chromium.org/2842023
2010-06-24 10:15:34 -04:00
Bill Richardson
8f23ff3dfe Add "gpt" to kernel parameters to ignore missing PMBR
Review URL: http://codereview.chromium.org/2799030
2010-06-23 21:41:59 -07:00
David McMahon
5500a05355 Created branch 0.7.48.B. Update CHROMEOS_VERSION_BRANCH=49
Change-Id: If86bb02182baa3816b6cfd5d58efa93c3fa34d8a
2010-06-23 17:50:16 -07:00
Ken Mixter
0fafa9edfc Fix problems with return codes
BUG=4112

Review URL: http://codereview.chromium.org/2819021
2010-06-23 14:41:37 -07:00
Brian Daugherty
76418ea6b1 cros_workon: initial implementation
Moves ebuild(s) between stable and live states.

Lists ebuilds currently under development in the testing branch.

Stable ebuilds obtain and build against the last known good commit.
Live ebuilds (9999) perform a 'git clone' during the src_unpack
step to obtain and save the source for development and building.

Example usage:

  Sync & build 'ibus-hangul' testing ebuild (9999)
     ./cros_workon start app-i18n/ibus-hangul

  Build 'ibus-hangul' from the last stable commit
     ./cros_workon stop app-i18n/ibus-hangul

  List of ebuilds under development
     ./cros_workon list

Change-Id: I2ea4babd7597d5cea9ca96419a74152f9f0b23f1

Note: --board must be specified if the --default option
      to setup_board was not used.

Review URL: http://codereview.chromium.org/2852019
2010-06-23 14:43:28 -06:00
bradnelson
7fcb19234b Adding option to archive to google storage for developers.
Review URL: http://codereview.chromium.org/2834016
2010-06-22 20:37:01 -07:00
Chris Sosa
736cdcc5bf Tiny bit of clean up and follow new script naming convention.
TEST=Re-ran script and downloaded latest image.

Review URL: http://codereview.chromium.org/2805022
2010-06-22 17:21:05 -07:00
Chris Sosa
b4529fa675 Adding blacklist support for unit tests and blacklisting currently failing tests.
TEST=Ran cros_run_unit_tests with no arguments and it returned 0.

Review URL: http://codereview.chromium.org/2818021
2010-06-22 17:19:15 -07:00
Nick Sanders
13adf4efc5 TBR: reviewed in http://codereview.chromium.org/2807012/show 2010-06-22 16:45:59 -07:00
Ken Mixter
7d724559be Add symbol uploader
Review URL: http://codereview.chromium.org/2812012
2010-06-22 15:56:17 -07:00
Dale Curtis
3c91d0e8e0 Wrapper script for remote_access.sh library. Used by Autotest updater.
Review URL: http://codereview.chromium.org/2869015
2010-06-22 14:36:26 -07:00
Tammo Spalink
c75941a05d Move factory UI files to autotest repo.
Review URL: http://codereview.chromium.org/2825014
2010-06-22 16:09:04 +08:00
Frank Swiderski
75dc6c7845 Cutover to hardened toolchain by default (1 of 3). BUG=3981 TEST=pending
Never use the target board's ld-linux.so.2.

Review URL: http://codereview.chromium.org/2828018
2010-06-21 22:27:04 -07:00
Nick Sanders
ec29805fde Fix firmware packaging
BUG=none
TEST="run make_factory_package.sh --factory=X --release=X, doesn't crash"

Review URL: http://codereview.chromium.org/2858021
2010-06-21 21:52:43 -07:00
Chris Sosa
6c587b0a5b TBR: Fix build_image without reverting don's change. 2010-06-21 17:36:18 -07:00
robotboy
507bcbfe06 Add --allow-empty to the commit of the generated dep file.
This is to solve the problem where a build-bot is kicked off for a
tree that has no changes in it.  This should not happen often.

Review URL: http://codereview.chromium.org/2873010
2010-06-21 15:12:07 -07:00
Don Garrett
3f41e152bd Created wrapper methods for create_base_image and image updates.
update_dev_packages, and update_recovery_packages created.

Moved assorted global variables up to the top section, since they are global.

TEST=Ran build_image.
BUG=none

Review URL: http://codereview.chromium.org/2823010
2010-06-21 14:54:34 -07:00