Hello Toan,
I just tested meta-python2 in yocto , below is steps:
# cd ~/imx-yocto-bsp-L4.14.98-2.2.0/sources/meta-openembedded
# git clone https://git.openembedded.org/meta-python2
# cd meta-python2
# git checkout -b sumo origin/sumo
# cd ~/imx-yocto-bsp-L4.14.98-2.2.0/
# DISTRO=fsl-imx-fb MACHINE=imx6ulevk source fsl-setup-release.sh -b build-fb
(1) changing ./conf/bblayer.conf
...
#BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python2 "
...
(2)changing networking's layer.conf
~/imx-yocto-bsp-L4.14.98-2.2.0/sources/meta-openembedded/meta-networking/conf/layer.conf
..
#LAYERDEPENDS_networking-layer += "meta-python"
LAYERDEPENDS_networking-layer += "meta-python2"
..
# bitbake python -c fetch
# bibake python -c compile
Have a nice day!
BR,
Weidong