本文介绍了Yocto bitbake 脚本不显示 echo 语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个看起来像这样的 bitbake .bb 脚本

I currently have a bitbake .bb script that looks like this

DESCRIPTION = "Hello World"
SECTION = "TESTING"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r0"

SRC_URI = "file://fileA \
           file://fileB"

S = "${WORKDIR}"

inherit allarch


do_install() {
        echo "--------HELLO WORLD------------------------"
}

现在,当我进入构建目录并在此配方上运行 bitbake 时,我在任何地方都看不到输出Hello world".关于为什么我没有看到的任何建议?

Now when I goto the build directory and run bitbake on this recipe I do not see output "Hello world" anywhere. Any suggestions on why I dont see that ?

推荐答案

你可以使用 bitbake -e myRecipe >./myRecipe.log 深入了解正在发生的事情.当您运行 bitbake 时,do_install 不会 echo 任何内容.

you could use bitbake -e myRecipe > ./myRecipe.log to look deep into what is going on. The do_install will not echo anything out of the build when you are running bitbake.

相反,它们都存储在 /build/${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR} 的日志文件中/temp

log.do_install中,你应该可以看到类似这样的内容

In log.do_install, you should able to see something like this

DEBUG: Executing shell function do_install
--------HELLO WORLD------------------------
DEBUG: Shell function do_install finished

这篇关于Yocto bitbake 脚本不显示 echo 语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 07:10