Commit Graph

4258 Commits

Author SHA1 Message Date
David Michael
2447debece Merge pull request #705 from dm0-/jenkins
Add Jenkins scripts
2017-06-30 17:04:46 -07:00
Benjamin Gilbert
c47ef878ef Merge pull request #706 from bgilbert/sdk_version
tag_release: Verify SDK version exists
2017-06-29 17:41:04 -07:00
Benjamin Gilbert
7e93698c9b tag_release: Verify SDK version exists
Some releases may omit the SDK for expediency.
2017-06-29 17:20:29 -07:00
David Michael
9256893e83 jenkins: Drop conditions not affecting this branch 2017-06-29 15:34:29 -07:00
David Michael
9cfed47be0 jenkins: Re-add Jenkins scripts to this repository
We are going to restore the split-script setup from the old Jenkins
server.  This ensures that the each version's release process is
actually running with scripts in the correct release branch.  It
also allows branching the VM format lists.

Note that the scripts added here only cover the currently active
jobs in the main build pipeline.  There is no reason to add other
jobs, since they are mostly just running a single command using a
mantle binary from its master branch.

The scripts in this repository pick up after Jenkins has set up an
environment with all parameters and credentials defined, and an SDK
was prepared and validated.
2017-06-29 15:16:54 -07:00
David Michael
336ac28026 Merge pull request #695 from dm0-/perl
Add workarounds for upgrading to Perl 5.24
2017-06-26 16:50:23 -07:00
Benjamin Gilbert
84db4c6f99 Merge pull request #700 from bgilbert/add-vagrant-vbox
build_library: Add vagrant_virtualbox image type
2017-06-22 13:45:28 -07:00
Benjamin Gilbert
e98efe074d build_library: Add vagrant_virtualbox image type 2017-06-22 13:41:15 -07:00
Benjamin Gilbert
7db2e77b0b Merge pull request #699 from crawford/vagrant
build_library: split vagrant and vagrant vbox
2017-06-22 13:38:33 -07:00
Alex Crawford
65986e02bc build_library: split vagrant and vagrant vbox
This reverts the vagrant image back to using oem-vagrant because we
don't want to break the existing images. It moves the new,
Ignition-powered virtualbox flavor of vagrant into a new image.
2017-06-22 13:23:50 -07:00
Benjamin Gilbert
ab4705f9dc Merge pull request #697 from bgilbert/generic
Drop ISO/PXE support for amd64-generic, and an unused variable
2017-06-21 13:28:55 -07:00
Benjamin Gilbert
380d5df8cf Merge pull request #698 from bgilbert/chromeos-common
chromeos-common.sh: Drop symlink
2017-06-19 16:54:24 -07:00
Benjamin Gilbert
509cc58056 chromeos-common.sh: Drop symlink
The last user was in 82e2461ddf.
e84f922ba5 has relevant context.
2017-06-19 16:23:34 -07:00
David Michael
0cea6cb590 build_torcx_store: initialize upload options 2017-06-17 18:01:21 -07:00
Benjamin Gilbert
1ef4609ef2 scripts: Drop unused BOARD_USE assignments 2017-06-16 19:22:51 -07:00
Benjamin Gilbert
cb8b8f34ca build_library: Drop ISO/PXE support for amd64-generic 2017-06-16 19:05:07 -07:00
Euan Kemp
849af767a6 Merge pull request #692 from AlexNPavel/vagrant-virtualbox
Use new oem packages for virtualbox and vagrant
2017-06-16 17:00:39 -07:00
David Michael
18d89accde Merge pull request #685 from dm0-/torcx
Populate the torcx vendor store in OS images
2017-06-16 15:57:04 -07:00
Euan Kemp
80977c015e Merge pull request #696 from euank/download-chan
offline_signing: take download channel as an arg
2017-06-14 16:45:16 -07:00
Euan Kemp
cb38d3125b offline_signing: take download channel as an arg
A validation for the channel variable was also added so old users of the
3-argument form would get a sensical error if they used a invocation
from their history.
2017-06-14 16:42:17 -07:00
David Michael
5a50abc4ac check_root: silence the incorrect libperl warnings 2017-06-14 16:29:14 -07:00
David Michael
6508cf3faa update_chroot: fix SDK updates during the Perl 5.24 upgrade 2017-06-14 16:28:55 -07:00
David Michael
135f64d07a Merge pull request #691 from dm0-/restore
Revert Perl workarounds
2017-06-14 16:27:50 -07:00
Alexander Pavel
7298b0bf2a build_library: Change oem package for vagrant to oem-vagrant-virtualbox
This changes the oem-package for vagrant to vagrant-virtualbox,
which uses ignition instead of cloud-clonfig and sets the oem id
to "virtualbox" so that ignition can handle the machine correctly
2017-06-14 15:58:17 -07:00
Alexander Pavel
cab8e3ed37 build_library: Add virtualbox oem to vm_image_util
This commit adds support for the oem-virtualbox package for
virtualbox builds
2017-06-14 13:21:21 -07:00
David Michael
59643849ad Revert "update_chroot: fix SDK updates during the Perl 5.22 upgrade"
This reverts commit 09efc42e8f.
2017-06-14 13:04:51 -07:00
David Michael
a707c1b597 Revert "catalyst: temporarily disable update_seed"
This reverts commit 43807d6763.
2017-06-14 13:04:09 -07:00
Benjamin Gilbert
15a21b5999 Merge pull request #690 from bgilbert/cleanups
Drop qemu_xen and secure_demo image types
2017-06-08 15:56:45 -07:00
Benjamin Gilbert
40978865d2 Revert "A pile of goo to support a minimal secure boot demo"
This reverts commit 0c6adece3d.
2017-06-08 14:51:15 -07:00
Benjamin Gilbert
8b322c6556 test_oem_pkgs: Drop reference to oem-xendom0 2017-06-08 14:48:38 -07:00
Benjamin Gilbert
6878bd8f5f Revert "vm_image_util: add qemu_xen image type for testing"
This reverts commit fe9db4157b.
2017-06-08 14:47:23 -07:00
Benjamin Gilbert
78c50c50f2 Merge pull request #689 from bgilbert/container-linux
README: CoreOS -> Container Linux
2017-06-08 12:30:48 -07:00
Benjamin Gilbert
9a277e62b1 README: CoreOS -> Container Linux 2017-06-08 12:17:59 -07:00
David Michael
a0bebcc38b build_image: copy torcx images into the vendor store
This adds the option --torcx_store to specify the path to a
directory containing torcx images to be baked into the OS image.  A
blank string can be given instead of a path to restore the previous
behavior and leave an empty vendor store.

The default value is the default path created by build_torcx_store,
which is used when build_packages updates torcx images.  This means
that the current pattern "./build_packages && ./build_image prod"
should result in a fully updated OS image with all torcx images
available in the vendor store.
2017-06-02 14:23:03 -07:00
David Michael
f91198ca0e build_packages: also build all torcx images by default
The idea is that once the installed board packages have changed,
the sysroot that was used to build any existing torcx packages may
no longer be compatible.  It will therefore run build_torcx_store,
passing relevant options to it, to build a new torcx store of
images with the current sysroot.

This adds --skip_torcx_store to use the previous behavior.
2017-06-02 14:22:53 -07:00
David Michael
8e214f5779 build_torcx_store: add a command for building torcx images
This creates new torcx stores under src/build/torcx, similar to the
layout of src/build/images.  The script contains a list of packages
to build so there is a deterministic set that gets branched with
this repository.  For development, a different list can also be
given on the command line.

Images are created by building only the direct dependencies of
meta-packages under the app-torcx category.  They use the board
root as the sysroot for cross-compiling.  The base layout of the
installation root is structured so everything is under either /bin
or /lib for simplicity.  Any systemd units are rewritten so they
depend on a successful torcx apply, and they inject the appropriate
torcx runtime directory into the PATH.

When ELF binaries are compiled, they are given an RPATH value of
/ORIGIN/../lib which gets rewritten to $ORIGIN/../lib.  The final
value enables automatic dynamic linking with packaged libraries.
The intermediate value is to avoid having to escape the $ through
the various build system layers (which are different for each
package) and it pretends to be an absolute path to silence security
warnings.
2017-06-02 14:15:03 -07:00
Benjamin Gilbert
dacdc004fd Merge pull request #688 from bgilbert/yubikey
enter_chroot: Fix ownership of /run/user/UID
2017-05-31 14:31:57 -07:00
Benjamin Gilbert
b5f19e5d75 enter_chroot: Fix ownership of /run/user/UID
We were chowning the host directory, not the one in the chroot.

Host gpg >= 2.1.13 puts the gpg-agent socket in /run/user/UID/gnupg,
which is bind-mounted into the chroot, but the SDK gpg was ignoring it
because /run/user/UID was not owned by UID. This broke tag signing with
YubiKeys.
2017-05-31 13:52:16 -07:00
David Michael
cbe102142b enter_chroot: initialize with mantle in cros_workon 2017-05-26 14:43:42 -07:00
Benjamin Gilbert
5741cedfcc Merge pull request #686 from bgilbert/issues
grub: Update bug report URL
2017-05-25 12:53:49 -07:00
Benjamin Gilbert
6cfb286748 grub: Update bug report URL 2017-05-25 11:38:14 -07:00
Benjamin Gilbert
98a8acffbd Merge pull request #684 from bgilbert/prune-azure
oem/azure: Drop scripts obsoleted by plume
2017-05-19 18:08:25 -07:00
Benjamin Gilbert
7ac67b7c97 oem/azure: Drop scripts obsoleted by plume 2017-05-15 12:07:15 -07:00
David Michael
ea0e8fd583 Merge pull request #670 from dm0-/tag-branches
tag_release: branch important projects automatically for alpha tags
2017-05-09 16:20:57 -07:00
Benjamin Gilbert
5177c10191 Merge pull request #679 from bgilbert/format
image_to_vm: Default to qemu_uefi on ARM
2017-05-08 14:09:52 -07:00
Benjamin Gilbert
08841b1661 Merge pull request #683 from bgilbert/pushd
image_to_vm: Silence stray output when --from is used
2017-05-05 16:52:21 -07:00
Benjamin Gilbert
a7e9af386c image_to_vm: Silence stray output when --from is used 2017-05-05 16:38:37 -07:00
Euan Kemp
ef65081892 Merge pull request #680 from xcompass/vmware-dhcp-default-no
Change default value of dhcp for vmware template to no
2017-05-04 17:09:17 -07:00
Pan Luo
234ae23443
Change default value of dhcp for vmware template to no
When OVA template is not being used, the default dhcp value yes will
trigger cloud-init to generate a 00-.network file, which will break
network connectivity Intermittently. Please see the details here:
https://github.com/coreos/bugs/issues/1802#issuecomment-297847614
2017-05-04 09:30:55 -07:00
Benjamin Gilbert
c98788befc image_to_vm: Default to qemu_uefi on ARM
qemu makes no sense on that platform.
2017-05-02 15:02:09 -07:00