gpt4 book ai didi

node.js - 在 Yocto 项目的meta-nodejs 中指定nodejs 的版本

转载 作者:太空宇宙 更新时间:2023-11-03 22:52:55 31 4
gpt4 key购买 nike

我第一次与 Yocto 合作进行嵌入式系统的概念验证。我已经设置了 meta-nodejs 层,并且可以使用以下命令构建 Nodejs 版本:

bitbake Nodejs 运行完成:


注意:任务摘要:尝试了 707 个任务,其中 700 个不需要重新运行并且全部成功。

但是默认情况下似乎选择了nodejs v0.8 - 我如何看到我需要的4.3.1的食谱,但是我在哪里指定版本?找不到这方面的文档!

我的 local.conf 显示:

IMAGE_INSTALL_append = "nodejs"

谢谢

最佳答案

您必须在其中一个配置文件(例如 local.conf)中指定 PREFERRED_VERSION_nodejs = "4.3.1"

以下是文档中的相应部分:

If there are multiple versions of recipes available, this variable determines which recipe should be given preference. You must always suffix the variable with the PN you want to select, and you should set the PV accordingly for precedence. You can use the "%" character as a wildcard to match any number of characters, which can be useful when specifying versions that contain long revision numbers that could potentially change. Here are two examples:

 PREFERRED_VERSION_python = "2.7.3"
PREFERRED_VERSION_linux-yocto = "3.19%"

https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-PREFERRED_VERSION

关于node.js - 在 Yocto 项目的meta-nodejs 中指定nodejs 的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35714134/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com