LinuxSir.cn,穿越时空的Linuxsir!

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

2.6.32的一个新特性

[复制链接]
发表于 2009-12-7 10:35:53 | 显示全部楼层 |阅读模式
To make easier the process of configuration, a new build target has been added: make localmodconfig. It runs "lsmod" to find all the modules loaded on the current running system. It will read all the Makefiles to map which CONFIG enables a module. It will read the Kconfig files to find the dependencies and selects that may be needed to support a CONFIG. Finally, it reads the .config file and removes any module "=m" that is not needed to enable the currently loaded modules. With this tool, you can strip a distro .config of all the unuseful drivers that are not needed in our machine, and it will take much less time to build the kernel. There's an additional "make localyesconfig" target, in case you don't want to use modules and/or initrds.
发表于 2009-12-7 11:27:11 | 显示全部楼层
传说中的 localmodconfig 呀,之前看人讨论过
回复 支持 反对

使用道具 举报

发表于 2009-12-7 11:35:45 | 显示全部楼层
用 make localconfig 前最好全部加载你所有硬件的驱动模块。。。

比如无线网卡, SD读卡器, USB。。。
回复 支持 反对

使用道具 举报

发表于 2009-12-7 17:01:53 | 显示全部楼层
为了看看这个特性,也要去升级一下最新内核看看
回复 支持 反对

使用道具 举报

发表于 2009-12-7 18:13:35 | 显示全部楼层
这个就是编译快了一点,运行不会有什么差别。要是真的全部剥离掉,插上一个外来设备就傻了,还有 debian 也不鼓励编译什么。
回复 支持 反对

使用道具 举报

发表于 2009-12-8 09:22:20 | 显示全部楼层
I used to compile source codes with normal user and only install the kernel with root.

However, with this option, you have to compile the source codes with root.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-8 10:05:03 | 显示全部楼层
Post by d00m3d;2053695
I used to compile source codes with normal user and only install the kernel with root.

However, with this option, you have to compile the source codes with root.


Aha,I usually compile kernel as root,for me,the risk is a piece of cake.
回复 支持 反对

使用道具 举报

发表于 2009-12-8 11:33:54 | 显示全部楼层
fakeroot?
回复 支持 反对

使用道具 举报

发表于 2009-12-8 19:50:35 | 显示全部楼层
Post by AutoXBC;2053727
fakeroot?


It is not such case.

The reason for root access is due to probing of kernel modules.
回复 支持 反对

使用道具 举报

发表于 2009-12-10 22:29:44 | 显示全部楼层
学习一下,谢谢了
回复 支持 反对

使用道具 举报

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

本版积分规则

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