Help building custom kernel RPM.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to build a custom kernel with some modules and patches added, and package this as an rpm to install. I have tried adding it like building the kernel from the git source, but it doesnt have the modules. I think it might have to do with the .spec file. I added the patches to the rpm, and I modified the source tarball so it has the modules added. I ran
```
dnf install -y fedora-packager git curl pesign ncurses-devel libkcapi libkcapi-devel libkcapi-static libkcapi-tools libbpf fedpkg rpmdevtools dwarves
rpmdev-setuptree
cd ~/rpmbuild/SOURCES

koji download-build --arch=src kernel-${FEDORA_KERNEL_VERSION}
rpm -Uvh kernel-${FEDORA_KERNEL_VERSION}.src.rpm

cd /root/rpmbuild/SPECS 
dnf -y builddep kernel.spec

cp /path/to/driver /path/to/kernel source tarbal from spec/drivers/staging
tar -cJf ~/rpmbuild/SOURCES/kernel-version.tar.xz /path/to/kernel/src
rpmbuild -bb --with baseonly --without debug --without debuginfo --target=x86_64 kernel.spec
```
I know that I install some extra useless dependencies. When I do the same process to the kernel sources, but instead use make to build the vanilla kernel git, the modules are built. I noticed this https://fedoraproject.org/wiki/KernelStagingPolicy, but I dont know if it is related. The necessary drivers are in drivers/staging, and I added the sources to the spec file. Can someone please help me make this modifications into a kernel rpm.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux