Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to SDK v0.13.0 #1092

Merged
merged 5 commits into from
Sep 2, 2020
Merged

Conversation

bcressey
Copy link
Contributor

Issue number:
N/A

Description of changes:
This updates to SDK v0.13.0, and includes fixes for building Bottlerocket on a Graviton instance.

The major change is the switch to using our vendor Rust targets, which unblocks the glibc update.

I found the zstd compression warning when inspecting the build logs for grub, which needed a fix to avoid building x86_64 tools on an aarch64 host.

Testing done:
Verified that an x86_64 host could build the OS for both targets, and likewise that an aarch64 host could build the OS for both targets. Verified that the resulting artifacts worked as expected when registered as AMIs.

Note: CI will fail until bottlerocket-os/bottlerocket-sdk/pull/33 is merged and the SDKs are built.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

This switches to the new vendor-specific Rust targets, which fixes
some conflicts caused by the confusion between host and target when
building for the same architecture (e.g. for x86_64 on x86_64).

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
The support for specifying the number of zstd threads hasn't reached
our version of rpm yet, so it was triggering a warning about invalid
compression levels.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Otherwise we can't run `grub-bios-setup` when building for the x86_64
architecture on an aarch64 host.

We've avoided problems in the opposite case because we create the EFI
partition with our own tools for aarch64.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
@bcressey bcressey changed the title update SDK to v0.13.0 switch to SDK v0.13.0 Aug 30, 2020
Copy link
Contributor

@tjkirch tjkirch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huge win for the build process, thank you Ben!

@bcressey bcressey marked this pull request as ready for review September 1, 2020 15:23
@bcressey bcressey merged commit 25acdb4 into bottlerocket-os:develop Sep 2, 2020
@bcressey bcressey deleted the sdk-update branch September 2, 2020 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants