摩托罗拉为他们的机顶盒VIP1710提供了一个交叉编译工具链。你必须将其提取到/usr/local/kreatel
,在那里你有一个构建工具树:
./bin
./bin/mipsel-kreatel-linux-gnu-addr2line
./bin/mipsel-kreatel-linux-gnu-ar
./bin/mipsel-kreatel-linux-gnu-as
./bin/mipsel-kreatel-linux-gnu-c++
./bin/mipsel-kreatel-linux-gnu-c++filt
./bin/mipsel-kreatel-linux-gnu-cpp
./bin/mipsel-kreatel-linux-gnu-g++
./bin/mipsel-kreatel-linux-gnu-gcc
...
./include
./lib
Now how do I make those configure
scripts using my cross-compiling tools instead of my systems' gcc?the --host
parameter to configure, like this
./configure --host=arm-9tdmi-linux-gnu
其中arm-9tdmi-linux-gnu是目标系统的标识(在我的例子中)—顺便说一下,您可以在一个交叉凳安装中有多个目标。