Search code examples
yoctobitbake

Yocto: oe_runmake failed, error in do_configure from bitbake image


I'm building yocto image. I'm having an error when I type bitbake piflo command (piflo is my image name) like shown figure below:

enter image description here

oe_runmake failed with do_configure and No rule for 'clean'

| make: *** No rule to make target 'clean'. Stop.

So I tried to make empty function 'do_clean' at "/opt/sanghun/meta-piflo/recipes-devtools/python/python-dateutil_1.5.bb" like shown figure below:

enter image description here

do_clean(){ }

but it doesn't work...

Does anybody have an idea for this? Please help me out here.

If needs more information or code, I will EDIT.

Thanks in advance.


Solution

  • There is a make clean step in do_configure by default. Apparently the Makefile you are using misses that target. Just do this definition in your recipe:

    CLEANBROKEN = "1"
    

    This will skip the make clean step.

    Links to the documentation:

    BTW you can remove your empty do_clean - it is unrelated to the error you are seeing.