Skip to content

Commit ac93f0b

Browse files
committed
add aarch64 to systemd-boot-signed.spec
1 parent c9a243c commit ac93f0b

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
%global debug_package %{nil}
22
%ifarch x86_64
33
%global buildarch x86_64
4+
%elifarch aarch64
5+
%global buildarch aarch64
46
%endif
57

68
# Support for quick builds with rpmbuild --build-in-place.
@@ -14,7 +16,7 @@ Version: 255
1416
# determine the build information from local checkout
1517
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
1618
%endif
17-
Release: 21%{?dist}
19+
Release: 22%{?dist}
1820
License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later
1921
Vendor: Microsoft Corporation
2022
Distribution: Azure Linux
@@ -32,8 +34,11 @@ URL: https://systemd.io
3234
# 3. Place the unsigned package and signed binary in this spec's folder
3335
# 4. Build this spec
3436
Source0: systemd-boot-%{version}-%{release}.%{buildarch}.rpm
37+
%ifarch x86_64
3538
Source1: systemd-bootx64.efi
36-
ExclusiveArch: x86_64
39+
%elifarch aarch64
40+
Source1: systemd-bootaa64.efi
41+
%endif
3742

3843
%description
3944
This package contains the systemd-boot EFI binary signed for secure boot. The package is
@@ -81,7 +86,11 @@ pushd rpm_contents
8186
# Don't use * wildcard. It does not copy over hidden files in the root folder...
8287
cp -rp ./. %{buildroot}/
8388

89+
%ifarch x86_64
8490
cp %{buildroot}/usr/lib/systemd/boot/efi/systemd-bootx64.efi %{buildroot}/boot/efi/EFI/BOOT/grubx64.efi
91+
%elifarch aarch64
92+
cp %{buildroot}/usr/lib/systemd/boot/efi/systemd-bootaa64.efi %{buildroot}/boot/efi/EFI/BOOT/grubaa64.efi
93+
%endif
8594

8695
popd
8796

@@ -90,9 +99,16 @@ popd
9099
/usr/share/man/man5/loader.conf.5.gz
91100
/usr/share/man/man7/sd-boot.7.gz
92101
/usr/share/man/man7/systemd-boot.7.gz
102+
%ifarch x86_64
93103
/boot/efi/EFI/BOOT/grubx64.efi
104+
%elifarch aarch64
105+
/boot/efi/EFI/BOOT/grubaa64.efi
106+
%endif
94107

95108
%changelog
109+
* Wed Aug 06 2025 Sean Dougherty <[email protected]> - 255-22
110+
- enable building on aarch64
111+
96112
* Mon Apr 14 2025 Pawel Winogrodzki <[email protected]> - 255-21
97113
- Updating SRPM name to systemd-boot-signed-%%{buildarch}.
98114

0 commit comments

Comments
 (0)