Skip to content

Commit 801bd6d

Browse files
systemd-boot-signed: add aarch64 package (microsoft#14540)
this adds the signed systemd-boot package for aarch64 architecture
1 parent 3193dd3 commit 801bd6d

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

SPECS-SIGNED/systemd-boot-signed/systemd-boot-signed.spec

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
%global debug_package %{nil}
22
%ifarch x86_64
33
%global buildarch x86_64
4+
%global grubefiname grubx64.efi
5+
%global sdbootefiname systemd-bootx64.efi
6+
%elifarch aarch64
7+
%global buildarch aarch64
8+
%global grubefiname grubaa64.efi
9+
%global sdbootefiname systemd-bootaa64.efi
410
%endif
511

612
# Support for quick builds with rpmbuild --build-in-place.
@@ -14,7 +20,7 @@ Version: 255
1420
# determine the build information from local checkout
1521
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
1622
%endif
17-
Release: 22%{?dist}
23+
Release: 23%{?dist}
1824
License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later
1925
Vendor: Microsoft Corporation
2026
Distribution: Azure Linux
@@ -32,8 +38,7 @@ URL: https://systemd.io
3238
# 3. Place the unsigned package and signed binary in this spec's folder
3339
# 4. Build this spec
3440
Source0: systemd-boot-%{version}-%{release}.%{buildarch}.rpm
35-
Source1: systemd-bootx64.efi
36-
ExclusiveArch: x86_64
41+
Source1: %{sdbootefiname}
3742

3843
%description
3944
This package contains the systemd-boot EFI binary signed for secure boot. The package is
@@ -71,8 +76,8 @@ pushd rpm_contents
7176

7277
# This spec's whole purpose is to inject the signed systemd-boot binary
7378
rpm2cpio %{SOURCE0} | cpio -idmv
74-
cp %{SOURCE1} ./usr/lib/systemd/boot/efi/systemd-bootx64.efi
7579

80+
cp %{SOURCE1} ./usr/lib/systemd/boot/efi/%{sdbootefiname}
7681
popd
7782

7883
%install
@@ -81,7 +86,7 @@ pushd rpm_contents
8186
# Don't use * wildcard. It does not copy over hidden files in the root folder...
8287
cp -rp ./. %{buildroot}/
8388

84-
cp %{buildroot}/usr/lib/systemd/boot/efi/systemd-bootx64.efi %{buildroot}/boot/efi/EFI/BOOT/grubx64.efi
89+
cp %{buildroot}/usr/lib/systemd/boot/efi/%{sdbootefiname} %{buildroot}/boot/efi/EFI/BOOT/%{grubefiname}
8590

8691
popd
8792

@@ -90,9 +95,12 @@ popd
9095
/usr/share/man/man5/loader.conf.5.gz
9196
/usr/share/man/man7/sd-boot.7.gz
9297
/usr/share/man/man7/systemd-boot.7.gz
93-
/boot/efi/EFI/BOOT/grubx64.efi
98+
/boot/efi/EFI/BOOT/%{grubefiname}
9499

95100
%changelog
101+
* Mon Aug 18 2025 Sean Dougherty <[email protected]> - 255-23
102+
- Add aarch64 package
103+
96104
* Wed Aug 06 2025 Sean Dougherty <[email protected]> - 255-22
97105
- Bump release to match systemd spec
98106

SPECS/systemd/systemd.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Version: 255
5050
# determine the build information from local checkout
5151
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
5252
%endif
53-
Release: 22%{?dist}
53+
Release: 23%{?dist}
5454

5555
# FIXME - hardcode to 'stable' for now as that's what we have in our blobstore
5656
%global stable 1
@@ -1228,6 +1228,9 @@ rm -f %{name}.lang
12281228
# %autochangelog. So we need to continue manually maintaining the
12291229
# changelog here.
12301230
%changelog
1231+
* Mon Aug 18 2025 Sean Dougherty <[email protected]> - 255-23
1232+
- Bump release to match systemd-boot-signed spec
1233+
12311234
* Tue Aug 05 2025 Chris Co <[email protected]> - 255-22
12321235
- enable building ukify and sd-boot on arm64
12331236
- enable pyflakes buildrequires which is needed for ukify testing

0 commit comments

Comments
 (0)