diff options
author | Dongkyun Son <dongkyun.s@samsung.com> | 2024-06-28 11:33:13 +0900 |
---|---|---|
committer | Dongkyun Son <dongkyun.s@samsung.com> | 2024-06-28 17:12:20 +0900 |
commit | 98e9ad109246367a274920a99572a8cb7569780c (patch) | |
tree | 0041e321c4a756eb60801e828aa86d1d56e217c4 | |
parent | e0438014c971beec75e012569fc7da7cfd85cee1 (diff) | |
download | rust-accepted/tizen_unified_x_asan.tar.gz rust-accepted/tizen_unified_x_asan.tar.bz2 rust-accepted/tizen_unified_x_asan.zip |
packaging: add lib. support for bare-metal buildtizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20240813.230411accepted/tizen/unified/x/20240701.021452accepted/tizen/unified/toolchain/20241004.101443accepted/tizen/unified/toolchain/20240812.132125accepted/tizen/unified/dev/20240701.073118accepted/tizen/unified/20240628.172853accepted/tizen/9.0/unified/20241030.231738tizen_9.0accepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_9.0_unified
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.gz | bin | 0 -> 13946540 bytes | |||
-rw-r--r-- | packaging/rust.spec | 25 |
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 Binary files differnew file mode 100644 index 00000000000..5a373ebb518 --- /dev/null +++ b/packaging/rust-std-1.74.0-riscv64gc-unknown-none-elf.tar.gz 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 |