通过bitbake obmc-phosphor-image编译openbmc时,每次都会重新安装webui-vue的依赖
查看openbmc/meta-phosphor/recipes-phosphor/webui/webui-vue_git.bb:
do_compile () {
cd ${S}
rm -rf node_modules
npm --loglevel info --proxy={http_proxy} --https-proxy={https_proxy} install
vue-cli-plugin-i18n isn't needed in build and causes a segv in node 22.12.
npm uninstall vue-cli-plugin-i18n
npm run build ${EXTRA_OENPM}
}
由于众说周知的原因,通过npm安装node_modules经常会失败,所以也经常导致bitbake obmc-phosphor-image编译失败。
可以先取消webui-vue的编译,从而绕过这一问题,方法如下:
编辑meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb
通过#注释以下几行即可:
SUMMARY:${PN}-webui = "Web User Interface support"
RDEPENDS:${PN}-webui = "webui-vue"
RDEPENDS:${PN}-webui:df-phosphor-no-webui = ""