Commit Graph

28179 Commits

Author SHA1 Message Date
Chris Masone
debaa3d8cf Revert "Use --fast by default in build_image when --jobs is enabled."
This reverts commit f0fb864e8d.

This change needs to be reverted because it suppresses logging output
from the build process.  Thus, when something goes wrong...the
sherriff is left completely helpless in terms of debugging the issue.

TBR: davidjames@chromium.org
2010-07-08 21:10:23 -07:00
David James
f0fb864e8d Use --fast by default in build_image when --jobs is enabled.
Also update eretry to not pass in $EMERGE_JOBS anymore, in coordination with my previous change, which passed it in directly instead of depending on eretry to do so: http://codereview.chromium.org/2944004/show

TEST=Ran build_image --jobs 2 and build_packages --jobs 2
BUG=none

Review URL: http://codereview.chromium.org/2914004
2010-07-08 20:17:45 -07:00
David James
9b20ce4cb0 Cleanup parallel_emerge a bit.
- Add support for --jobs flag.
- Add support for --depclean with no arguments.
- Cleanup comments.
- Print out error details the first time a package fails.

TEST=Ran full build_packages --fast
BUG=none

Review URL: http://codereview.chromium.org/2853031
2010-07-08 17:51:42 -07:00
Ken Mixter
26b6408e5b Support non-default board use case
Review URL: http://codereview.chromium.org/2955002
2010-07-08 17:28:38 -07:00
Tan Gao
eb6914ed3c TBR: wad@chromium.org
Change-Id: I9521241704d8c41b3a81f921f54bcb284ac581fb
2010-07-08 15:47:45 -07:00
Darin Petkov
16ca07c92e Use PKG_INSTALL_MASK to prevent debug symbols from getting into the binpkg.
The mask is set only if it's not set already. Also, it picks up the default
install mask from common.sh.

BUG=none
TEST=gmerged chromeos-chrome with PKG_INSTALL_MASK set/unset.

Review URL: http://codereview.chromium.org/2907005
2010-07-08 15:17:01 -07:00
Antoine Labour
a166ca1dc0 add cros_deps_diff tool that creates dependency graph diffs
This is useful to understand why packages may be different between say, x86 and arm.
Use cros_extract_deps to extract the dependency graph for each, then:
cros_deps_diff -o path/to/output x86-generic.deps arm-generic.deps

Review URL: http://codereview.chromium.org/2870042
2010-07-08 14:52:37 -07:00
Tien-Ren Chen
71ff3fc632 fix disappearing vmlinuz_hd.vblock problem
Review URL: http://codereview.chromium.org/2905001
2010-07-08 15:27:59 +08:00
David McMahon
edf039490e Use --official_build boolean.
Review URL: http://codereview.chromium.org/2843051
2010-07-07 12:48:36 -07:00
Nick Sanders
1e53c94ac9 remove autotests in case they come back
Review URL: http://codereview.chromium.org/2819039
2010-07-07 12:42:17 -07:00
Tammo Spalink
cfc0c64823 Allow python to find gtk module. (originally nsanders CL)
BUG=4464
TEST=manually edit file so far

Review URL: http://codereview.chromium.org/2850045
2010-07-07 10:51:21 +08:00
Louis Yung-Chieh Lo
85d49fc1d9 Copy vmlinuz_hd.vblock only in x86 platform.
Review URL: http://codereview.chromium.org/2842044
2010-07-05 22:55:31 +08:00
Louis Yung-Chieh Lo
ca1c2b0430 Change code of copy vmlinuz_hd.vblock to make_image_bootable().
Review URL: http://codereview.chromium.org/2857037
2010-07-05 17:37:05 +08:00
Louis Yung-Chieh Lo
3602040b74 Use the new developer keys to sign things. (submit for Bill)
The original CL is http://codereview.chromium.org/2868044/show

Review URL: http://codereview.chromium.org/2818045
2010-07-05 13:23:34 +08:00
Will Drewry
25861ee160 TBR: use the correct output directory
Pushed with the rootfs instead of output dir.

TBR=fes
BUG=none
TEST=manual
2010-07-04 05:09:41 -07:00
Will Drewry
c985ae271f TBR: build_image chmods the /boot copy
TBR=fes
BUG=none
TEST=manual (no local archive_build)
2010-07-04 05:06:50 -07:00
Will Drewry
ce2caf47e4 TBR: fix up arm portion of update_bootloaders
Removed two errant locals in the arm section

TEST=manual build_image on tegra1-dev-board
BUG=none
TBR=fes
2010-07-03 19:09:09 -07:00
Will Drewry
82780e5c37 TBR: clean up arm
Right now, the created arm.mbr is the size of the ESP
partition. It should be truncated though to just the mbr size.

In addition, dm= doesnt do anything on arm yet so replacing use with a todo and adding a check if it isn't there.

TEST=manually ran
BUG=none
TBR=fes
2010-07-03 18:27:10 -07:00
Will Drewry
821d07cb42 build_image: fix hash perms & arm image path
This should fix the bad parsing and the failed archiving.
EMphasis on should. I'll keep monitoring.

TEST=in progress
BUG=none

Review URL: http://codereview.chromium.org/2812044
2010-07-03 17:14:58 -07:00
Will Drewry
4a675e18a0 [PATCH 5/5] build_image: refactor bootloaders and enable vboot config paths
This change adds make_image_bootable which combines the
prior changes to make ARM, x86-legacy, x86-efi, and x86-fw
share kernel commandlines (where possible) and not rely on
keeping data stored on the rootfs to do so.

It does not enable a cut over to syslinux yet, though.

TEST=manually built image and tested boot and install (in progress)
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2834038
2010-07-03 13:35:02 -05:00
Will Drewry
d3c938b85d [PATCH 4/5] update_bootloaders.sh, create_esp.sh: add two helpers
Adds two helpers that are not used yet.  They will be
used in the next CL to unify the bootloaders in use
in build_image.

TEST=used in the next CL but otherwise not called.
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2829039
2010-07-03 13:32:26 -05:00
Will Drewry
1ee156fd00 [PATCH 3/5] Unify efi and legacy bootloader configuration generation
This change unifies the creation of extlinux.conf,
syslinux cfgs, and grub efi files.  It shouldn't change the
existing behavior but does add support for further arguments
and future use of syslinux (once it is properly rewritten by
an installer or other script).

TEST=in progress; manual run
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2829038
2010-07-03 13:27:19 -05:00
Will Drewry
bcbf1c4484 [PATCH 2/5] build_kernel_image: add verified boot support
Adds rootfs image hashing to the build.  If it is hashed
even if the default boot device is not dm-0, the baseline
rootfs integrity information will be included (though
device setup will fail in the logs during boot).

TEST=manually ran without enabling vboot support.
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2808043
2010-07-03 10:23:30 -05:00
Will Drewry
fb48fa3500 TBR: mount_gpt_image: fix missing guard for esp
Missing check during mkdir causes failure with -e empty.

The tree broke prior to this commit, but this will break the dev
build so bypassing hooks. sorry.

TEST=reran build_image
BUG=none
TBR=adlr
2010-07-02 16:35:27 -05:00
Will Drewry
61f39fb266 [PATCH 1/5] mount_gpt_image: mount the esp image
Adds support for mounting the esp image.
In the future, all legacy boot loaders will live on
the ESP partition (#12) to avoid modifying the rootfs
partition with bootloader changes in the configuration or
preamble.  This is needed.

TEST=manually reran mount_gpt_image.sh users.
BUG=chromium-os:327

Review URL: http://codereview.chromium.org/2811042
2010-07-02 16:15:22 -05:00
Tan Gao
f5a61e900c add boolean flag to start_devserver to support requests from update_engine
Change-Id: Iaea128d9626ff93ec600d3a2b878885a2efefb28

Review URL: http://codereview.chromium.org/2817049
2010-07-02 13:53:17 -07:00
David James
a27ae994b5 Robustify package upgrades and dependency checking.
- Unmerge appropriate packages during upgrades and downgrades.
- Calculate time spent in dependency generation to the tenth of a second.
- Only track dependencies of packages that are actually being installed.
- Ignore PDEPEND, as it has no impact on dependency ordering.
- Only break dependency chains that go against Portage's install order.
- Rename Failed -> Retrying.
- Print emerge command lines as they are run.

TEST=Emerged hard-host-depends and ran build_packages with parallel_emerge
BUG=none

Review URL: http://codereview.chromium.org/2886010
2010-07-01 20:52:59 -07:00
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