diff --git a/native-turbo.spec b/native-turbo.spec index d97fbe4..5312b17 100644 --- a/native-turbo.spec +++ b/native-turbo.spec @@ -3,7 +3,7 @@ %global __cargo_common_opts %{?__cargo_common_opts} --all Name: native-turbo Version: 1.0.0 -Release: 4 +Release: 5 Summary: Numa Aware Scheduling License: Mulan PSL v2 URL: https://gitee.com/openeuler/native-turbo @@ -20,8 +20,7 @@ sysboost can merge ELF files to improve performance. # Add devel subpackage %package tools Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} -BuildRequires: binutils +Requires: xz, binutils %description tools The %{name}-tools package contains some tools of sysboost. @@ -83,6 +82,12 @@ install -m 755 $RPM_BUILD_DIR/objreloc $RPM_BUILD_ROOT%{_bindir}/ %systemd_postun_with_restart %{name}.service %changelog +* Mon Jun 12 2023 liutie - 1.0.0-5 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: when tools should run with xz and + * Mon Jun 12 2023 liutie - 1.0.0-4 - Type:enhancement - ID:NA diff --git a/sysboost.tar.xz b/native-turbo.tar.xz similarity index 72% rename from sysboost.tar.xz rename to native-turbo.tar.xz index 8458efe..a6e4364 100644 Binary files a/sysboost.tar.xz and b/native-turbo.tar.xz differ diff --git a/objreloc.sh b/objreloc.sh index 1373236..65c1615 100644 --- a/objreloc.sh +++ b/objreloc.sh @@ -12,4 +12,6 @@ fi # Remove debug and unnecessary sections, and create relocation and primary files objcopy --strip-debug --strip-dwo --strip-unneeded "$LIB_FILE" "$LIB_FILE.relocation" -objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim" \ No newline at end of file +xz -z "$LIB_FILE.relocation" +mv -f "$LIB_FILE.relocation.xz" "$LIB_FILE.relocation" +# objcopy --remove-relocations=".*" "$LIB_FILE" "$LIB_FILE.prim" \ No newline at end of file