James Franco James Franco - 1 year ago 256
Linux Question

Yocto bitbake script not displaying echo statement

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

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

SRC_URI = "file://fileA \

S = "${WORKDIR}"

inherit allarch

do_install() {
echo "--------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 ?

Answer Source

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.

Instead, they are all stored in the log file at /build/${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${EXTENDPE}${PV}-${PR}/temp

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download