最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】crosstool-ng-1.18.0中配置xscale

crosstool-ng crifan 3418浏览 0评论

【背景】

折腾:

【记录】重试使用最新版本1.18.0的crosstool-ng去配置和编译xscale的交叉编译器

期间,去为xscale配置。

【折腾过程】

1.继续参考:

【记录】在Cygwin下编译gcc-3.4.5-glibc-2.3.6的arm-xscale-linux-gnu交叉编译器

记得要实现的目的:

(1)重新用最新的1.18.0的crosstool-ng,去为xscale编译。

(2)并且不选择,我此处不太常用的,gmp等库。

(3)并且后来已知自己的linux用的是:linux-2.6.19.1.tar.bz2,所以到时候选择linux的时候,也要手动设置为linux-2.6.19.1(而不用最新的linux 3.0的版本)

2.开始配置:

ct-ng menuconfig

3.配置Paths and misc options:

(1)对于:

Interactive shell on failed commands

看了解释:

Interactive shell on failed commands
  CT_DEBUG_INTERACTIVE:                                               
                                                                     
  If you say ‘y’ here, then an interactive shell will be spawned for  
  each failed command.                                                
                                                                     
  This shell will have the same environment that the failed command   
  was run with, and the working directory will be set to the directory
  the failed command was run in.                                      
                                                                     
  After you fix the issue, you can exit the interactive shell with any
  of these exit codes:                                                
  1  the issue was fixed, continue the build with the next command  
  2  the issue was fixed, re-run the failed command                 
  3  abort the build                                                
                                                                     
  Note: ‘2’ is only possible for commands run via CT_DoExecLog, though.
                                                                     
  Symbol: DEBUG_INTERACTIVE [=n]                                      
  Type  : boolean                                                     
  Prompt: Interactive shell on failed commands                        
  Defined at config/global/ct-behave.in:121                         
  Depends on: DEBUG_CT [=y]                                         
  Location:                                                         
      -> Paths and misc options                                       
      -> Debug crosstool-NG (DEBUG_CT [=y])

有点意思,所以可以选上。

最后配置如下:

paths and misc options for xscale

4.配置Target options:

xscale target options

5.配置Toolchain options:

xscale toolchain options

6.配置Operating System:

(1)Linux kernel version

这里,要去选择自定义:

for linux version choose custom tarball or directory

然后出现:custom tarball or directory

show custom tarball or directory

设置下面的 Path to custom source, tarball or directory为:

${HOME}/develop/crosstool-ng/src/linux-2.6.19.1.tar.bz2

input linux kernel tarball

对应的着本地已实现下载好的:

D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\crosstool-ng\src\linux-2.6.19.1.tar.bz2

local downloaded linux 2.6.19.1 tarball

配置如下:

xscale for operation system

7.配置Binary utilities:

xscale binary utilities

8.配置 C compiler:

(1)gcc version

此处默认为4.4.6

此处,看看是否有之前的旧版本:3.4.5

结果此处最低只有4.2.2

然后就选这个,最低的,4.2.4吧:

(2)Use __cxa_atexit

还是去掉此选项。

配置为:

xscale c compiler

9.配置C-library:

xscale c library

10.配置Debug facilities:

去掉了duma:

xscale debug facilities

11.配置Companion libraries:

此处没了之前的GMP等东西:

xscale companion libraries

12.然后最后保存配置:

save config for 1.18.0 crosstool-ng

 

【总结】

新版本1.18.0,没了gmp等库了。也就无需取消选择了。

核心的选项,此处的选择是:

linux-2.6.19.1.tar.bz2

gcc 4.2.2

glibc 2.9

转载请注明:在路上 » 【记录】crosstool-ng-1.18.0中配置xscale

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.441 seconds, using 22.17MB memory