Commit Graph

5075 Commits

Author SHA1 Message Date
Michael Marineau
f5970d877c build_packages: reduce the noise that --depclean generates 2015-08-04 14:46:09 -07:00
Michael Marineau
95fec562c2 Merge pull request #439 from marineam/checkroot
check_root: update ignore list for arm64, make error non-fatal
2015-07-30 13:45:54 -07:00
Michael Marineau
cf26510ea7 check_root: update ignore list for arm64, make error non-fatal 2015-07-29 19:22:55 -07:00
Michael Marineau
3d3ca2b711 Merge pull request #438 from marineam/clean
update_chroot/build_packages: remove obsolete packages
2015-07-24 14:51:15 -07:00
Michael Marineau
e881b270db update_chroot/build_packages: remove obsolete packages
Before attempting to do @preserved-rebuild to fix linked against old
libraries remove any packages that no longer have corresponding ebuilds,
making them impossible to rebuild. This uses `--depclean`'s secondary
meaning: `--unmerge` but only remove packages without dependencies.
2015-07-24 14:38:09 -07:00
Michael Marineau
0fbb1891e0 Merge pull request #435 from marineam/check
Improved/faster package checks
2015-07-22 20:46:50 -07:00
Michael Marineau
d77449e9d6 Merge pull request #437 from marineam/grub
grub_install: stash an exact copy of the MBR boot code.
2015-07-16 22:24:09 -07:00
Michael Marineau
806d9ca313 grub_install: stash an exact copy of the MBR boot code.
Useful for repairing the MBR without needing GRUB's tools.
2015-07-16 18:06:35 -07:00
Michael Marineau
fd2d43d487 Merge pull request #436 from marineam/vmware
Revert "build_library: set osType to otherlinux-64"
2015-07-16 12:44:40 -07:00
Michael Marineau
d27bc5aeb3 Revert "build_library: set osType to otherlinux-64"
This reverts commit 39bb800f16.

This change disabled a number of features so it isn't suitable for the
generic VMware templates. We need to re-trace our steps to list exactly
what tools/systems weren't accepting the linux26 type.
2015-07-16 12:34:33 -07:00
Alex Crawford
0b0aa88be3 Merge pull request #427 from crawford/disk_util
disk_util: use the dummy disk UUID
2015-07-15 00:03:12 -07:00
Michael Marineau
5985b1e3d6 build_library: replace package checking script
The new python script check_root uses data that portage already
maintains on what shared libraries packages need or provide instead of
re-scanning whatever ELF files that can be found. This is much more
comprehensive but there is a bit of a transition issue for folks with
long-lived SDKs: packages built with portage older than 2.2.18 do not
include this data. As such for now the check is non-fatal and provides a
command you can use to refresh locally installed packages.

The code checking for conflicts between top level directories and /usr
has also been rewritten. Both tests now are considerably faster.
2015-07-12 15:50:58 -07:00
Michael Marineau
9d4d888429 update_chroot/build_packages: trigger @preserved-rebuild
Rebuilds packages that are linked against old libraries that have been
upgraded or removed from the system. Skipping this can lead to shared
library checks looking ok in the build root but then built images have
broken library dependencies.
2015-07-12 15:48:21 -07:00
Michael Marineau
494505ec7d Merge pull request #434 from marineam/roadmap
Update OS roadmap
2015-07-10 11:46:26 -07:00
Michael Marineau
df8aeda347 Update OS roadmap 2015-07-10 11:43:53 -07:00
Alex Crawford
93e5faebd1 Merge pull request #423 from stresler/patch-1
Adding packet to the list of img and oem types.
2015-07-10 08:39:45 -07:00
Michael Marineau
17ff57c376 Merge pull request #433 from marineam/rebuild
build_packages: be less aggressive about rebuilding packages
2015-07-08 13:58:22 -07:00
Michael Marineau
28c3c3def3 build_packages: be less aggressive about rebuilding packages
The --rebuild-if-unbuilt emerge option will recompile packages if any
build-time dependencies changed. This can be a useful safety to make
sure applications get re-linked and so forth. However recent versions of
portage have grown better defaults for choosing when to rebuild so lets
turn the build_packages flag around and leave emerge to do its default
behavior and see if that is sufficiently safe.
2015-07-08 13:45:18 -07:00
Michael Marineau
5d037e2840 Merge pull request #432 from marineam/cleanup
bootstrap_sdk: do not remove make.conf
2015-07-06 13:22:41 -07:00
Michael Marineau
aa4ba8b2bb bootstrap_sdk: do not remove make.conf, turns out catalyst runs sed over it 2015-07-06 13:14:51 -07:00
Michael Marineau
db5b23df47 Merge pull request #431 from marineam/cleanup
Simplify SDK setup
2015-07-06 12:15:56 -07:00
Michael Marineau
2eec99130b setup_board: simplify PORTAGE_USERNAME handling 2015-07-05 18:01:50 -07:00
Michael Marineau
1fa7ef236b update_chroot: remove dependency on complex 'chromeos-cache' links
The distfiles cache is always under .cache in the repo tree but there is
a lot of extra logic to make that configurable along with compatibility
symlinks for previous locations. Just yank it all out.
2015-07-05 17:54:00 -07:00
Michael Marineau
611ed7698e enter_chroot: remove subversion config goo
We do not have any svn based live ebuilds that require credentials which
I presume is the only reason for shuffling svn configs like this.
2015-07-05 17:20:43 -07:00
Michael Marineau
db734ea417 bootstrap_sdk: do not leak catalyst config into sdk tarballs
The version of repos.conf/coreos.conf that catalyst needs isn't valid
for normal SDK chroots and causes env-update to spew errors when it is
run prior to update_chroot which configures portage properly.
2015-07-05 16:57:05 -07:00
Michael Marineau
174a847e36 update_chroot: remove dependence on /usr/local/portage/* symlinks
A step in reducing the amount of initialization code required: drop
needless symlinks under /usr/local/portage to the portage trees. Just
configure portage to point directly at the source instead. Only crossdev
remains in that location because it is a locally managed overlay.
2015-07-05 16:57:05 -07:00
Michael Marineau
76856e8718 Merge pull request #430 from marineam/auzip
generate_au_zip: improve error reporting of missing files
2015-07-03 21:47:06 -07:00
Michael Marineau
fcd55e0171 generate_au_zip: improve error reporting of missing files 2015-07-02 13:51:39 -07:00
Michael Marineau
032a4d5fe6 Merge pull request #428 from marineam/selinux
build_image: make building selinux policy optional
2015-07-02 12:14:42 -07:00
Michael Marineau
9db6ac5ef7 build_image: make building selinux policy optional 2015-07-01 23:11:09 -07:00
George Tankersley
35b82cbaaf Merge pull request #421 from gtank/verity
dm-verity build support
2015-07-01 18:37:30 -07:00
George Tankersley
283452e883 verity: add verity plumbing and hash injection to build scripts 2015-07-01 17:34:11 -07:00
George Tankersley
aa879ddcce grub_install: add support for verity and non-verity grub.cfg 2015-07-01 17:32:37 -07:00
mjg59
28da405b75 Merge pull request #425 from mjg59/master
Build selinux policy
2015-07-01 11:37:11 -07:00
Alex Crawford
7232e74bcc disk_util: use the dummy disk UUID
This dummy UUID (00000000-0000-0000-0000-000000000001) is used to
signify to Ignition that the disk is uninitialized.
2015-06-30 20:04:41 -07:00
Alex Crawford
cf4b282482 disk_util: convert some tabs to spaces 2015-06-30 19:58:10 -07:00
Michael Marineau
b97f7b32cc Merge pull request #417 from rdallman/master
hvm ami enable sriov on image
2015-06-30 15:50:29 -07:00
Matthew Garrett
14163c3c0a Build selinux policy
Create an selinux policy at image build time - despite the -i flag, this
won't attempt to install it into the running kernel.
2015-06-30 14:46:51 -07:00
Reed Allman
da7fc7a079 hvm ami enable sriov on image 2015-06-30 02:00:46 -07:00
Sam Tresler
01176c2d96 adding packet to the available OEMs 2015-06-29 16:52:36 -04:00
Michael Marineau
259ecfec03 Merge pull request #422 from mrekucci/mkisofs_fix
Add check for mkisofs
2015-06-29 13:43:58 -07:00
Peter Mrekaj
fc9e5baa0d Add check for mkisofs
This check helps to avoid exit the script with the message indicating
success even though the mkisofs is missing and an image has not been created.
2015-06-29 10:49:00 -07:00
Michael Marineau
31671c1444 Merge pull request #426 from marineam/sdksign
bootstrap_sdk: add support for directly GPG signing SDK tarballs
2015-06-29 10:05:54 -07:00
Michael Marineau
5789c6bbbf bootstrap_sdk: add support for directly GPG signing SDK tarballs
SDK tarballs have a .DIGESTS file but it is created by catalyst instead
of the upload_image function. In order to support plain GPG signing but
not avoid re-generating .DIGESTS we need to move that code out of
upload_image to a new function. upload_files shouldn't do it itself
because it is also used for portage binary packages which shouldn't be
signed (there is no point, nothing would verify the signatures).
2015-06-28 17:02:23 -07:00
Michael Marineau
b38b214254 Merge pull request #424 from marineam/circles
build_packages: always rebuild when breaking dependency cycles
2015-06-25 14:31:10 -07:00
Michael Marineau
22e3c116cc build_packages: always rebuild when breaking dependency cycles
Previously we attempted to speed up the first build of a board by
pulling in binary packages regardless of their use flags, assuming that
if the package was already built the loop would not be an issue. Usually
this was true but not always. Now things like util-linux will always get
compiled when setting up a board for the first time but at least it
won't be as likely to fail.
2015-06-25 14:15:35 -07:00
Michael Marineau
420d0825ad Merge pull request #420 from ibukanov/master
recognize ssh ed25519 keys
2015-06-18 15:58:31 -07:00
Igor Bukanov
2f53ae1602 recognize ssh ed25519 keys
This extends the regexp matching ssh rsa and dss keys to ed25519 keys.
2015-06-18 19:39:28 +02:00
George Tankersley
abb99b560d Merge pull request #412 from gtank/verity
disk_util: dm-verity hash output
2015-06-12 16:14:39 -07:00
George Tankersley
93f033c59e verity: add support for root hash output to disk_util 2015-06-11 18:37:51 -07:00