Skip to content

Commit ad04465

Browse files
committed
armv7h*l has its own target
1 parent a1863ad commit ad04465

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

rust.spec

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru
5151
# Source3-md5: 3ac79872671df7ea0215fd351f52ffcf
5252
Source4: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-arm-unknown-linux-gnueabihf.tar.xz
5353
# Source4-md5: f624772d7c7ba2e83a51b4e9c1657f7b
54+
Source5: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-armv7-unknown-linux-gnueabihf.tar.xz
55+
# Source5-md5: 077d3f28a33af2cdb3897da9f8b81ca4
5456
URL: https://www.rust-lang.org/
5557
# for src/compiler-rt
5658
BuildRequires: cmake >= 3.4.3
@@ -126,16 +128,22 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
126128
%define _lib lib64
127129
%define _libdir %{_prefix}/lib64
128130
%else
129-
%ifarch armv6hl armv7hl armv7hnl
131+
%ifarch armv6hl
130132
%define rust_triple arm-unknown-linux-gnueabihf
131133
%define rust_host_triple %{rust_triple}
132134
%define rust_bootstrap_triple %{rust_triple}
133135
%else
136+
%ifarch armv7hl armv7hnl
137+
%define rust_triple armv7-unknown-linux-gnueabihf
138+
%define rust_host_triple %{rust_triple}
139+
%define rust_bootstrap_triple %{rust_triple}
140+
%else
134141
%define rust_triple %{_target_cpu}-unknown-linux-gnu
135142
%define rust_host_triple %{rust_triple}
136143
%define rust_bootstrap_triple %{rust_triple}
137144
%endif
138145
%endif
146+
%endif
139147

140148
%if %{without bootstrap}
141149
%define local_rust_root %{_prefix}
@@ -339,9 +347,12 @@ tar xf %{SOURCE2}
339347
%ifarch aarch64
340348
tar xf %{SOURCE3}
341349
%endif
342-
%ifarch armv6hl armv7hl armv7hnl
350+
%ifarch armv6hl
343351
tar xf %{SOURCE4}
344352
%endif
353+
%ifarch armv7hl armv7hnl
354+
tar xf %{SOURCE5}
355+
%endif
345356
%{__mv} %{bootstrap_root} %{bootstrap_root}-root
346357
%{bootstrap_root}-root/install.sh \
347358
--components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \

0 commit comments

Comments
 (0)