LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1078|回复: 9

[News.20060521] CLFS 也许要改用 sysroot 方法了。

[复制链接]
发表于 2006-5-22 05:24:58 | 显示全部楼层 |阅读模式
没找到正规消息,这个是从 IRC 看到的。

<JoeSchmo> i wanted to ask you a question about the work i've been doing on sysroot builds, do you want me to create a branch in the branches directory and start morfing the book?
<jimg> Create the 2.0 branch
<JoeSchmo> ok, so create it in banches/clfs-2.0?

据我所知,sysroot 方法更加灵活,是一般高级 CrossCompiler 所用的方法。但是我没弄过,以前研究的时候失败了。呵呵。

期待 CLFS 的改进。
发表于 2006-5-22 06:18:29 | 显示全部楼层
呵呵。。。1.0 都还未出来就搞 2.0了?

弱问:sysroot 是怎麽玩的?
回复 支持 反对

使用道具 举报

发表于 2006-5-22 17:21:36 | 显示全部楼层
没有听说过 sysroot .

幻想给讲讲?
回复 支持 反对

使用道具 举报

发表于 2006-5-22 18:18:58 | 显示全部楼层
我也想知道,请老大讲讲。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-24 18:00:08 | 显示全部楼层
简单的来说,就是 sysroot 下边有一个真实的root,Glibc 会把相应的文件都拷贝过去,形成一个新的root,但是具体的操作,我也没弄清楚。

说是有助于隔离,,但是我看 crosstool 的脚本,也是看的一知半解。希望 CLFS 有更好的解释。
回复 支持 反对

使用道具 举报

发表于 2006-5-24 18:58:52 | 显示全部楼层
听起来似乎有一点点像 initrd 的原理?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-24 20:01:36 | 显示全部楼层
不会吧?

initrd 是以最小的代价,让内核从启动完成过渡到找到真的root。

sysroot 是用来隔离相应的系统的,尤其是 cross compile 的时候,把相应的lib都安装到另外一个目录。不过还不清楚怎么使用,有机会看看 crosstool 的脚本才行。
回复 支持 反对

使用道具 举报

发表于 2006-5-24 20:15:52 | 显示全部楼层
就是不明白嘛,期待 sysroot 的新消息
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-26 22:57:43 | 显示全部楼层
#39: Sysroot build
--------------------+-------------------------------------------------------
  Reporter:  jim    |       Owner:  clfs-commits@lists.cross-lfs.org.
      Type:  task   |      Status:  new                              
  Priority:  major  |   Milestone:  CLFS 2.0                        
Component:  BOOK   |     Version:  unstable                        
Resolution:         |    Keywords:                                   
--------------------+-------------------------------------------------------
Comment (by jciccone):

I commited what work I've done so far on arm. I'm going to add each arch
as I test for differences. My plan is to add the 32bit archs, then the
pure64 bit archs, saving the multilib archs for last.

Some differences in the build:
* There is no more temp-system
* The cross-tools uses $LFS as it's sysroot, sysroot is the prefix added
onto the search paths. eg. When gcc sees -I/usr/include, it will actualy
use [sysroot]/usr/include. The same concept applies to ld.
* The final system is built as the lfs user
* The final system is still configured with --prefix=/usr but installed
with DESTDIR=${LFS}.

What still needs to be done:
* Make sure nothing's trying to link to or search the host system
* Adding file to cross-tools
* Figure out how to cross-compile vim
* Figure out how to cross-compile perl (full working without references to
the host)
* Figure out how to setup shadow and set root's password.
* Finally, Add the rest of the archs in.
回复 支持 反对

使用道具 举报

发表于 2006-5-27 10:09:40 | 显示全部楼层
謝謝消息,好像還未有很具体的 build instructions,繼續等待。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表