Discussion:
[yocto] Add python2 as native package in openembedded sdk
Alberto Eusebi
2018-10-15 16:15:20 UTC
Permalink
Hello,
I need to cross compile python2 packages using openembedded sdk. The sdk
resulting package contains only python 3.5.3 (in older version it contains
python 2.7.3 as well).
_________________________________________________________________________________
# ls -l sysroots/x86_64-angstromsdk-linux/usr/bin/python*
lrwxrwxrwx 1 root root 9 Oct 11 21:39 python3 -> python3.5*
-rwxr-xr-x 1 root root 267 Oct 11 21:39 python3.5*
lrwxrwxrwx 1 root root 17 Oct 11 21:39 python3.5-config -> python3.5m-config*
-rwxr-xr-x 2 root root 15K Oct 11 21:39 python3.5m*
-rwxr-xr-x 1 root root 3.3K Oct 11 21:39 python3.5m-config*
-rwxr-xr-x 2 root root 15K Oct 11 21:39 python3.5.real*
lrwxrwxrwx 1 root root 16 Oct 11 21:39 python3-config -> python3.5-config*__
_________________________________________________________________________________


Is there a way to add also this native python version to my sdk?

Thanks.

--
Albeus
--
Burton, Ross
2018-10-15 16:57:10 UTC
Permalink
Add nativesdk-python-core and nativesdk-python-modules to
TOOLCHAIN_HOST_TASK (using _append).

Ross
Post by Alberto Eusebi
Hello,
I need to cross compile python2 packages using openembedded sdk. The sdk
resulting package contains only python 3.5.3 (in older version it contains
python 2.7.3 as well).
_________________________________________________________________________________
# ls -l sysroots/x86_64-angstromsdk-linux/usr/bin/python*
lrwxrwxrwx 1 root root 9 Oct 11 21:39 python3 -> python3.5*
-rwxr-xr-x 1 root root 267 Oct 11 21:39 python3.5*
lrwxrwxrwx 1 root root 17 Oct 11 21:39 python3.5-config -> python3.5m-config*
-rwxr-xr-x 2 root root 15K Oct 11 21:39 python3.5m*
-rwxr-xr-x 1 root root 3.3K Oct 11 21:39 python3.5m-config*
-rwxr-xr-x 2 root root 15K Oct 11 21:39 python3.5.real*
lrwxrwxrwx 1 root root 16 Oct 11 21:39 python3-config -> python3.5-config*__
_________________________________________________________________________________
Is there a way to add also this native python version to my sdk?
Thanks.
--
Albeus
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
--
Burton, Ross
2018-10-17 13:27:36 UTC
Permalink
Please remember to CC the list.
Post by Burton, Ross
Add nativesdk-python-core and nativesdk-python-modules to
TOOLCHAIN_HOST_TASK (using _append).
__________________________________________________________________________________________________________________________
# ./angstrom-glibc-x86_64-armv7at2hf-neon-v2017.12-toolchain.sh -d 4.9
Angstrom SDK installer version nodistro.0
=========================================
You are about to install the SDK to "/opt/toradex_sdk/imx6/4.9". Proceed[Y/n]?
Extracting SDK.........................................................................................................done
Setting it up...ls: cannot access '/opt/toradex_sdk/imx6/4.9/environment-setup-*': No such file or directory
__________________________________________________________________________________________________________________________
Sounds like you broke the SDK. How did you set TOOLCHAIN_HOST_TASK?

Ross
--
Alberto Eusebi
2018-10-29 15:42:07 UTC
Permalink
Post by Burton, Ross
Post by Burton, Ross
Add nativesdk-python-core and nativesdk-python-modules to
TOOLCHAIN_HOST_TASK (using _append).
__________________________________________________________________________________________________________________________
# ./angstrom-glibc-x86_64-armv7at2hf-neon-v2017.12-toolchain.sh -d 4.9
Angstrom SDK installer version nodistro.0
=========================================
You are about to install the SDK to "/opt/toradex_sdk/imx6/4.9". Proceed[Y/n]?
Extracting SDK.........................................................................................................done
Setting it up...ls: cannot access '/opt/toradex_sdk/imx6/4.9/environment-setup-*': No such file or directory
__________________________________________________________________________________________________________________________
Sounds like you broke the SDK. How did you set TOOLCHAIN_HOST_TASK?
Hi Ross,
thank you. Your reply solved my problem. I appled it in a wrong way: i used
"+=" in variable. Now I used _append as you recommended.

Thank you very much for your support!

Cheers
Albeus
--

Loading...