• Home
Name Date Size #Lines LOC

..--

Hi3861/12-May-2024-7,6285,036

neptune_iotlink_demo/12-May-2024-1,137852

rk3568/12-May-2024-24,21421,133

rk3568_mini_system/12-May-2024-4,6254,423

LICENSED12-May-202410.1 KiB176150

OAT.xmlD12-May-20247.2 KiB9339

README_zh.mdD12-May-20243.1 KiB10987

README_zh.md

1# vendor_hihope
2
3## 介绍
4
5该仓库托管HiHope产品:海王星(Neptune)系列和大禹(DAYU)系列OpenHarmony智能硬件。
6
7## 目录
8
9```
10vendor/hihope
11├── neptune_iotlink_demo                  # Neptune100开发板
12├── rk3568                                # DAYU200开发板
13└── ...
14```
15
16## 新建产品工程
17
18这里以海王星(Neptune)开发板为例,用户可以将 "neptune_iotlink_demo"样例复制一份,然后进行裁剪或者修改,实现自己的产品工程,下面举例说明如何新建一个工程。
19
20#### 新建产品工程
21
221、复制一份 vendor/hihope目录下的"neptune_iotlink_demo"放在同级目录下,并改名为自己产品工程的名称(例如:xxx_iotlink_demo);
23
242、进入 xxx_iotlink_demo目录, 编辑config.json文件,修改product_name和product_adapter_dir:
25
26```
27"product_name": "xxx_iotlink_demo"
28"product_adapter_dir": "//vendor/hihope/xxx_iotlink_demo/hals"
29```
30
313、在config.json中可删除xts、kv_store、文件管理子系统,保留kernel、startup、hiviewdfx、distributedschedule等必要的子系统,可移除如下代码段:
32```
33"bin_list": [
34      {
35        "elf_name": "hihope",
36        "enable": "true",
37        "force_link_libs": [
38          "bootstrap",
39          "broadcast",
40          "hctest",
41          "module_ActsParameterTest",
42          "module_ActsBootstrapTest",
43          "module_ActsDfxFuncTest",
44          "module_ActsHieventLiteTest",
45          "module_ActsSamgrTest",
46          "module_ActsUtilsFileTest",
47          "module_ActsKvStoreTest"
48        ]
49      }
50    ],
51
52...
53
54{
55  "subsystem": "utils",
56  "components": [
57    {
58      "component": "kv_store",
59      "features": [
60        "enable_ohos_utils_native_lite_kv_store_use_posix_kv_api = true"
61        ]
62    },
63    { "component": "file", "features":[] }
64  ]
65},
66{
67  "subsystem": "xts",
68  "components": [
69    {
70      "component": "xts_acts",
71      "features":
72        [
73          "config_ohos_xts_acts_utils_lite_kv_store_data_path = \"/data\"",
74          "enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
75        ]
76    },
77    { "component": "xts_tools", "features":[] }
78  ]
79}
80```
81
824、编辑 "xxx_iotlink_demo/BUILD.gn",group名:
83```
84group("xxx_iotlink_demo") {
85}
86```
87
885、在OpenHarmony源码根目录下,执行hb set, 出现自己添加的工程名称 "xxx_iotlink_demo":
89```
90hihope
91   neptune_iotlink_demo
92 > xxx_iotlink_demo
93```
94
95至此,一个简单的产品工程搭建完成,用户可按此方法,搭建自己产品工程。
96
97详细的产品编译构建适配流程,请参考[编译构建适配流程](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/porting/porting-chip-prepare-process.md)
98
99## 贡献
100
101[如何参与](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/%E5%8F%82%E4%B8%8E%E8%B4%A1%E7%8C%AE.md)
102
103[Commit message规范](https://gitee.com/openharmony/device_qemu/wikis/Commit%20message%E8%A7%84%E8%8C%83?sort_id=4042860)
104
105## 相关仓
106
107* [device/board/hihope](https://gitee.com/openharmony/device_board_hihope)
108* [device/soc/winnermicro](https://gitee.com/openharmony/device_soc_winnermicro)
109* [device/soc/rockchip](https://gitee.com/openharmony/device_soc_rockchip)