From db75ef6040c066bb361c002edbd9bc7e8f699776 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Tue, 5 Sep 2023 19:14:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E5=AD=B5=E5=8C=96?= =?UTF-8?q?=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I7YTF1 Signed-off-by: zhushengle Change-Id: I06dd14b1daaa1d2b8d89adfc606a572b2c12ac78 --- README.md | 32 -------------------------------- README_zh.md | 30 ------------------------------ patches/patches.json | 39 --------------------------------------- 3 files changed, 101 deletions(-) delete mode 100644 patches/patches.json diff --git a/README.md b/README.md index 5c07fa6..00419fd 100644 --- a/README.md +++ b/README.md @@ -37,38 +37,6 @@ The code signature component provides the following features: | int32_t EnforceCodeSignForFile(const std::string &path, const ByteBuffer &signature); | Enforces code signing for an file | | int32_t SignLocalCode(const std::string &filePath, ByteBuffer &signature); | Signs the local code | -### Building - -#### Setting up the environment - -- Pull the latest code of the trunk. - -- Set up the [RK3568 default environment](https://gitee.com/openharmony/docs/blob/master/en/device-dev/quick-start/Readme-EN.md) - -#### Modify the code - -1. Pull the code signature component - -``` -cd base/security - -git clone https://gitee.com/openharmony-sig/security_code_signature.git - -mv security_code_signature code_signature -``` - -2. Modify the repositories on which the code signature component depends - -The [patches.json](patches/patches.json) file in the current repository describes the repositories and patches on which - -the code signature component depends. Install the required patches in the corresponding repositories base on the description in the file. - -#### Building - -``` -./build.sh --product-name rk3568 --ccache -``` - ### Signing Tool User Guide **[User Guide](https://gitee.com/openharmony/developtools_hapsigner/blob/master/codesigntool/README.md)** diff --git a/README_zh.md b/README_zh.md index 27c54f6..6ac746c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -36,36 +36,6 @@ | int32_t EnforceCodeSignForFile(const std::string &path, const ByteBuffer &signature); | 对文件使能代码签名 | | int32_t SignLocalCode(const std::string &filePath, ByteBuffer &signature); | 本地代码签名 | -### 构建指导 - -#### 构建环境 - -- 拉取主干最新代码。 - -- 构建环境: [RK3568默认环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/Readme-CN.md) - -#### 修改代码 - -1.拉取代码签名部件 - -``` -cd base/security - -git clone https://gitee.com/openharmony-sig/security_code_signature.git - -mv security_code_signature code_signature -``` - -2.修改代码签名部件依赖的相关仓 - -代码签名仓下的 [patches.json](patches/patches.json) 中详细描述了代码签名部件依赖的仓以及patch,根据文件中描述依次在对应仓打上对应的patch即可。 - -#### 编译 - -``` -./build.sh --product-name rk3568 --ccache -``` - ### 签名工具使用指南 **[使用指南](https://gitee.com/openharmony/developtools_hapsigner/blob/master/codesigntool/README_zh.md)** diff --git a/patches/patches.json b/patches/patches.json deleted file mode 100644 index 988fe5c..0000000 --- a/patches/patches.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "patches": [ - { - "project":"productdefine_common", - "path":"productdefine/common", - "pr_url":"https://gitee.com/openharmony/productdefine_common/pulls/699" - }, - { - "project":"bundlemanager_bundle_framework", - "path":"foundation/bundlemanager/bundle_framework", - "pr_url":"https://gitee.com/openharmony/bundlemanager_bundle_framework/pulls/4631" - }, - { - "project":"build", - "path":"build", - "pr_url":"https://gitee.com/openharmony/build/pulls/2274" - }, - { - "project":"vendor_hihope", - "path":"vendor/hihope", - "pr_url":"https://gitee.com/openharmony/vendor_hihope/pulls/920" - }, - { - "project":"kernel_linux_config", - "path":"kernel/linux/config", - "pr_url":"https://gitee.com/openharmony/kernel_linux_config/pulls/353" - }, - { - "project":"security_selinux_adapter", - "path":"base/security/selinux_adapter", - "pr_url":"https://gitee.com/openharmony/security_selinux_adapter/pulls/2825" - }, - { - "project":"developtools_hapsigner", - "path":"developtools/hapsigner", - "pr_url":"https://gitee.com/openharmony/developtools_hapsigner/pulls/101" - } - ] -} -- Gitee