commit c74223de0a157688a507d58b1192a8060500b946
Author: Billy Olsen <email address hidden>
Date: Fri Mar 19 15:45:05 2021 -0700
Fix aarch64/arm64 support for MicroStack
Fix the builds for MicroStack on aarch64/arm64. To resolve the build
issues, the SNAP_ARCH and SNAP_ARCH_TRIPLET variables need to be used
in appropriate places to reference the underlying platform rather than
the x86_64 platform.
Arm64/Aarch64 support requires that EFI support is enabled, which
involves adding the EFI packages for arm64. These are also included for
x86_64 for ensuring consistency in EFI support between the
architectures. The /usr/share/{OVMF,AAVMF} paths need to be bind-mounted
to the appropriate locations to avoid having to custom build the
packages within the snap.
The setup sequence also needs to consider loading the right image into
glance. This is done by using the platform to determine which cirros
image to import into glance. A new cirros image was not included in this
patch for aarch64 platform in order to keep the snap image size lower.
The setup sequence has fallback code to attempt to download the image if
it is unavailable in the filesystem.
Finally, the snapcraft architectures for building microstack are limited
to the x86_64 and arm64 platforms. There's no need to build on s390x or
other architectures at this point.
Reviewed: https:/ /review. opendev. org/c/x/ microstack/ +/788360 /opendev. org/x/microstac k/commit/ c74223de0a15768 8a507d58b1192a8 060500b946
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit c74223de0a15768 8a507d58b1192a8 060500b946
Author: Billy Olsen <email address hidden>
Date: Fri Mar 19 15:45:05 2021 -0700
Fix aarch64/arm64 support for MicroStack
Fix the builds for MicroStack on aarch64/arm64. To resolve the build
issues, the SNAP_ARCH and SNAP_ARCH_TRIPLET variables need to be used
in appropriate places to reference the underlying platform rather than
the x86_64 platform.
Arm64/Aarch64 support requires that EFI support is enabled, which {OVMF,AAVMF} paths need to be bind-mounted
involves adding the EFI packages for arm64. These are also included for
x86_64 for ensuring consistency in EFI support between the
architectures. The /usr/share/
to the appropriate locations to avoid having to custom build the
packages within the snap.
The setup sequence also needs to consider loading the right image into
glance. This is done by using the platform to determine which cirros
image to import into glance. A new cirros image was not included in this
patch for aarch64 platform in order to keep the snap image size lower.
The setup sequence has fallback code to attempt to download the image if
it is unavailable in the filesystem.
Finally, the snapcraft architectures for building microstack are limited
to the x86_64 and arm64 platforms. There's no need to build on s390x or
other architectures at this point.
Closes-Bug: #1821872
Change-Id: I26625621fb9895 027139ecb895e88 2e60f2e6502