Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.33k stars 167 forks source link

Building a kernel on Fedora Copr #596

Open norz3n opened 2 years ago

norz3n commented 2 years ago

Hello, I decided to create a Copr repository with a TKG kernel for Fedora Linux and I have no idea how to get it to build correctly (Copr building the packages by itself). I would be glad for any help

The repository link (it's empty for now): https://copr.fedorainfracloud.org/coprs/norz3n/kernel-tkg/

AdelKS commented 2 years ago

At least now the RPM builds should work well with nvidia and co. Unfortunately I have no idea how we deal with copr

whitehara commented 1 year ago

I am modifying TKG patches for Fedora, and they are available in my GutHub repo: https://github.com/whitehara/kernel-patch-fedora

Now RPMs are also in my Copr repo: https://copr.fedorainfracloud.org/coprs/whitehara/kernel-tkg/

It's my pleasure if it helps you.

AdelKS commented 9 months ago

I recently opened PR #864 that adds pipelines to build RPMs on the latest fedora release (I wonder if the kernel packages are actually backwards compatible with older fedora versions). Any chance to use those packages and make a repo out of them, like having the pipeline push to a copr repo ?

whitehara commented 9 months ago

@AdelKS Nice work! So you want to publish your kernel RPMs on copr by your Git Actions, right? If so, please refer my Git Actions That action's points are below:

AdelKS commented 9 months ago

Thanks for your feedback @whitehara

That sounds as too much work for me if cannot simply upload the built rpm in Github's pipeline. I am not sure there's an option in the kernel's build things to produce an srpm.

I see that on your copr you only keep the patches that linux-tkg adds but not the tweaks made by the prepare script, am I wrong ?

whitehara commented 9 months ago

@AdelKS

I am not sure there's an option in the kernel's build things to produce an srpm.

install.sh uses make rpm-pkg to produce RPMs, I think that command also make the SRPM into the ${_fedora_work_dir}/SRPMS.

I see that on your copr you only keep the patches that linux-tkg adds but not the tweaks made by the prepare script, am I wrong ?

I'm not using the prepare script. Some features provided by the prepare script are controlled by kernel-mock.sh and support-features to change CPU schedulers, architectures, etc. By each lines of the support-features, the kernel-mock.sh makes different configured SRPMs at the same time. These SRPMs are sent to different Copr projects for building each configured packages. So, users can select the project/packages which are suitable for their needs.