dear all : OpenHarmony 如何配置适用于嵌入式系统的最小组件配置? 目标:配置嵌入式系统(linux)需要的最少的组件。 硬件环境:arm926, 主频 300M , 内存 128M , flash 64M 软件业务:协议网关类产品,网络和串口之间的协议转换。没有音视频,没有UI界面,没有分布式业务。 以前系统:u-boot + linux + busybox 我在 Hi3516DV300.json 基础上只修改了 ”parts“ 的配置,其他保持不变,做了如下尝试: 1、"startup:init":{} 编译结束,组建文件体统时,提示找不到 root 目录,构建文件系统失败。只有 startup:init 组件相关的程序。 2、"startup":init{}, "common:common":{} 编译失败,gn gen 生成 ninja 文件的时候失败, 提示如下: build configs generation is complete. ERROR at //build/templates/cxx/cxx.gni:648:7: Script returned non-zero exit code. exec_script(external_deps_script, arguments) ^---------- Current dir: /home/luo/linux/openharmony/tmp/out/ohos-arm-release/ Command: /usr/bin/env /home/luo/linux/openharmony/tmp/build/templates/common/external_deps_handler.py --external-deps hiviewdfx_hilog_native:libhilog --parts-src-flag-file build_configs/parts_src_flag.json --external-deps-temp-file gen/utils/native/base/utilsbase_external_deps_temp.json --sdk-base-dir ../../sdk/ohos-arm --sdk-dir-name sdk/ohos-arm --current-toolchain //build/toolchain/ohos:ohos_clang_arm Returned 1 and printed out: file '../../sdk/ohos-arm/hiviewdfx_hilog_native/sdk_info.json' doesn't exist. stderr: Traceback (most recent call last): File "/home/luo/linux/openharmony/tmp/build/templates/common/external_deps_handler.py", line 239, in <module> sys.exit(main()) File "/home/luo/linux/openharmony/tmp/build/templates/common/external_deps_handler.py", line 205, in main sdk_module_info, adapted_ok = _get_external_module_from_sdk( File "/home/luo/linux/openharmony/tmp/build/templates/common/external_deps_handler.py", line 73, in _get_external_module_from_sdk raise Exception("part '{}' doesn't exist in sdk modules.".format( Exception: part 'hiviewdfx_hilog_native' doesn't exist in sdk modules. See //utils/native/base/BUILD.gn:100:1: whence it was called. ohos_static_library("utilsbase") { ^--------------------------------- See //third_party/sqlite/BUILD.gn:72:5: which caused the file to be included. "//utils/native/base:utils", ^-------------------------- build: gn gen error 3、"startup":init{}, "common:common":{},"utils:utils_base":{} 编译失败,gn gen 生成 ninja 文件的时候失败, 提示和2类似 可能需要的子系统:startup、common、xts 不需要的子系统:distributeddatamgr、account、hiviewdfx、communication、distributedschedule、multimedia、telephony、distributedhardware 使用哪些组件可以配置一个适用于嵌入式 的最小的 openHarmony 系统(linux)? 谢谢!