Commit Graph

4131 Commits

Author SHA1 Message Date
Michael Marineau
9b00ea5495 *: disable reinstalling rebuilt binaries with --usepkgonly
When --usepkgonly is mixed with the right update flags it will
re-install any binary packages that have a newer build. Since the full
set of SDK and board packages are rebuilt quite often this leads to
excessive reinstalling.
2016-02-04 11:50:36 -08:00
Michael Marineau
5411bf574e setup_board: fix passing --usepkgonly state through to update_chroot 2016-02-04 11:42:07 -08:00
Michael Marineau
f471b4a709 Merge pull request #496 from marineam/usepkgonly
New build script flag --usepkgonly
2016-02-03 22:12:24 -08:00
Michael Marineau
d327840ce8 *: add --usepkgonly flag to avoid building from source 2016-02-03 18:29:16 -08:00
Michael Marineau
a3fceb1957 update_chroot: cleanup flags, include all in usage 2016-02-03 18:29:16 -08:00
Michael Marineau
81ee5389c0 build_packages: accept package names as an argument 2016-02-03 18:29:16 -08:00
Michael Marineau
a42ffcddbb build_packages: include all flags in usage message 2016-02-03 17:37:38 -08:00
Michael Marineau
bf104d415e build_packages: remove old --reuse_pkgs_from_local_boards flag
Removed from setup_board in ancient times e6b3c608.
2016-02-03 17:30:10 -08:00
Michael Marineau
10a7864ff0 build_packages: flip weird inverted boolean flag
Use `--workon` and `--noworkon` instead of `--nonoworkon` and `--noworkon`
2016-02-03 17:26:24 -08:00
Michael Marineau
602412fd2a build_packages: remove unused --accept_licenses
This flag was dropped from setup_board way back in commit 7d6619df8.
2016-02-03 17:23:20 -08:00
Michael Marineau
5a42bd8565 setup_board: cleanup flags section
Move most flags into the usage message and use a more consistent style.
2016-02-03 17:22:15 -08:00
Michael Marineau
b3a64cc7c4 Merge pull request #495 from marineam/date
core_date: dumb little script so I can stop doing math
2016-02-01 14:53:06 -08:00
Michael Marineau
867ccc06c6 core_date: dumb little script so I can stop doing math
Compute coreos version for a date or the date of a coreos version.
Arguments are passed to `date` except for `-v` which takes an optional
version value and converts it to a date. `-v` must be the first arg.

    $ ./core_date
    945
    $ ./core_date -d wed
    947
    $ ./core_date -v
    Fri Jan 29 00:00:00 UTC 2016
    $ ./core_date -v +%D
    01/29/16
    $ ./core_date -v 1000
    Sun Mar 27 00:00:00 UTC 2016
    $ ./core_date -v 1000 +%D
    03/27/16
2016-02-01 14:39:59 -08:00
Michael Marineau
143c7b312e Merge pull request #494 from marineam/boto
release_util: use BOTO_PATH instead of searching for .boto
2016-01-28 13:25:57 -08:00
Michael Marineau
9332cb697e release_util: use BOTO_PATH instead of searching for .boto
This simplifies the code a little and allows BOTO_PATH or BOTO_CONFIG to
be set in the environment. Now configs may be in arbitrary locations.
2016-01-28 13:10:01 -08:00
Michael Marineau
95d0bdaf72 *: Fix PIPESTATUS checks for bash 4.3
The one-liner `[[ -z ${PIPESTATUS[*]#0} ]]` no longer works because the
expansion still includes spaces even if all the values are zero. Somehow
that didn't matter in bash 4.2 but it does mater in 4.3 to be consistent
with the general behavior of variables in [[ tests.
2016-01-25 18:25:53 -08:00
Geoff Levand
d82ef18ed0 setup_board: Build grub platform modules
Run the emerge of the SDK sys-boot/grub again to pick up any config
changes that were made in setup_board.  This late emerge is needed
to build grub modules for architectures that are different from the
host.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-01-20 09:49:15 -08:00
Michael Marineau
851cf98945 Merge pull request #478 from glevand/for-merge-setup
scripts: Updates for arm64
2016-01-15 17:39:12 -08:00
mjg59
f6a355b3b0 Merge pull request #492 from mjg59/netboot
Add EFI netboot support
2016-01-11 13:53:29 -08:00
Matthew Garrett
5fa4196501 Verify netboot config fragments if there's an available gpg key
If there's a gpg public key available in a system firmware variable, trust
it and use it to verify netboot configuration fragments.
2016-01-11 11:54:04 -08:00
Matthew Garrett
b6792a5609 Fix platform testing for suffix configuration
Grub doesn't seem happy with && tests in if statements, so replace it with
a two stage check.
2016-01-08 14:45:50 -08:00
Matthew Garrett
1f7c749b2d Add UEFI netboot support
If grub's been netbooted, pull the uuid and serial number out of smbios and
hit the API server to get the appropriate configuration.
2016-01-08 14:45:45 -08:00
Michael Marineau
db5d937aab Merge pull request #491 from marineam/bind-root
enter_chroot: fix chroot root bind command
2015-12-15 16:44:28 -08:00
Michael Marineau
3fdd2033dc enter_chroot: fix chroot root bind command
Commit 09851b84 didn't do a recursive bind by mistake, so if the host
system has anything mounted under the chroot directory for some reason
the bind would hide those mounts. Recursive ensures existing mounts
remain exposed as they did before.
2015-12-15 16:40:00 -08:00
Michael Marineau
2b43e553e3 Merge pull request #490 from marineam/bind-root
enter_chroot: ensure the chroot's root directory is a mount point
2015-12-15 16:34:01 -08:00
Michael Marineau
09851b8460 enter_chroot: ensure the chroot's root directory is a mount point 2015-12-15 16:30:27 -08:00
Michael Marineau
7147ab1746 Merge pull request #489 from marineam/glibc
enter_chroot: skip calling locale-gen if it isn't installed
2015-12-15 11:50:28 -08:00
Michael Marineau
863dda280f enter_chroot: skip calling locale-gen if it isn't installed 2015-12-10 11:33:57 -08:00
Nick Owens
1093592e4d Merge pull request #488 from mischief/update-ebuilds-underscore
update_ebuilds: allow underscore, needed for app-misc/c_rehash
2015-12-03 14:05:44 -08:00
Nick Owens
95fba29797 update_ebuilds: allow underscore, needed for app-misc/c_rehash 2015-12-03 14:03:34 -08:00
Michael Marineau
dca121d83f Merge pull request #487 from marineam/sdk
build_image: fix generation of version.txt
2015-12-02 13:03:18 -08:00
Michael Marineau
f6064d52e8 build_image: fix generation of version.txt
The generation of version.txt was the only thing depending on sourcing
the deprecated BUILD, BRANCH, and PATCH values from version.txt which
common.sh no longer does since 0b6acf86. Derive them instead.
2015-12-02 12:32:34 -08:00
Michael Marineau
37a2a0319a Merge pull request #486 from marineam/sdk
enter_chroot: always bind $GNUPGHOME to the default path
2015-12-01 14:44:35 -08:00
Michael Marineau
ec58813496 enter_chroot: always bind $GNUPGHOME to the default path
The path of $GNUPGHOME outside the chroot may not really make sense
inside the chroot. Although that's probably not a big deal there's no
need to keep the outside value. Instead just bind it to the usual spot.
2015-12-01 14:34:43 -08:00
Michael Marineau
a20129cafb Merge pull request #485 from marineam/sdk
common: set properly COREOS_SDK_VERSION
2015-12-01 12:50:34 -08:00
Michael Marineau
14646f7900 common: set properly COREOS_SDK_VERSION
Broken in 0b6acf86 when we started selectively reading version.txt
2015-12-01 12:46:01 -08:00
Michael Marineau
14ada5cfe7 Merge pull request #483 from marineam/jenkins
Updates for jenkins builds
2015-12-01 12:03:13 -08:00
Alex Crawford
8726e115b4 Merge pull request #484 from crawford/nixos
sdk_lib: cleanup to support non-standard environs
2015-12-01 09:14:24 -08:00
Alex Crawford
47d237ecab sdk_lib: cleanup to support non-standard environs 2015-11-30 18:15:42 -08:00
Michael Marineau
0b6acf8605 common: add support for using COREOS_BUILD_ID from the environment
This allows build systems to export COREOS_BUILD_ID, making it practical
to map built images to the job that created them.
2015-11-30 09:29:24 -08:00
Michael Marineau
39a3a48a18 enter_chroot: add support for passing through GNUPGHOME
When running under jenkins the $GNUPGHOME may be located under the
current build directory instead of $HOME to avoid conflicting with other
jobs on the same build host.
2015-11-29 14:05:08 -08:00
Michael Marineau
7cea7f4d6f Merge pull request #481 from marineam/prune
prune_images: keep newer-than-latest builds
2015-11-24 14:03:46 -08:00
Michael Marineau
9a138677a8 prune_images: keep newer-than-latest builds
This may include recent failures or builds derrived from latest, such as
those made by image_set_group.
2015-11-24 13:40:09 -08:00
Geoff Levand
57c129acfd setup_board: Call setup_qemu_static
setup_qemu_static only needs to be called once, and can
be done early so that it is available.  Move the call
of setup_qemu_static from build_packages to setup_board.

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Geoff Levand
63679ebbe1 setup_board: Set grub use flags to build arm64
Set the host grub use flags to build arm64 grub support when BOARD is
equal to arm64-usr.

From: Andrej Rosano <andrej@inversepath.com>
[Move to case statement]
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-11-19 15:08:00 -08:00
Michael Marineau
c353bc083b Merge pull request #477 from marineam/env
common: don't get env list from chromite
2015-11-18 16:20:32 -08:00
Michael Marineau
6b1a7e7b3b common: don't get env list from chromite
This call to a python script is merely used to get a static list of
environment variables that happens to be defined in that repo.
2015-11-18 16:09:27 -08:00
Alex Crawford
f0be34f4dd Merge pull request #476 from crawford/gpg
oem/azure: verify GPG signature of image
2015-11-12 11:52:33 -08:00
Alex Crawford
eb5a53cc7a oem/azure: verify GPG signature of image 2015-11-12 11:44:48 -08:00
Vito Caputo
1d02acec7c Merge pull request #475 from vcaputo/always_disable_console_blanking
grub: disable console blanking
2015-11-11 15:53:02 -08:00