2016-01-22 62 views
2

我正在爲Cent OS 7重新構建Linux內核以選擇不同的搶佔級別。內核版本爲CentOS 7:內核固件不生成

我的步驟如下:

  • sudo yum install rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed pesign xmlto audit-libs-devel binutils-devel elfutils-devel elfutils-libelf-devel ncurses-devel newt-devel numactl-devel pciutils-devel python-devel zlib-devel gcc patchutils bison make gcc redhat-rpm-config
  • mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
  • echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
  • wget http://vault.centos.org/7.2.1511/updates/Source/SPackages/kernel-3.10.0-327.4.4.el7.src.rpm
  • rpm -i kernel-3.10.0-327.4.4.el7.src.rpm
  • cd ~/rpmbuild/SPECS
  • rpmbuild -bp --target=$(uname -m) kernel.spec
  • 內核在BUILD配置和配置文件中SOURCES
  • rpmbuild -bb --with firmware --without kabichk --without debug --without debug-info --without doc --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
  • rpmbuild -bb --with firmware --without kabichk --without debug --without debug-info --without doc --target=noarch kernel.spec 2> build-err.log | tee build-out.log

複製(--without kabichk是必要的,因爲新的搶佔級別某種程度上打破了當前ABI)

的問題是沒有生成包kernel-firmware。 任何想法缺少什麼?

回答

2

在CentOS 7中根本沒有出現內核固件包。並且通過kernel spec file的快速搜索確認kernel-firmware未出現在其中的任何地方。

雖然有一個linux固件包。

該軟件包由linux-firmware specfile構建。