diff --git a/README.md b/README.md index 5c07fa64b6a1bd14255b8fe085303775981f76f7..00419fdc8a9ce2b0908085a63153245b7c908111 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 27c54f65ecf6ed989a3f8ee7fec8efafc2b3339b..6ac746c26d3657620e51cbbb04f78038272282c9 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 988fe5cf69b954c07caa526a89021f9f681653ca..0000000000000000000000000000000000000000 --- 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" - } - ] -}