LFS 学习日记(第5章构建临时系统之5.6. Linux-2.6.32.8 API Headers )

2010年06月21日 星期一
http://www.linuxfromscratch.org/lfs/view/6.6/chapter05/linux-headers.html
5.6. Linux-2.6.32.8 API Headers

translation: The Linux API Headers expose the kernel's API for use by Glibc. (Linux API Headers 提供内核的 API 给 Glibc 使用。)
for use by ( 给...使用 )用法:

Erectile dysfunction medication is designed for use by men only and women are not allowed to buy it.( http://dict.cn/kuaile/86/n-3986.html )

(of facilities such as telephones or lavatories) unavailable for use by anyone else or indicating unavailability; (`engaged' is a British term for a busy telephone line) ( http://www.study.dict.cn/in+use )

bug: They are placed in an intermediate local directory and copied to the needed location because the extraction process removes any existing files in the target directory. 与linux-2.6.32.15.tar.bz2实际不大一致,据实验,make INSTALL_HDR_PATH=$LFS/tools headers_install 会直接安装头部文件进入$LFS/tools/中,而对$LFS/tools/内的其它文件或目录无影响,就算原来在$LFS/tools/include中有其它文件或目录,也对这些文件或目录无影响。提取进程并不会移除目标目录里任何的文件或目录。

make headers_check
make INSTALL_HDR_PATH=dest headers_install #会自动建立dest目录并提取相关文件进入此目录
cp -rv dest/include/* /tools/include

question:
kernel API headers 究竟对glibc有什么用? 不先安装 Kernel API headers 有什么问题没有? 在http://www.linuxfromscratch.org/lfs/view/6.6/appendices/dependencies.html中的依赖关系表中,仅有IProute2 依赖于它,为什么现在就要安装它?

bug: http://www.linuxfromscratch.org/lfs/view/6.6/appendices/dependencies.html中,Glibc应该依赖Linux API Headers,否则 配置Glibc时 ./configure 报告找不到 Linux API Headers。

http://www.linuxfromscratch.org/lfs/view/6.6/chapter06/linux-headers.html#contents-linux-headers :
/usr/include/drm/*.h
The Linux API DRM Headers
Direct Rendering Manager (DRM)( http://dri.freedesktop.org/wiki/DRM )

/usr/include/mtd/*.h
The Linux API MTD Headers
MTD(memory technology device内存技术设备)是用于访问memory设备(ROM、flash)的Linux的子系统。( http://www.91linux.com/html/article/program/20080215/9698.html )

/usr/include/rdma/*.h
The Linux API RDMA Headers
-RDMA(Remote Direct Memory Access)是通过网络把资料直接传入某台计算机的一块存储区域,不需用到多少计算机的处理功能。 ( http://blog.chinaunix.net/u2/79570/showart_1906440.html )

One thought on “LFS 学习日记(第5章构建临时系统之5.6. Linux-2.6.32.8 API Headers )”

Comments are closed.