Jump to content
Калькуляторы

CentOS7 самосборное ядро

Перешёл с 3.18.54 на 4.9.30 попробовать поновее для софтроутера т.к. было много изменений в сетевом стеке, ну так вот он мне почему то не собрал kernel-devel.

 

Собирал через make olddefconfig + потом make menuconfig и не сколько новых правок + make -j4 binrpm-pkg

 

+ cp System.map /root/rpmbuild/BUILDROOT/kernel-4.9.30-2.x86_64/boot/System.map-4.9.30
+ cp .config /root/rpmbuild/BUILDROOT/kernel-4.9.30-2.x86_64/boot/config-4.9.30
+ bzip2 -9 --keep vmlinux
+ mv vmlinux.bz2 /root/rpmbuild/BUILDROOT/kernel-4.9.30-2.x86_64/boot/vmlinux-4.9.30.bz2
+ /usr/lib/rpm/brp-compress
Processing files: kernel-4.9.30-2.x86_64
Provides: kernel = 4.9.30-2 kernel(x86-64) = 4.9.30-2 kernel-4.9.30
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Processing files: kernel-headers-4.9.30-2.x86_64
Provides: kernel-headers = 4.9.30 kernel-headers = 4.9.30-2 kernel-headers(x86-64) = 4.9.30-2
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Obsoletes: kernel-headers
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/kernel-4.9.30-2.x86_64
warning: Could not canonicalize hostname: router.local
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-4.9.30-2.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-headers-4.9.30-2.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.mY2UMw
+ umask 022
+ cd .
+ rm -rf /root/rpmbuild/BUILDROOT/kernel-4.9.30-2.x86_64
+ exit 0
rm binkernel.spec

 

ll /root/rpmbuild/RPMS/x86_64/
total 820188
-rw-r--r-- 1 root root   1230400 May 24 18:10 igb-5.3.5.4-1.x86_64.rpm
-rw-r--r-- 1 root root 195145268 May 12 13:17 kernel-3.18.52-2.x86_64.rpm
-rw-r--r-- 1 root root 195146908 May 24 17:50 kernel-3.18.54-2.x86_64.rpm
-rw-r--r-- 1 root root 229068868 Jun  6 19:23 kernel-4.9.30-2.x86_64.rpm
-rw-r--r-- 1 root root 108143656 May 12 13:18 kernel-devel-3.18.52-2.x86_64.rpm
-rw-r--r-- 1 root root 108147256 May 24 17:50 kernel-devel-3.18.54-2.x86_64.rpm
-rw-r--r-- 1 root root    949936 May 12 13:17 kernel-headers-3.18.52-2.x86_64.rpm
-rw-r--r-- 1 root root    949948 May 24 17:50 kernel-headers-3.18.54-2.x86_64.rpm
-rw-r--r-- 1 root root   1067036 Jun  6 19:23 kernel-headers-4.9.30-2.x86_64.rpm

 

Подскажите как дособрать заголовочные файлы для 4.9.30 ?

 

UPD. Собралось через make -j4 rpm-pkg.

Edited by hsvt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this