!108 新增switchless特性,合入Delete-the-null-determination-of-out_buf_in_codegene.patch
From: @zhengxiaoxiaoGitee Reviewed-by: @houmingyong Signed-off-by: @houmingyong
This commit is contained in:
commit
53d5dc092c
@ -0,0 +1,25 @@
|
|||||||
|
From 19595d5dea95ccd985fdc10d175e9520f7bb0cc1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: z30023234 <zhengxiaoxiao2@huawei.com>
|
||||||
|
Date: Sun, 24 Apr 2022 15:23:40 +0800
|
||||||
|
Subject: [PATCH] Delete the null determination of out_buf in codegener.
|
||||||
|
|
||||||
|
---
|
||||||
|
tools/codegener/Gentrust.ml | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tools/codegener/Gentrust.ml b/tools/codegener/Gentrust.ml
|
||||||
|
index b62624e..58d6a8e 100644
|
||||||
|
--- a/tools/codegener/Gentrust.ml
|
||||||
|
+++ b/tools/codegener/Gentrust.ml
|
||||||
|
@@ -156,7 +156,7 @@ let set_ecall_func (tf : trusted_func) =
|
||||||
|
else
|
||||||
|
" /* There is no parameters point */";
|
||||||
|
"";
|
||||||
|
- " if (in_buf == NULL || out_buf == NULL)";
|
||||||
|
+ " if (in_buf == NULL)";
|
||||||
|
" goto done;";
|
||||||
|
sprintf " %s_size_t *args_size = (%s_size_t *)in_buf;" tfd.fname tfd.fname;
|
||||||
|
" in_buf_offset += size_to_aligned_size(sizeof(*args_size));";
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
6314
0049-support-switchless-feature.patch
Normal file
6314
0049-support-switchless-feature.patch
Normal file
File diff suppressed because it is too large
Load Diff
12
secGear.spec
12
secGear.spec
@ -1,6 +1,6 @@
|
|||||||
Name: secGear
|
Name: secGear
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 30
|
Release: 31
|
||||||
Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features
|
Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features
|
||||||
|
|
||||||
|
|
||||||
@ -56,6 +56,8 @@ Patch43: 0044-fix-pointer-without-init-or-check-NULL.patch
|
|||||||
Patch44: 0045-optimize-the-private-key-usage-of-the-single-step-si.patch
|
Patch44: 0045-optimize-the-private-key-usage-of-the-single-step-si.patch
|
||||||
Patch45: 0046-fix-return-value.patch
|
Patch45: 0046-fix-return-value.patch
|
||||||
Patch46: 0047-del-print-uncontrol-form-string.patch
|
Patch46: 0047-del-print-uncontrol-form-string.patch
|
||||||
|
Patch47: 0048-Delete-the-null-determination-of-out_buf-in-codegene.patch
|
||||||
|
Patch48: 0049-support-switchless-feature.patch
|
||||||
|
|
||||||
BuildRequires: gcc python automake autoconf libtool
|
BuildRequires: gcc python automake autoconf libtool
|
||||||
BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++
|
BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++
|
||||||
@ -102,10 +104,10 @@ The %{name}-sim is package contains simulation libraries for developing applicat
|
|||||||
source ./environment
|
source ./environment
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
source /opt/intel/sgxsdk/environment
|
source /opt/intel/sgxsdk/environment
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCC_SGX=on -DSGXSDK=/opt/intel/sgxsdk
|
cmake -DCMAKE_BUILD_TYPE=Debug
|
||||||
make
|
make
|
||||||
%else
|
%else
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DCC_GP=on -DiTrusteeSDK=/opt/itrustee_sdk
|
cmake -DCMAKE_BUILD_TYPE=Debug -DENCLAVE=GP
|
||||||
make
|
make
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -137,6 +139,7 @@ install -pm 644 inc/enclave_inc/gp/itrustee/*.h %{buildroot}/%{_includedir}/secG
|
|||||||
pushd %{buildroot}
|
pushd %{buildroot}
|
||||||
rm `find . -name secgear_helloworld` -rf
|
rm `find . -name secgear_helloworld` -rf
|
||||||
rm `find . -name secgear_seal_data` -rf
|
rm `find . -name secgear_seal_data` -rf
|
||||||
|
rm `find . -name secgear_switchless` -rf
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
rm `find . -name libsecgearsim.so` -rf
|
rm `find . -name libsecgearsim.so` -rf
|
||||||
%endif
|
%endif
|
||||||
@ -173,6 +176,9 @@ popd
|
|||||||
systemctl restart rsyslog
|
systemctl restart rsyslog
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Nov 12 2022 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 0.1.0-31
|
||||||
|
- add "Delete-the-null-determination-of-out_buf_in_codegene.patch" and "support-switchless-feature.patch"
|
||||||
|
|
||||||
* Wed Aug 03 2022 fushanqing <fushanqing@kylinos.cn> - 0.1.0-30
|
* Wed Aug 03 2022 fushanqing <fushanqing@kylinos.cn> - 0.1.0-30
|
||||||
- Unified license name specification
|
- Unified license name specification
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user