Commit Graph

1911 Commits

Author SHA1 Message Date
David McMahon
dc6cb96c79 Force --yes to mod_image_for_test.sh call. archive_build.sh runs non-interactive most of the time.
Review URL: http://codereview.chromium.org/661151
2010-02-25 18:22:29 -08:00
David McMahon
72a09d994d Created branch release_32. Update CHROMEOS_VERSION_BRANCH=33 2010-02-25 14:14:28 -08:00
Raiford Storey
e609f19d4a Updated image_to_vmware.sh to generate an VMware configuration file. This is useful for VMplayer.
BUG=None
Test=Run "vmplayer chromeos.vmx" on and verify that the VM boots.

Review URL: http://codereview.chromium.org/657027
2010-02-25 13:58:54 -05:00
Ken Mixter
89ae722a21 Fix problem with mod_image_for_test leaving dangling chroot ref
Review URL: http://codereview.chromium.org/661061
2010-02-24 19:15:14 -08:00
Eric Li
213f8958aa include netperf2 and netpipe into build_autotest.
Review URL: http://codereview.chromium.org/661044
2010-02-24 17:32:55 -08:00
Ken Mixter
cc48864bce Support renamed commands, remove non-portage build support, fix a minor mod_image_for_test bug. Tested with build_autotest, mift, image_to_usb, and image_to_live. Also not recreating the chroot unless it's missing or you pass --force_make_chroot as folks say that added dependencies in the chroot are handled currently during build_packages.
Review URL: http://codereview.chromium.org/650123
2010-02-24 15:27:30 -08:00
Darin Petkov
726d36686c Fix name and add board completion to mod_image_for_test.sh.
Review URL: http://codereview.chromium.org/659005
2010-02-24 12:05:18 -08:00
Darin Petkov
049dbab5bd Programmatic bash completion for Chromium OS build scripts.
If you source this script inside chroot, you would get <tab> completion for the --board= argument for some build scripts.

For example,
. bash_completion
./build_image --board=x<tab>
may complete to
./build_image --board=x86-generic
if x86-generic is the only available board starting with "x". If not, it will list available boards with the given prefix.

We could extend this to work with setup_board and other scripts. Also, it may be nice to extend it to work outside chroot.

Does it make sense to make this part of the regular dev chroot by default? If so, not sure what the best way to do that. Maybe install this as a hard-host-depends and source it from the chroot user .bashrc?

Review URL: http://codereview.chromium.org/652129
2010-02-23 18:16:37 -08:00
David McMahon
92c9e5258d Pass --board along to mod_image_for_test.sh.
Review URL: http://codereview.chromium.org/652189
2010-02-23 16:48:34 -08:00
Chris Sosa
acada7387b Changes to use default board when set by setup_board
Review URL: http://codereview.chromium.org/656023
2010-02-23 15:20:03 -08:00
David McMahon
d185da4ee0 Add CHROME_* placeholders for setting official chrome versions for release builds.
Review URL: http://codereview.chromium.org/652098
2010-02-23 14:34:08 -08:00
Sam Leffler
a92ecd6718 fix finding overlays from the dev-server
Review URL: http://codereview.chromium.org/650182
2010-02-23 08:25:38 -08:00
Sam Leffler
9b14b47550 minor fixups to make this functional
- add --board option to find images
- prompt before clobbering image unless --yes option specified (a la image_to_usb)

Review URL: http://codereview.chromium.org/650181
2010-02-22 15:22:11 -08:00
Ryan Cairns
0c70b3902e Get rid of some scripts that are no longer used
Review URL: http://codereview.chromium.org/651083
2010-02-19 16:05:05 -08:00
David McMahon
7c867169b7 Rework DEFAULT_FROM due to dependence on FLAGS_board.
Exit out if FLAGS_from doesn't exist.
Use FLAGS_from in place of DEFAULT_from later on.

Review URL: http://codereview.chromium.org/651079
2010-02-19 15:59:39 -08:00
tedbo
6a2c4c3365 Add symlinks to new build scripts. This obviates the need to run setup_source_tree.sh.
Review URL: http://codereview.chromium.org/650056
2010-02-19 14:54:50 -08:00
Ken Mixter
e320ae8c08 Make sync_build_test work with portage build.
Remove make_local_repo stage as it's not used by either build process.
Make portage build the default (--noportage still builds the old way).
Also add total time to build.  A run of sync_build_test without args
on my machine takes 2:20min.  Defaulting to --jobs=1 due to
instability reports.

Review URL: http://codereview.chromium.org/646015
2010-02-18 17:34:32 -08:00
David McMahon
4930294039 Fix archive_build.sh to work with new build using board subdirs.
Add some sane and useful defaults to common.sh for BOARDS.

Review URL: http://codereview.chromium.org/647053
2010-02-18 16:55:35 -08:00
Darin Petkov
49879bc938 This commit reverts accidental change to build_autotest.sh
ecee13e13945c7df79e397012054206cac6cb2f0 back to the previous revision.
This new file should be identical to the one at
ce18a0349a88ffbe01a2e88526aeb271b54dec60

Review URL: http://codereview.chromium.org/646057
2010-02-18 15:49:50 -08:00
Sam Leffler
7111b4f204 fixup autoupdate for new build system
- write board is to /etc/lsb-release
- send board id to omaha
- require board to find latest image

Review URL: http://codereview.chromium.org/633001
2010-02-18 09:58:42 -08:00
Chris Sosa
a221aab08c Adds changes to unittest scripts to use ebuild if board is specified
Review URL: http://codereview.chromium.org/614005
2010-02-17 16:38:21 -08:00
Ryan Cairns
58966860a3 removes most of the old build tools
Take another look, I kept build_tests and sync*.

Review URL: http://codereview.chromium.org/627003
2010-02-17 14:18:50 -08:00
Andrew de los Reyes
e8b6315eee enter_chroot: allow depot_tools to fail to mount
Review URL: http://codereview.chromium.org/601082
2010-02-16 14:18:34 -08:00
Eric Li
cbbb239570 Change run_remote_tests from portage build env.
Review URL: http://codereview.chromium.org/606054
2010-02-16 08:49:16 -08:00
Eric Li
944281ff8b Two major changes here:
1. work with the new portage build system. Yes, cross compiling works.

2. work with new upstream changes to build a single or a subset of site test which specified from command line.

I will update the how-to document after all code checked in.

Please also refer to change from 582012 which had been included here and 582012 will be abandoned after this CL checked in.

Review URL: http://codereview.chromium.org/596110
2010-02-15 12:00:58 -08:00
satorux
742b51bae5 Do not include chromeos/libcros.so in chrome-chromeos.zip.
The original pattern "chrome-chromeos/chrome*" was loose enough
to include "chromeos/libcros.so" if it's present. The file should
not be included in chrome-chromeos.zip file, which is used to build
the chromeos-chrome deb package, since libcros.so is provided by
the chromeos-libcros deb package.

I had "chromium/src/out/Release/chromeos/libcros.so" to run the
Chromium OS version of Chromium browser locally with libcros.so
enabled.

TEST=manually:
% cd ../build/x86/local_assets
% unzip -l chrome-chromeos.zip > before
... made this change ...
% cd ../build/x86/local_assets
unzip -l chrome-chromeos.zip > after
% diff -u before after
--- before       2010-01-22 13:53:39.361522119 +0900
+++ after        2010-01-22 13:54:52.117212719 +0900
@@ -2,8 +2,6 @@
   Length      Date    Time    Name
 ---------  ---------- -----   ----
  12584626  2010-01-22 13:46   chrome-chromeos/candidate_window
-        0  2010-01-22 13:13   chrome-chromeos/chromeos/
-   432316  2010-01-22 13:13   chrome-chromeos/chromeos/libcros.so
      4850  2009-12-09 15:37   chrome-chromeos/product_logo_48.png
     54594  2010-01-22 13:46   chrome-chromeos/session
         0  2010-01-18 11:52   chrome-chromeos/resources/
@@ -220,4 +218,4 @@
    127262  2010-01-21 14:05   chrome-chromeos/locales/ro.pak
    112422  2010-01-21 14:05   chrome-chromeos/locales/en-GB.pak
 ---------                     -------
- 66476904                     218 files
+ 66044588                     216 files

Review URL: http://codereview.chromium.org/552101
2010-02-15 15:01:55 +09:00
Andrew de los Reyes
c1e8d2728f enter_choot: fix breakage some people ran into
Review URL: http://codereview.chromium.org/593102
2010-02-13 12:39:21 -08:00
Andrew de los Reyes
2832fe84e1 enter chroot: permit chrome_root to contain symlink
Review URL: http://codereview.chromium.org/596108
2010-02-12 23:47:01 -08:00
Sean Parent
118fb81d3a Adding [no]runhooks, [no]chrome, and [no]official options.
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/600027
2010-02-12 16:33:58 -08:00
Andrew de los Reyes
5d0248feb8 enter_chroot: bind mount depot_tools if present outside chroot.
Another CL is coming to automatically add depot_tools to the PATH
inside the chroot. It's in a different repo.

Review URL: http://codereview.chromium.org/605016
2010-02-12 16:12:31 -08:00
Andrew de los Reyes
6d0ca16277 Enter_chroot: Mount chrome browser source inside chroot.
If one passes --chrome_root=.../path/to/chrome_root/outside/chroot to
enter_chroot.sh once, enter_chroot will make a note inside the croot
and mount it on all subsequent calls to enter_chroot, even if the
argument is not passed again. If ever enter_chroot can't find the
proper dir, it deletes any stored note.

chrome_root must contain a "src" subdirectory.

Review URL: http://codereview.chromium.org/596102
2010-02-12 14:36:08 -08:00
robotboy
18ff72b913 Create a fourth partition to put the raw kernel image in.
This is a short term fix for machines that can't boot a kernel from
the root file system of an SDCard.

This issue depends on issue 602027.

Review URL: http://codereview.chromium.org/600074
2010-02-11 17:33:32 -08:00
robotboy
2ea03ac0fc Add warn and error functions to color warning and error output.
Review URL: http://codereview.chromium.org/601050
2010-02-11 15:30:55 -08:00
Chris Sosa
b2f24a8d82 Adds ebuild support to build_autotest
Review URL: http://codereview.chromium.org/604013
2010-02-11 13:40:18 -08:00
Chris Sosa
431a7904ef Repatch
Review URL: http://codereview.chromium.org/596051
2010-02-10 17:19:24 -08:00
Andrew de los Reyes
c9317eac02 Chroot: allow multiple simultaneous entry.
Change enter_chroot.sh to keep a list of open PIDs (enter_chroot.sh
instances) in chroot/var/lock, and use flock on that file to support
atomic operations to it.

When entering chroot, append the PID to the lock file.

When exiting chroot, clear out current PID and any dead
PIDs/duplicates. If the lock file is empty, only then clean up the
mounts.

Note that I have a little bit of code duplication: the number 200,
which is a manually numbered fd in bash, seemed impossible to place
inside a variable. If you know how to do it, please let me know.

Review URL: http://codereview.chromium.org/584010
2010-02-10 13:16:36 -08:00
David McMahon
b7eb3a2be6 Add a warning to users trying to run old build scripts.
Add an exception for chrome-bot user for continuous builders.

Review URL: http://codereview.chromium.org/595009
2010-02-09 14:07:40 -08:00
David McMahon
b6fb706f38 Re-use .h code for both files. Add a license header.
Review URL: http://codereview.chromium.org/594006
2010-02-09 11:44:09 -08:00
Ken Mixter
d00425ef50 Support multiple chroots
this is necessary for portage-based builds which change the
chroot.  You must pass --chroot to the run_remote_tests in this
case.

Review URL: http://codereview.chromium.org/588010
2010-02-08 19:26:07 -08:00
Chris Masone
fdda89f49f move enable_localaccount.sh, make pam_offline use it
After this, we can update the buildbot and then land http://codereview.chromium.org/586006/show to remove the old version.

Review URL: http://codereview.chromium.org/591001
2010-02-08 13:11:31 -08:00
Ken Mixter
8a4af3a999 Make run_remote_tests also update the chroot autotest
Don't punish the good people trying to write python-only autotests by
requiring them to sit through a long build_autotest run to test
every change.  run_remote_tests and build_autotest both update
the chroot copy now.

Review URL: http://codereview.chromium.org/578027
2010-02-05 19:22:35 -08:00
Ken Mixter
1cca01402a Enable building autotests in test loop and sbt script
Review URL: http://codereview.chromium.org/556060
2010-02-01 19:05:54 -08:00
Sean O'Connor
9969ce9238 Make run_remote_test's use of ssh-agent more predictable.
Review URL: http://codereview.chromium.org/560005
2010-02-01 17:10:03 -08:00
David McMahon
797abfd825 Created branch release_30. Update CHROMEOS_VERSION_BRANCH=31 2010-01-29 11:19:14 -08:00
Darin Petkov
7470bca027 Provide an option to allow custom/local setup control file.
Review URL: http://codereview.chromium.org/553142
2010-01-28 15:21:17 -08:00
Chris Sosa
efd86f694c Add check for dpkg info and mkdir if it doesn't exist
Review URL: http://codereview.chromium.org/551177
2010-01-27 13:26:04 -08:00
Sean O'Connor
a6db82ed3e Cleanup and merge autotest wrappers.
Review URL: http://codereview.chromium.org/546137
2010-01-27 12:11:08 -08:00
David McMahon
224c7fda0c Add mechanism to support 'official' repositories and packages for releases. 2010-01-26 18:33:35 -08:00
Darin Petkov
2857eea2bc Export GCLIENT_ROOT from make_autotest
so that tests have access to the source/build trees during setup.
For example, gl_APICheck requires access to OpenGL headers.

Review URL: http://codereview.chromium.org/555111
2010-01-26 17:22:04 -08:00
Tim Gardner
c7e05719c5 kernel: use debian build infrastructure to build kernels.
This patch depends on kernel build infrastructure
mentioned in http://codereview.chromium.org/543194/show

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

Review URL: http://codereview.chromium.org/553075
2010-01-26 15:05:10 -07:00