4 Star 1 Fork 122

OpenHarmony / vendor_hihope

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README_zh.md

vendor_hihope

介绍

该仓库托管HiHope产品:海王星(Neptune)系列和大禹(DAYU)系列Openharmony智能硬件。

目录

vendor/hihope
├── neptune_iotlink_demo                  # Neptune100开发板
├── rk3568                                # DAYU200开发板
└── ...

新建产品工程

这里以海王星(Neptune)开发板为例,用户可以将 "neptune_iotlink_demo"样例复制一份,然后进行裁剪或者修改,实现自己的产品工程,下面举例说明如何新建一个工程。

新建产品工程

1、复制一份 vendor/hihope目录下的"neptune_iotlink_demo"放在同级目录下,并改名为自己产品工程的名称(例如:xxx_iotlink_demo);

2、进入 xxx_iotlink_demo目录, 编辑config.json文件,修改product_name和product_adapter_dir:

"product_name": "xxx_iotlink_demo"
"product_adapter_dir": "//vendor/hihope/xxx_iotlink_demo/hals"

3、在config.json中可删除xts、kv_store、文件管理子系统,保留kernel、startup、hiviewdfx、distributedschedule等必要的子系统,可移除如下代码段:

"bin_list": [
      {
        "elf_name": "hihope",
        "enable": "true",
        "force_link_libs": [
          "bootstrap",
          "broadcast",
          "hctest",
          "module_ActsParameterTest",
          "module_ActsBootstrapTest",
          "module_ActsDfxFuncTest",
          "module_ActsHieventLiteTest",
          "module_ActsSamgrTest",
          "module_ActsUtilsFileTest",
          "module_ActsKvStoreTest"
        ]
      }
    ],

...

{
  "subsystem": "utils",
  "components": [
    {
      "component": "kv_store",
      "features": [
        "enable_ohos_utils_native_lite_kv_store_use_posix_kv_api = true"
        ]
    },
    { "component": "file", "features":[] }
  ]
},
{
  "subsystem": "xts",
  "components": [
    {
      "component": "xts_acts",
      "features":
        [
          "config_ohos_xts_acts_utils_lite_kv_store_data_path = \"/data\"",
          "enable_ohos_test_xts_acts_use_thirdparty_lwip = true"
        ]
    },
    { "component": "xts_tools", "features":[] }
  ]
}

4、编辑 "xxx_iotlink_demo/BUILD.gn",group名:

group("xxx_iotlink_demo") {
}

5、在OpenHarmony源码根目录下,执行hb set, 出现自己添加的工程名称 "xxx_iotlink_demo":

hihope
   neptune_iotlink_demo
 > xxx_iotlink_demo

至此,一个简单的产品工程搭建完成,用户可按此方法,搭建自己产品工程。

详细的产品编译构建适配流程,请参考编译构建适配流程

贡献

如何参与

Commit message规范

相关仓

Repository Comments ( 0 )

Sign in to post a comment

About

No description expand collapse
C and 2 more languages
Apache-2.0
Cancel

Releases

No release

OpenHarmony

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/openharmony/vendor_hihope.git
git@gitee.com:openharmony/vendor_hihope.git
openharmony
vendor_hihope
vendor_hihope
master

Search