Conversation

Jarkko Sakkinen

Doing a distribution kernel for testing feature patch in Fedora is actually quite trivial now that I see the forest, and not only trees.

Up to the SRPM's it is exactly these steps:

1. git clone git@gitlab.com:cki-project/kernel-ark.git && cd kernel-ark
2. git -C ~/work/kernel.org/jarkko/linux-tpmdd diff master..v4l2-loopback > redhat/linux-kernel-test.patch
3. make dist-test-patch
4. make dist-srpm

Cool: three (!) weeks of improving my QA flows but now I can move on to the API breaking changes in the V4L2 loopback device :-) It is easier to develop the test code for anonymous inode version when you have the driver running in your desktop. Otherwise, it would be super painful.

@kernellogger thanks for getting me up on speed with compiling Fedora kernel, could not have mastered it w/o you :-)

I'd like to remark steps two and three because those I added by trial and failure and peeking at redhat/Makefile. It probably would make sense to put a remark here: https://cki-project.gitlab.io/kernel-ark/

#fedora #linux
2
4
7

@jarkko yw!

FWIW, keep in mind that this is not a vanilla kernel you are building[1]; there are not many patches kernel-ark applies, but quite a few nevertheless: https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/Patchlist.changelog

You also might insert a "git checkout ark-latest" between step one and two, as sometimes that branch will contain changes needed to make the kernel compile.

[1] to everyone interested in that: if that's your goal, using arkify might be better fit: https://gitlab.com/knurd42/linux/-/tree/arkify-arkify

0
0
1

@jarkko and reg. the "It probably would make sense to put a remark here"

Yeah, that likely is wise. I forgot about that "make dist-test-patch" thing myself. Maybe I or somebody else that sees this thread will submit improvements to the kernel-ark documentation to mention that.

1
0
0
@kernellogger i need that kernel just keep my machine alive long enough to write a test program with a driver running using a new API :-) so as long as it boots and logs into GNOME, I'm good... So not looking for perfect result.
0
0
1