summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongkyun Son <dongkyun.s@samsung.com>2024-06-28 11:33:13 +0900
committerDongkyun Son <dongkyun.s@samsung.com>2024-06-28 17:12:20 +0900
commit98e9ad109246367a274920a99572a8cb7569780c (patch)
tree0041e321c4a756eb60801e828aa86d1d56e217c4
parente0438014c971beec75e012569fc7da7cfd85cee1 (diff)
downloadrust-accepted/tizen_unified_x_asan.tar.gz
rust-accepted/tizen_unified_x_asan.tar.bz2
rust-accepted/tizen_unified_x_asan.zip
Change-Id: I3de224e2008ecf19e355ffaeedbd069a3a9a30c4 Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
-rw-r--r--packaging/rust-std-1.74.0-riscv64gc-unknown-none-elf.tar.gzbin0 -> 13946540 bytes
-rw-r--r--packaging/rust.spec25
2 files changed, 25 insertions, 0 deletions
diff --git a/packaging/rust-std-1.74.0-riscv64gc-unknown-none-elf.tar.gz b/packaging/rust-std-1.74.0-riscv64gc-unknown-none-elf.tar.gz
new file mode 100644
index 00000000000..5a373ebb518
--- /dev/null
+++ b/packaging/rust-std-1.74.0-riscv64gc-unknown-none-elf.tar.gz
Binary files differ
diff --git a/packaging/rust.spec b/packaging/rust.spec
index 0c7a4971ec3..e9288e4cf3f 100644
--- a/packaging/rust.spec
+++ b/packaging/rust.spec
@@ -23,6 +23,7 @@ Source12: rust-%{version}-arm-unknown-linux-gnueabi.tar.gz
Source13: rust-%{version}-aarch64-unknown-linux-gnu.tar.gz
Source14: rust-%{version}-armv7-unknown-linux-gnueabihf.tar.gz
Source15: rust-%{version}-riscv64gc-unknown-linux-gnu.tar.gz
+Source16: rust-std-%{version}-riscv64gc-unknown-none-elf.tar.gz
Source100: macros.rust-toolset
Source1001: rust.manifest
@@ -137,6 +138,30 @@ rm -f %{buildroot}%{rustlibdir}/rust-installer-version
rm -f %{buildroot}%{rustlibdir}/uninstall.sh
rm -rf %{buildroot}%{rustdocdir}
+%ifarch riscv64
+gzip -dc %{SOURCE16} | tar -xvf -
+dir_name=$(basename %{SOURCE16} .tar.gz)
+
+if [ "${dir_name}" -eq "" ];
+then
+ echo "[Error] rust dir name invalid"
+ exit 1;
+fi
+
+pushd ${dir_name}
+./install.sh --prefix=%{buildroot}%{_prefix} \
+ --libdir=%{buildroot}%{_libdir} \
+ --disable-ldconfig
+
+popd
+
+rm -f %{buildroot}%{rustlibdir}/install.log
+rm -f %{buildroot}%{rustlibdir}/manifest-*
+rm -f %{buildroot}%{rustlibdir}/components
+rm -f %{buildroot}%{rustlibdir}/rust-installer-version
+rm -f %{buildroot}%{rustlibdir}/uninstall.sh
+%endif
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig