[Yocto-builds] How to do incremental build in yocto

Amaresh Kotekal amareshkotekal at gmail.com
Thu Jan 8 06:00:01 PST 2015

Hello Everyone,

Yocto build image is not calling the internal recipe when internal recipe
source file is modified.

my amar-image.bb file
vim ../meta-amar/recipes-amar/images/amar-image.bb

DESCRIPTION = "A small image for sample program"




inherit core-image


IMAGE_INSTALL += " myprogram"

my internal recipe file
vim ../meta-amar/recipes-core/myprogram/myprogram.bb

DESCRIPTION = "My simple program"
LICENSE = "unknown"
PR = "r0"

SRC_URI = "file://my_program.c"

S = "${MAINDIR}/meta-amar/recipes-core/myprogram/myprogram/"

do_compile() {
    ${CC} my_program.c -o myprogram

do_install() {
   install -d ${D}${bindir}
    install -m 0755 myprogram ${D}${bindir}

vim ../meta-amar/recipes-core/myprogram/myprogram/my_program.c
#include <stdio.h>

int main (int argc, char * argv [])
     printf ("***********Test program start ************\n");
     printf ("***********Hello Amaresh******************\n");

I have modified the my_program.c file and try to build the image as below

$ bitbake amar-image

It is not recompiling and not re -installing my_program.c

Could you guys please help me on this.

Thanks & Regards,

On Wed, Jan 7, 2015 at 4:58 PM, Amaresh Kotekal <amareshkotekal at gmail.com>

> Hello Everyone,
> I am new to the yocto build system. so first I want to build simple hello
> world application in yocto.
> I have downloaded the poky-denzil-7.0 tar ball and extracted it. I have
> built the simple hello world program for qemux86 and able to run.
> if i modify the hello world program and recompile it. My changes are not
> affected means it is not rebuilt the hello world program.
> Could you guys please help me on this.
> Thanks,
> Amaresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto-builds/attachments/20150108/2455f361/attachment-0002.html>

More information about the yocto-builds mailing list