Commit Graph

2650 Commits

Author SHA1 Message Date
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
Ken Mixter
c0921383c0 Improvements for to continuous test loop.
Run a basic check on a buildbot grabbed image to make sure it has a
kernel installed in it.

Better failure recovery.

Review URL: http://codereview.chromium.org/553063
2010-01-25 11:02:32 -08:00
Colin Watson
35431dc239 Handle some special-case naming for chromiumos-build
chromiumos-build gets less confused if we refer to the package name
e4fsprogs-git rather than the directory name e2fsprogs (which is also a
different source package downloadable from Ubuntu).

Don't bother trying to build ibus-anthy, ibus-chewing, or ibus-hangul on
anything other than i386 for now.  They aren't easily cross-buildable
and we can live without input methods.

Review URL: http://codereview.chromium.org/554063
2010-01-25 16:51:59 +00:00
Colin Watson
e550bbd5ae Don't build packages inside destination directory
chromiumos-build's destination directory shouldn't be a build directory;
as advised in chromiumos-build(1), this can cause it to think that
failed builds were actually successful.  Build downloaded source
packages in src/build/ARCHITECTURE/external/ instead.

While we're here, rename the configuration file to a more visible name.

Review URL: http://codereview.chromium.org/548137
2010-01-25 16:35:10 +00:00
Colin Watson
2c3e57fd0a Create the pkgs dir if it does not already exist
Patch Contributed By: Nasser Grainawi <nasser@codeaurora.org>

Review URL: http://codereview.chromium.org/551126
2010-01-25 16:00:55 +00:00
tedbo
3700cd8c0c Some changes to be able to build an armel-based rootfs.
Review URL: http://codereview.chromium.org/554056
2010-01-22 16:39:36 -08:00
Andrew de los Reyes
cb68f29229 Build: allow package lists to be filtered by arch.
This is copied from lminier@ in his patch "Rewrite local repository
generation".

Review URL: http://codereview.chromium.org/548109
2010-01-22 14:54:42 -08:00
Tim Gardner
dd45d3272f Revert "kernel: Use the debian infrastructure to construct kernel config files"
This is causing some kernel version package issues. Revert until I can
figure out the right fix.

This reverts commit 6eda4bc874427041c5a2eab794eb72284e9dcee7.
2010-01-22 14:40:11 -07:00
Chris Sosa
73de2358c0 Adds script to mod image for test to enable new login manager on test images
Review URL: http://codereview.chromium.org/555039
2010-01-22 13:33:25 -08:00
Tim Gardner
9ee75d90a3 kernel: Use the debian infrastructure to construct kernel config files
This is the first step towards abandonding make-kpkg. The next
step is to remove the kernel config files under
$(KERNEL_DIR)/files/Config, thereby requiring the use
of config files in $(KERNEL_DIR)/files/debian.chrome/config

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

Review URL: http://codereview.chromium.org/549135
2010-01-22 12:43:21 -07:00
Colin Watson
aaedee7f36 Various image build improvements for ARM
Add an --arch option to build_image.sh, passed to install_packages.sh.
Use it to set APT::Architecture.

Add --mirror2/--suite2 options to build_image.sh, and --server2/--suite2
options to install_packages.sh (differing option names to match options
that were there already).  This allows some of the packages to be pulled
from ports.ubuntu.com rather than from local_packages, like this:

  ./build_image.sh --arch armel --mirror2 http://ports.ubuntu.com/ubuntu-ports --suite2 karmic

Copy only .debs from local_packages, not whatever other junk might be
lying around there.

Use copy: rather than file: for local_packages, so that the files will
be copied into the apt cache directory for the benefit of
dpkg_no_scripts.sh.

Review URL: http://codereview.chromium.org/554031
2010-01-22 17:57:28 +00:00
Tim Gardner
1bd60cdedf Split the binary and source mirror defaults
(This was orignally reveiwed in the wrong place:
http://codereview.appspot.com/193057/show)

Many local mirrors (such as mine) only contain mirrors
of the binary packages, sufficient to create a debootstrap
chroot. Source packages, the sum of which, can be quite large and
are not typically mirrored locally. This patch allows one
to create a chroot with overrides to the desired mirrors, e.g.,

./make_chroot.sh --replace --mirror http://mirror.rtg.net/ubuntu

In this example all of the binaries come from my local mirror, all source
packages come from $DEFAULT_DEV_MIRROR.

./make_chroot.sh --replace --mirror_src http://archive.ubuntu.com/ubuntu

Here the source packages are pulled from the Ubuntu archive whereas the
binaries come from $DEFAULT_DEV_MIRROR.

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

Review URL: http://codereview.chromium.org/545169
2010-01-22 09:46:32 -07:00