AnsweredAssumed Answered

Yocto helloword recipe in rootfs

Question asked by Gokhan Sahin on Jul 17, 2019
Latest reply on Jul 21, 2019 by Costin Constantin

I have created a new recipe is helloworld example in manual. I'm using imx6sx processor, so created it in meta-freescale-3rdparty folder as recipes-helloword and checked this layer whether has been added to bblayer.conf. It can be compiled with bitbake helloworld there was no error and it exists in rpm folder. After that, the image compiled again with bitbake fsl-image-qt5-validation-imx and generated a new rootfs and sdcard file.

However, I can't find the application in rootfs. Where is the application in rootfs? (the recipe has been inserted in local.conf : IMAGE_INSTALL_append = " helloworld")

Also, the helloworld package has been installed correctly because it exists package.manifest file.

./recipes-helloworld/

└── helloworld

    ├── helloworld

    │   ├── COPYING

    │   └── helloworld.c

    └── helloworld_0.0.bb

 

2 directories, 3 files

 

helloworld_0.0.bb

SUMMARY = "Hello World Cpp App Sources"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PV = "1.5"

TARGET_CC_ARCH += "${LDFLAGS}"
SRC_URI = "file://helloworld.c"

S= "${WORKDIR}"

do_compile() {
${CC} helloworld.c -o helloworld
}
do_install() {
install -d ${D}${bindir}
install -m 0755 helloworld ${D}${bindir}
}

Outcomes