This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7: Updating Python version in Yocto SDK

Part Number: AM62A7

Hi AM62A Champ

Could you please let us know how to upgrade python version in Yocto SDK?

Thanks.

Regards, 

Jack

  • Could you please let us know how to upgrade python version in Yocto SDK?

    A specific Python version is more or less tied to a specific Yocto release as it is an integral part of the overall image and used by a couple of external dependencies, so updating the Python version may be a lot harder than it appears.

    For our current SDK v9.x releases which are Yocto Kirkstone-based the shipping Python3 version is 3.10.13, and the associated recipe is located at ./oe-core/meta/recipes-devtools/python/python3_3.10.13.bb . If you want to update this you have two basic options....

    1. Take an existing python3_*.bb recipe from a different/newer Yocto branch, and try to integrate it into your Yocto Kirkstone setup (and any patches from the recipe folder along with it), or
    2. Make a copy of the existing python3_3.10.13.bb recipe, and update it to pull in newer Yocto sources by updating the name of that recipe to match an existing available package at http://www.python.org/ftp/python/ (the version # from the name is used to pull the tarball). Then update SRC_URI[sha256sum] inside the recipe to match the new tarball, and then forward-port/migrate any existing patches from the recipe folder as needed

    Option (1) will be easier to deal with than (2) because the Yocto recipe should be reusable. However in both cases you'll need to understand and potentially fix any dependencies, which will depend on your image.

    We don't really support moving to a different Python version so this is something you'll need to work out on your end but I wanted to give some general pointers to get you started nevertheless.

    Regards, Andreas