[yocto] Incremental rebuild doesn't pick up FILES changes.

Kaz Kylheku (poky) 442-103-8455 at kylheku.com
Wed Mar 6 14:55:45 PST 2019


On 2019-03-06 14:26, Kaz Kylheku (poky) wrote:
> So I'm guessing this should be
> 
>   FILES_${PN}-core_remove =

No dice. FILES_${PN}-core_remove = "${libdir}/python-2.7/encodings" does 
not register anywhere. In the "bitbake -e" output, no _remove event 
appears for FILES_python-core, and the image still contains that 
encodings directory.

I'm afraid I'm outsmarted here by the Smart Dictionary.

This ugly fallback is doing what I want though:

   do_install_append() {
     encodings=${D}/usr/lib/python2.7/encodings

     if [ -e "$encodings" ] ; then
       find "$encodings" -type f | grep -v -E 
'/(utf_8|aliases)\.(py|pyc)$' | xargs rm -f
     fi
   }




More information about the yocto mailing list