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
  }


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to