Commit Graph

25366 Commits

Author SHA1 Message Date
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
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