29 lines
1006 B
Diff
29 lines
1006 B
Diff
From 0962d86c5a359171191c127479491217074039b7 Mon Sep 17 00:00:00 2001
|
|
From: houmingyong <houmingyong@huawei.com>
|
|
Date: Tue, 6 Jun 2023 21:15:39 +0800
|
|
Subject: [PATCH] adapt sign tool to pass API_LEVEL
|
|
|
|
---
|
|
tools/sign_tool/sign_tool.sh | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/sign_tool/sign_tool.sh b/tools/sign_tool/sign_tool.sh
|
|
index c567423..74e2514 100755
|
|
--- a/tools/sign_tool/sign_tool.sh
|
|
+++ b/tools/sign_tool/sign_tool.sh
|
|
@@ -122,8 +122,10 @@ itrustee_start_sign() {
|
|
cp ${IN_ENCLAVE} ${IN_PATH}/libcombine.so
|
|
OUT_PATH=$(dirname ${OUT_FILE})
|
|
echo ${IN_PATH} ${OUT_PATH}
|
|
+ echo "CFLAGS += -DAPI_LEVEL=${API_LEVEL}" > ${IN_PATH}/config.mk
|
|
python3 -B ${signtoolpath}/signtool_v3.py ${IN_PATH} ${OUT_PATH} --privateCfg ${A_CONFIG_FILE}
|
|
- rm -rf ${IN_PATH}/libcombine.so
|
|
+ rm -f ${IN_PATH}/config.mk
|
|
+ rm -f ${IN_PATH}/libcombine.so
|
|
else
|
|
echo "Error: illegal command"
|
|
fi
|
|
--
|
|
2.33.0
|
|
|