|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
6 d9 U4 j& t- I
不完整的内核源码:
! d* ?8 S# E% o; t: _5 l& t. |
安装:
V( l7 x/ D' }) H! W5 z7 Y * kernel-devel (both 32- & 64-bit architectures); u* E) u0 [" c
* kernel-xen-devel (both 32- & 64-bit architectures)
+ O' d8 N# F1 d* ` * kernel-PAE-devel (32-bit architecture only)
3 f ?8 |, j$ p/ J/ V执行:
( v/ a; _. v+ C j4 iln -s /usr/src/kernels/2.6.18-238.19.1.el5xen-x86_64 /lib/modules/$(uname -r)/build6 L, ^/ s( O) j1 m. T$ X9 @7 i0 o
]1 a1 F- c' M
, |0 I1 r' o( Y3 p* l* ^完整的内核源码:5 Q7 B. f( I5 m- y5 i
yum install rpm-build redhat-rpm-config unifdef1 a+ w' ^; N, ~! K& f
wget http://vault.centos.org/5.7/upda ... 274.7.1.el5.src.rpm
! a( d# W3 z" t2 B8 ]' e$ Zrpm -Uvh kernel-2.6.18-274.7.1.el5.src.rpm
5 j7 M4 H$ y. ]: y
- @, T/ h2 B9 z0 B7 Y+ ycd /usr/src/redhat/SPECS
: G9 f3 I& }) P5 N- xrpmbuild -bp --target=`uname -m` kernel.spec
U/ N; h: ^- j3 @最终源码在/usr/src/redhat/build目录中:/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18-274.7.1.el5.x86_64/ |
|