5326 Commits

Author SHA1 Message Date
Michael Marineau
e03e9dbfdc Merge pull request #32 from marineam/sdk-version
fix(catalyst): Use new COREOS_SDK_VERSION var from version.txt
2013-07-13 18:35:35 -07:00
Michael Marineau
f24a02e034 fix(catalyst): Use new COREOS_SDK_VERSION var from version.txt
The current SDK version is now provided by the manifest's version.txt
file which is already sourced by common.sh.
2013-07-13 21:06:29 -04:00
Michael Marineau
c707f8ed92 Merge pull request #31 from marineam/toolchain
Script updates
2013-07-10 17:08:17 -07:00
Michael Marineau
ddb92a0887 feat(build_library): Add --upload_path option to override default
This will be used to upload the latest images built from master, we
don't need every build so we just want to upload to a 'master'
directory, not one named for the current version.
2013-07-10 19:44:40 -04:00
Michael Marineau
15b637aa78 fix(catalyst): Take advantage of binary packages for cross toolchains.
The previous logic here only skipped the bootstrap if the toolchain
packages were already installed (which won't happen on the build host)
but we can also skip the bootstrap if binary packages are available
(which will happen on the build host). This will help avoid needless gcc
rebuilds :)
2013-07-10 17:31:22 -04:00
Michael Marineau
25f91de8e6 Merge pull request #30 from marineam/toolchain
Build cross toolchain
2013-07-10 11:42:35 -07:00
Michael Marineau
2a082de150 feat(bootstrap_sdk): Build cross toolchains
Until now we haven't built our own cross toolchains and used old
packages from Google. It is time to break free and move on!
2013-07-09 19:35:13 -04:00
Michael Marineau
d3e741b807 fix(bootstrap_sdk): Rename catalyst_stage4.sh since it is sdk specific
About to become a lot more sdk specific too. :)
2013-07-09 15:57:21 -04:00
Michael Marineau
380f66c19c Merge pull request #29 from marineam/semver
fix(common): Adopt semver formatted version strings.
2013-07-09 11:47:04 -07:00
Michael Marineau
680c40ad81 fix(common): Adopt semver formatted version strings.
Drop zero padding and format versions as described by the semver spec.
The terminology is a little awkward because we inherited the backwards
meaning of 'BUILD' and 'BRANCH' version identifiers but that the version
strings themselves conform to semver.

(This doesn't change the current version, that'll happen with our next
branch cut)
2013-07-09 11:31:39 -07:00
Brandon Philips
250fa30197 Merge pull request #28 from marineam/updates
Updates for au-generator.zip
2013-07-09 06:41:28 -07:00
Michael Marineau
ef7aea86a9 fix(generate_au_zip): Add core-admin to au-generator.zip
Forgot to add this in previous commits, so here it is!
2013-07-08 21:54:57 -07:00
Michael Marineau
ea8ed8f5da fix(core_upload_update): Set PATH for au-generator.zip bundles.
The tools provided by au-generator.zip are expected to be in the PATH by
this script and the scripts it calls. Make it so.
2013-07-08 21:50:22 -07:00
Michael Marineau
c9a6956f6f fix(core_upload_update): Add to au-generator.zip, move some operations.
Add core_upload_update to au-generator.zip which requires some extra
logic to make it runnable anywhere it may be. To organize the code a
little better all the delta_generator calls have been moved to
cros_generate_update_payload. core_upload_update is now just a wrapper
around cros_generate_update_payload and core-admin.
2013-07-08 21:39:05 -07:00
Michael Marineau
12935743b6 fix(common.sh): Fallback to loading version.txt from current directory.
This makes version handling continue to work normally with
au-generator.zip
2013-07-08 21:39:04 -07:00
Michael Marineau
12149d8421 fix(generate_au_zip): Remove unused scripts from au-generator.zip
We have no need to ship convert_recovery_to_ssd.sh with builds.
2013-07-08 21:39:04 -07:00
Don Garrett
048b3cecdf Update generate_au_zip.py location for cgpt.
Cgpt was moved and a symlink based wrapper was added. That wrapper will
be improved soon, when when that's true we'll need to change this back.

A specific note... cgpt is currently statically linked. If that wrapper does
not remain statically linked, then a simple revert won't be enough.

BUG=chromium-os:39814
TEST=Manual au-generate.zip creation.

Change-Id: I2705b1eddd8ef28c7eb099512513daf80f586218
Reviewed-on: https://gerrit.chromium.org/gerrit/45128
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
2013-07-08 21:35:36 -07:00
Michael Marineau
7320602927 Merge pull request #27 from marineam/rootfs
Rootfs by UUID
2013-07-08 13:38:21 -07:00
Michael Marineau
3fa29024e1 fix(build_image): Configure legacy bootloaders to set root by UUID.
Make use of the new partition UUIDs for ROOT-A and ROOT-B in the root=
kernel parameters provided by the legacy (non-kexec) bootloaders. This
makes all of our images bootable as-is without having to pass them
through image_to_vm.sh. :-D
2013-07-08 16:28:12 -04:00
Michael Marineau
21b9f711a4 feat(cgpt): Statically allocate UUIDs for ROOT partitions.
Before we can switch from using device names in root= to partition table
UUIDs we need some values that will remain consistent across upgrades
since the partition table is not updated when filesystems are.
2013-07-08 15:49:39 -04:00
Brandon Philips
711f7bd028 Merge pull request #25 from philips/print-image_to_vm-for-dev
fix(build_image): print out image_to_vm for dev image
2013-07-07 22:14:50 -07:00
Brandon Philips
fce31ab6fe fix(build_image): print out image_to_vm for dev image
this broke accidently in a previous commit. Fix it by printing the
instructions to build a vm again.
2013-07-07 21:41:28 -07:00
Brandon Philips
d786023292 Merge pull request #24 from philips/use-coreos-prefix
fix(build_library/legacy_disk_layout): Use coreos- prefixes
2013-07-07 21:35:41 -07:00
Brandon Philips
31cd4c47a9 fix(build_library/legacy_disk_layout): Use coreos- prefixes
vboot_reference now recognizes coreos-reserved and coreos-rootfs. Use
these prefixes so we stop using the chromeos GUIDs.

Test-plan: Tested on a VM and it boots and updates.
2013-07-07 21:18:49 -07:00
Michael Marineau
32a58da5de Merge pull request #23 from marineam/images
Upload official filesystem images
2013-07-05 22:13:20 -07:00
Michael Marineau
6c1e03c06e fix(bootstrap_sdk): Report the time it took to complete 2013-07-05 23:57:04 -04:00
Michael Marineau
b4252985f2 feat(build_image): Add upload support for official builds 2013-07-05 23:55:50 -04:00
Michael Marineau
34bbdc1996 fix(build_packages): Move gsutil code from build_packages to a library.
To avoid making the same gsutil changes in more scripts move the code to
a library file where some of the basic parts can be shared.
2013-07-05 23:54:23 -04:00
Michael Marineau
8af55de72c fix(common.sh): Correctly report script name in tracebacks
Pretty simple typo.
2013-07-05 21:34:11 -04:00
Michael Marineau
9deade7470 Merge pull request #22 from marineam/boto
fix(build_packages): Fix check for .boto, argument name was wrong.
2013-07-05 14:56:21 -07:00
Michael Marineau
4bcee421ad fix(build_packages): Fix check for .boto, argument name was wrong. 2013-07-05 17:49:38 -04:00
Brandon Philips
2ca214d738 Merge pull request #21 from philips/building-of-production-coreos-images
Building of production coreos images
2013-07-05 14:13:52 -07:00
Brandon Philips
05d70da37c fix(image_to_vm.sh): forward fewer ports
we disabled systemd-rest for now so don't tell people to forward all of
those ports.
2013-07-05 14:08:14 -07:00
Brandon Philips
bfbfd9f4eb chore(build_container): delete
This tool was a bit of a hack and isn't really used. Delete it.
2013-07-05 12:06:41 -07:00
Brandon Philips
a45c529549 feat(build*): add CoreOS production image building
This will create a CoreOS production image and support it with the tools
like image_to_vm.sh and build_image.
2013-07-05 12:06:40 -07:00
Brandon Philips
195d052495 fix(*): drop FACTORY images
we don't need factory image functionality. Drop it to simplify our
scripts and prepare for our "production" feature and flags.
2013-07-05 09:37:38 -07:00
Michael Marineau
b9b02855ca Merge pull request #20 from marineam/target
Add ability to upload amd64-generic packages
2013-07-04 11:37:40 -07:00
Michael Marineau
d619e4f326 fix(bootstrap_sdk): Remove seedcache and snapcache features.
We aren't taking full advantage of seedcache and untarring things isn't
a big burden on us anyway so don't bother and hopefully avoid leaving
oodles of files behind.
2013-07-03 20:19:41 -04:00
Michael Marineau
6aaaf3b846 feat(build_packages): Add --upload option to build_packages
Defaults to upload for official builds and not otherwise.
2013-07-03 20:10:16 -04:00
Brandon Philips
098b91013d Merge pull request #19 from marineam/updates
fix(update_ebuilds): Switch default source to rsync mirrors.
2013-07-03 13:52:57 -07:00
Brandon Philips
61b3560bec Merge pull request #18 from philips/core_upload_update-signing
Core upload update signing
2013-07-03 12:20:15 -07:00
Brandon Philips
d85bf2432a feat(core_upload_update): insert the public key
shove the public key into the image so it can be found by update_engine
2013-07-03 12:18:45 -07:00
Michael Marineau
734d446aae fix(update_ebuilds): Switch default source to rsync mirrors.
Anonymous CVS is too unreliable (or I keep getting blocked, who knows)
so switch the default remote source to the Gentoo rsync mirrors which is
probably what I should have done in the first place. :)
2013-07-03 14:38:11 -04:00
Brandon Philips
61b3246614 Merge pull request #17 from marineam/version
fix(bootstrap_sdk): Default to uploading official builds.
2013-07-03 09:55:21 -07:00
Michael Marineau
e9ca88bc69 fix(bootstrap_sdk): Default to uploading official builds. 2013-07-03 12:24:09 -04:00
Michael Marineau
794f472faf Merge pull request #16 from marineam/version
add(master_release): Add script for updating master's version.txt
2013-07-03 09:15:33 -07:00
Michael Marineau
5790b3e182 fix(*_release): Calculate TODAYS_VERSION in common.sh 2013-07-03 12:11:49 -04:00
Michael Marineau
1099dbe319 add(master_release): Add script for updating master's version.txt
This is intended to be called after branch_release and all official
builds from that new branch are complete. Then updating master's
version.txt will switch things to start using that new release as the
source for binary packages.

Complete documentation for this whole process coming soon. :)
2013-07-03 11:40:36 -04:00
Brandon Philips
3b9ff1ea62 fix(core_upload_update): use the base image
- Use variable for the image name
- add COREOS prefixed variables so we can start weaning ourself off of the
others.
2013-07-02 16:14:07 -07:00
Brandon Philips
ff7b7b064d chore(core_upload_update): remove TODO 2013-07-02 14:12:32 -07:00