!16 更新GN脚本,适应musl库

Merge pull request !16 from 汇顶科技/master
This commit is contained in:
openharmony_sig_ci
2021-12-21 06:20:09 +00:00
committed by Gitee
6 changed files with 53 additions and 7 deletions
Executable
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
-->
<configuration>
<oatconfig>
<licensefile></licensefile>
<policylist>
<policy name="projectPolicy" desc="">
<policyitem type="copyright" name="GOODIX" path=".*" desc="original goodix copyright"/>
<policyitem type="license" name="Apache" path=".*" desc="goodix use apache 2.0 license"/>
</policy>
</policylist>
<filefilterlist>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" >
<filteritem type="filename" name="*.a|*.so|*.bin|*.png" desc="Temp files"/>
</filefilter>
</filefilterlist>
</oatconfig>
</configuration>
+3 -1
View File
@@ -33,7 +33,7 @@ GR5515 Starter Kit(以下简称GR5515 SK)套件是基于GR551x芯片(支
| 器件类别 | 开发板 |
| ---------- | -------------------------------- |
| CPU | ARM Cortex-M4 (64Mhz) |
| CPU | ARM Cortex-M4F (64Mhz) |
| RAM | 256KB SRAM |
| Flash | 1MB片内Flash + 8MB SPI Flash |
| GPIO | 45 |
@@ -177,3 +177,5 @@ sudo pip3 install --upgrade pip
## 联系
如果您在开发过程中有问题,请在仓库issues提问,或[开发社区](https://developers.goodix.com/zh/bbs/list?orderType=answer)提问。
[开发板更多信息获取](https://product.goodix.com/zh/kit/gr5515_starter_kit)
+1 -1
View File
@@ -15,5 +15,5 @@ import("//kernel/liteos_m/liteos.gni")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
deps = [ "$product_path/hdf_config:hdf_hcs" ]
# deps = [ "$product_path/hdf_config:hdf_hcs" ]
}
+5 -1
View File
@@ -57,7 +57,9 @@ board_cflags = [
"-MD",
"-fno-stack-protector",
"-DLOSCFG_BASE_CORE_HILOG=1",
"-Dbool=BOOL",
]
board_cxx_flags = []
board_ld_flags = [
"-nostartfiles",
@@ -79,10 +81,12 @@ board_ld_flags = [
"-lhiview_lite",
"-lutils_kv_store",
"-lkernel",
"-lgcc",
"-lble_sdk",
"-Wl,--no-whole-archive",
"-Wl,--end-group",
"-Tbin/link.ld",
"-Wl,-Tbin/link.ld",
"-nostdlib",
"-Trom_symbol_gcc.txt",
"-Wl,-Map=bin/application.map",
]
+7 -2
View File
@@ -12,8 +12,13 @@
# limitations under the License.
if (ohos_kernel_type == "liteos_m") {
import("//kernel/liteos_m/liteos.gni")
import("//drivers/adapter/khdf/liteos_m/hdf.gni")
module_name = get_path_info(rebase_path("."), "name")
kernel_module(module_name) {
hdf_driver(module_name) {
hcs_sources = [ "gr5515_sk.hcs" ]
visibility += [
"$device_path",
".",
]
}
}
+2 -2
View File
@@ -12,6 +12,6 @@
# limitations under the License.
*/
#include "../../../soc/goodix/gr551x/hcs/device_info/device_info.hcs"
#include "../../../soc/goodix/gr551x/hcs/hdf.hcs"