1
1
%global debug_package %{nil }
2
2
%ifarch x86_64
3
3
%global buildarch x86_64
4
+ %elifarch aarch64
5
+ %global buildarch aarch64
4
6
%endif
5
7
6
8
# Support for quick builds with rpmbuild --build-in-place.
@@ -14,7 +16,7 @@ Version: 255
14
16
# determine the build information from local checkout
15
17
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
16
18
%endif
17
- Release: 21 %{?dist }
19
+ Release: 22 %{?dist }
18
20
License: LGPL-2.1 -or-later AND MIT AND GPL-2.0 -or-later
19
21
Vendor: Microsoft Corporation
20
22
Distribution: Azure Linux
@@ -32,8 +34,11 @@ URL: https://systemd.io
32
34
# 3. Place the unsigned package and signed binary in this spec's folder
33
35
# 4. Build this spec
34
36
Source0: systemd-boot-%{version }-%{release }.%{buildarch }.rpm
37
+ %ifarch x86_64
35
38
Source1: systemd-bootx64.efi
36
- ExclusiveArch: x86_64
39
+ %elifarch aarch64
40
+ Source1: systemd-bootaa64.efi
41
+ %endif
37
42
38
43
%description
39
44
This package contains the systemd-boot EFI binary signed for secure boot. The package is
@@ -81,7 +86,11 @@ pushd rpm_contents
81
86
# Don't use * wildcard. It does not copy over hidden files in the root folder...
82
87
cp -rp ./. %{buildroot }/
83
88
89
+ %ifarch x86_64
84
90
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
85
94
86
95
popd
87
96
90
99
/usr/share/man/man5/loader.conf.5.gz
91
100
/usr/share/man/man7/sd-boot.7.gz
92
101
/usr/share/man/man7/systemd-boot.7.gz
102
+ %ifarch x86_64
93
103
/boot/efi/EFI/BOOT/grubx64.efi
104
+ %elifarch aarch64
105
+ /boot/efi/EFI/BOOT/grubaa64.efi
106
+ %endif
94
107
95
108
%changelog
109
+ *
Wed Aug 06 2025 Sean Dougherty <[email protected] > -
255-22
110
+ - enable building on aarch64
111
+
96
112
*
Mon Apr 14 2025 Pawel Winogrodzki <[email protected] > -
255-21
97
113
- Updating SRPM name to systemd-boot-signed-%%{buildarch}.
98
114
0 commit comments