From b70a917c309353ec94cb803c9372bba6547fae1e Mon Sep 17 00:00:00 2001 From: panchenbo Date: Tue, 22 Aug 2023 14:44:30 +0800 Subject: [PATCH] add loongarch64 and sw_64 support --- itrustee_sdk.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/itrustee_sdk.spec b/itrustee_sdk.spec index 379aaf7..dc6f28a 100644 --- a/itrustee_sdk.spec +++ b/itrustee_sdk.spec @@ -1,8 +1,8 @@ Name: itrustee_sdk Version: 0.1.0 -Release: 9 +Release: 10 Summary: Confidential computing framework for developing TA on itrustee OS -ExclusiveArch: aarch64 +ExclusiveArch: aarch64 sw_64 loongarch64 Group: OS Security License: Mulan PSL v2 @@ -31,18 +31,30 @@ us %{name} %build sed -i 's/fPIC/fPIC -g/g' Makefile sed -i 's/\/opt\/itrustee_sdk/$(DESTDIR)\/opt\/itrustee_sdk/g' Makefile +%ifnarch sw_64 sed -i 's/\/lib64/$(DESTDIR)\/lib64/g' Makefile +%else +sed -i 's/\/lib64/$(DESTDIR)\/lib/g' Makefile +%endif make %install install -d %{buildroot}/opt/ +%ifnarch sw_64 install -d %{buildroot}/lib64/ +%else +install -d %{buildroot}/lib/ +%endif install -d %{buildroot}/%{_sysconfdir}/secGear/cloud/ make install DESTDIR=%{buildroot}/ install -pm 644 build/signtools/cloud/rsa_public_key_cloud.pem %{buildroot}/%{_sysconfdir}/secGear/cloud +%ifnarch sw_64 strip %{buildroot}/lib64/*.so +%else +strip %{buildroot}/lib/*.so +%endif %files devel %defattr(-,root,root) @@ -51,9 +63,16 @@ strip %{buildroot}/lib64/*.so %files %defattr(-,root,root) +%ifnarch sw_64 /lib64/libteec_adaptor.so +%else +/lib/libteec_adaptor.so +%endif %changelog +* Tue Aug 22 2023 panchenbo - 0.1.0-10 +- add loongarch64 and sw_64 support + * Tue Jul 25 2023 zhengxiaoxiao - 0.1.0-9 - DESC:add ta openssl headers -- Gitee