Cross compile gdb for TI AM335x

Below steps are to cross compile gdb by TI's SDK for AM335x in Ubuntu 12.04.

# get gdb source code
cd /home/test
mkdir gdb_arm_build
cd gdb_arm_build
apt-get source gdb

# build gdb/gdbserver for ti
cd /home/test/ti-sdk-SDK_06_00/linux-devkit/
source environment-setup
cd /home/test/gdb_arm_build/gdb-7.4-2012.04/
./configure --host=arm-linux --build=i686-pc-linux-gnu
make

Done! The gdb binary is in gdb/ folder.

留言

熱門文章