I see 3 git repos with kernels: qubes-linux-kernel, rtiangha and fepitre.
I know I can change versions with $ git checkout *version*
I also know that I can download the sources and build them and I would preferably
edit a .config file to edit my options and hardware.
What I need to know:
-how to use the gen-config file.
-whats the difference between the config-base, config-qubes and config-qubes-minimal? (well the minimal part is obvious)
-I can edit one of these config files to build with my kernel, correct?
-I have built a .config using the '$ make oldconfig' command and it was a
nightmare. The most effective way to configure a .config is to use '$ make menuconfig' correct? A good balance between my time and control?
-Is there a convenient way to merge an existing .config with the qubes .config?
Any other tips?
Is there a qubes doc on this?
Search the mailing list for Reg Tiangha I forget how to spell the last name, or building qubes kernel till you see his thread.
https://groups.google.com/forum/#!topic/qubes-users/yBeUJPwKwHM
github.com/rtiangha/qubes-linux-kernel/blob/devel-4.14-hard/README.md
github.com/0spinboson/qubes-doc/blob/patch-1/managing-os/compiling-your-own-kernel.md
Im running into a problem right at the end.
rpm --add-sign /home/user/*.rpm
You must set "%_gpg_name" in your macro file
I have made the missing file: ~/.rpmmarco
%_signature gpg
%_gpg_path /home/user/.gnupg
%_gpg_name (b4892c28 / mypgp)
I still get the error. Can I ignore this?
Qubes-Builder docs suggests editing the builder.conf and changing NO_SIGN=1
but that doesnt exactly apply to kernels, does it?
I dont need to sign my packages, do I? Im not sure if the compiler is failing at
the rpm signing or if its ignoring and finished.
I would ask in that other thread and maybe Reg will respond. I have no experience compiling kernels for Qubes.
yes, you can ignore this, though you can also just follow a gpg guide to create a signature for your own use. Not necessary, but why not? :)
Apparently you have to edit (or make) the file and add _gpg_dir, _gpg_name and _signature parameters. This is only half true.
The file that needs to be modified (and possibly bind-dir this file) is not located in ~/.rpmmacros as suggested.
The file is located here: /usr/bin/rpm/macros
and you do not need to edit anything except the _gpg_name parameter or it breaks.
Does anyone know what the different kernel rpms are for?
kernel.rpm
kernel-devel.rpm
kernel-qubes.rpm
I guess I would install the kernel-qubes.rpm. I would also guess that kernel.rpm
is without qubes things that I probably want. And devel is with lots of debugging
that I probably dont need?