Cross-compiling Python

I found the solution. The board I use is the TMDSLCDK138 integrating an OMAPL138 (ARM926EJ-S + DSP).

For those trying to cross-compile Pyhton 2.7 for this board running the Arago SDK here is the way ! I am working on Ubuntu 16.04.

First install the Arago toolchain :

NOT THIS ONE : http://software-dl.ti.com/sdoemb/sdoemb_public_sw/arago_toolchain/2011_09/index_FDS.html (Because it is DEPRECATED !!)

But the one in the mcsdk_1_01_00_02_setuplinux.bin !

wget http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest1/exports/mcsdk_1_01_00_02_setuplinux.bin
chmod +x mcsdk_1_01_00_02_setuplinux.bin
sudo ./mcsdk_1_01_00_02_setuplinux.bin

I install it in /opt/ti/

Then :

cd /opt/ti/mcsdk_1_01_00_02
chmod +x linux-devkit.sh
sudo ./linux-devkit.sh

It is going to ask you where you want to install it, I kept /usr/local/arago.2013-05/

Now :

cd /usr/local/arago-2013.05/
. ./environment-setup

Normally your shell is going to "transform" and your command lines are performing with :

[linux-devkit]:/usr/local/arago-2013.05/>

Ok, here you have finished installing the GOOD Arago toolchain.

Now cross-compiling and installing Python :

I did all the others commands in this linux-devkit shell.

wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz
tar -Jxvf Python-2.7.13.tar.xz
cd Python-2.7.13/

Now create a file named config.site (because if you don't you get an error asking you to do so) :

touch config.site
gedit config.site

Add those two lines in this file :

ac_cv_file__dev_ptmx=no
ac_cv_file__dev_ptc=no

Now you can do the ./configure like so :

CONFIG_SITE=config.site ./configure --host=arm-arago-linux --prefix=/home/YOUR_USER/MY_BOARD_python --build=x86_64-linux-gnu --disable-ipv6
make
make install

Now you just have to compress your MY_BOARD_python folder, scp it to your board with :

tar -jcvf MY_BOARD_python.tar.bz2 MY_BOARD_python/
scp MY_BOARD_python.tar.bz2 root@IP_ADRESS:~/

Now on your board :

tar -jxvf MY_BOARD_python.tar.bz2
cp -R MY_BOARD_python/* /usr/

And now if you type Python :

root@omapl138-lcdk:~# python
Python 2.7.13 (default, Feb 23 2017, 16:37:33) 
[GCC 4.5.3 20110311 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> HURAYY!!

Hop this is going to help !