解决缺少genconfig
编译鸿蒙L0系统时,遇到报错:
[OHOS INFO] Returned 127.
[OHOS INFO] stderr:
[OHOS INFO]
[OHOS INFO] env: “genconfig”: 没有那个文件或目录
[OHOS INFO]
[OHOS INFO] See //kernel/liteos_m/BUILD.gn:34:1: whence it was imported.
[OHOS INFO] import("liteos.gni")
[OHOS INFO] ^------------------
[OHOS INFO] See //third_party/musl/BUILD.gn:13:11: which caused the file to be included.
[OHOS INFO] "${ohos_kernel_path}:public",
这里缺失的genconfig是kconfiglib中的一部分。安装kconfiglib即可。
首先安装python3.8和pip,然后使用pip安装kconfiglib。
sudo pip install kconfiglib
注意这里需要sudo安装。