Commit Graph

28179 Commits

Author SHA1 Message Date
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
Kelly Lucas
633f911e9a A simple script to check all control files for correctness.
Review URL: http://codereview.chromium.org/2806016
2010-06-17 17:43:50 -07:00
Don Garrett
e0020b19b0 Fixed formatting in build_image $VAR -> ${VAR}.
Also remove trailing spaces, and add punctuation to comments.
TEST=Ran build_image
BUG=None

Review URL: http://codereview.chromium.org/2804012
2010-06-17 15:55:35 -07:00
Bill Richardson
25e4c18e96 Add distinct strings to kernel config files to indicate BIOS type.
This does nothing, except provide a way to determine which of the three
possible boot methods was used to boot the running image. Handy for
debugging BIOS issues on experimental and dogfood machines.

Review URL: http://codereview.chromium.org/2868010
2010-06-17 12:50:49 -07:00
Bill Richardson
6ed135883c Use new kernel-signing tools.
Review URL: http://codereview.chromium.org/2820012
2010-06-16 21:38:15 -07:00
Chris Sosa
d97985240a Check in to run unittests that uses src_test to build and run unittests.
TEST=Ran unittests with 2 test failures (powerd and update engine).
Will check with authors to fix these before moving the default over
to this.

Review URL: http://codereview.chromium.org/2837004
2010-06-16 14:29:50 -07:00
Nick Sanders
07eac9ef47 Change file permissions on factory.zip
Review URL: http://codereview.chromium.org/2714005
2010-06-16 04:19:39 -07:00
Nick Sanders
d250927093 Add Build Timer
Review URL: http://codereview.chromium.org/2859005
2010-06-16 03:50:04 -07:00
Nick Sanders
8ab729ab98 Prototype faster build (kind of ugly)
Review URL: http://codereview.chromium.org/2724014
2010-06-16 03:15:17 -07:00
David James
f01ea9d93e Add script for downloading latest build from buildbot jail.
This script is internal only.

BUG=none
TEST=Built and installed image.

Review URL: http://codereview.chromium.org/2819003

Change-Id: I4426a0e939862211a0527de07aefbea74ab0e092
2010-06-15 17:03:49 -07:00
Zelidrag Hornung
61d9768584 added support for an alternative ssh port for autotest (needed for running autotest on Vibrant VM)
Review URL: http://codereview.chromium.org/2845002
2010-06-15 11:55:21 -07:00
Tom Wai-Hong Tam
0635a240d2 Sync after dd to disk in image_to_usb script.
Fix the bug happened to me that the script completed but the data haven't completely been written to disk.

Review URL: http://codereview.chromium.org/2831001
2010-06-15 10:29:05 +08:00
Tom Wai-Hong Tam
fe3d8268f9 Pack firmware into an image and do update in factory install (separated git).
Since different platforms have different instructions to update their firmware.
In order not to depend on the install shim, we pack all firmware update files
into a single file, i.e. an executable shell script with embedded files.

The original CL (http://codereview.chromium.org/2366001) is reviewed and is
broken down into 5 CLs. This is one of them.

Review URL: http://codereview.chromium.org/2792013
2010-06-14 09:55:41 +08:00
Frank Swiderski
eccb3a945c Update with note.
Review URL: http://codereview.chromium.org/2795008
2010-06-11 17:34:06 -07:00
Nick Sanders
9e305dbae0 Add alternate grub setting for some systems
Review URL: http://codereview.chromium.org/2735017
2010-06-11 15:18:35 -07:00
Bill Richardson
fc752ffdfa Use new cgpt tool when creating images and the pack/unpack scripts.
Review URL: http://codereview.chromium.org/2792011
2010-06-11 09:16:09 -07:00
Zdenek Behan
6f17b5e5fe enter_chroot: when preparing chroot, mount devpts filesystem as well
* This also adds reverse sort into the umount list, because of cascading mounts, so that /foo/anything is always before /foo, and as such is always unmounted first. If the list were not sorted, "mount point busy" errors might occur, depending on various conditions.

TEST=
 1) With a previously created chroot, I ran enter_chroot.sh, and got the correct prompt. After logging out of that prompt, everything else was correctly unmounted, without any error messages. When entering chroot twice from two different shells, everything was correctly unmounted after the last shell exited.
 2) Repeat 1 but with cleanly created chroot just for this purpose.
 3) In the chroot, make packages for one board (x86-generic) using build_packages
 4) The messages "openpty failed: 'out of pty devices'" whenever trying to emerge anything (or other commands looking up pts) have disappeared.

Review URL: http://codereview.chromium.org/2714010
2010-06-10 16:50:52 -07:00
Anush Elangovan
587d7498a1 Use git rev-parse --short=8 to get rev
Change-Id: I842fd7c76597a3cadacdfaa3de6b61fa7cb87703

Review URL: http://codereview.chromium.org/2762011
2010-06-10 15:39:19 -07:00
Anush Elangovan
8a27d99a57 Update WATCHLISTS and CRR 2010-06-10 01:36:40 -07:00
Kevin Degi
87336bdef6 Add scripts to update an existing image 2010-06-09 23:52:01 -07:00
Amol Kher
cd129ad232 Added a script to upload debug symbols to breakpad
Review URL: http://codereview.appspot.com/1647041
2010-06-09 17:43:07 -07:00
Paul Stewart
7b7ccc7b0b Create a remote upgrade server to serve up images as a "proxy devserver". Uses devserver in "archive mode". This is useful in situations like the wireless test lab where the development machine is not accessible from the test machines.
Review URL: http://codereview.chromium.org/2724009
2010-06-09 16:22:23 -07:00
Daniel Erat
0db85ef360 Make run_remote_tests.sh support --results_dir_root.
Patch author: Andy Chan <andyc@codeaurora.org>
Original issue: http://codereview.chromium.org/2128016/show
Reviewed by sosa@chromium.org.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/2728006
2010-06-09 15:55:03 -07:00
Daniel Erat
362944a873 scripts: Update .gitignore with entries from main repo.
BUG=none
TEST=none
TBR=anush

Review URL: http://codereview.chromium.org/2724012
2010-06-09 15:49:20 -07:00