![]() See the GNU General Public License for more + * details. ![]() + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY without even the implied warranty of + * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or + * NON INFRINGEMENT. Credits go to + * - Khalid Aziz + * - Randy Dunlap + * - Al Stone + * - Hewlett-Packard Company + * + * This program is free software you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation either version 2 of the License, or (at + * your option) any later version. Index: linux-5.6.17-rt10/kernel/patchset.c = - /dev/null +++ linux-5.6.17-rt10/kernel/patchset.c -0,0 +1,100 +/* + * kernel/patchset.c + * Save the current patchset in the kernel + * + * Copyright (C) 2013 Carsten Emde + * + * Based on kernel/configs.c. Tristate "Enable kernel headers through /sys/kernel/" + + Select this if you are using an official mainline kernel with + off-tree patches (quilt queue) and you want to enable your users to + rebuilt a functionally identical kernel without requiring any more + information. f1 baseversion` + urldir= $major.x + dir=linux-`cat baseversion` + rm -f baseversion + archive=$ + wget $urldir/$archive + tar Jxf $archive + cd $dir + tar zxf /proc/ + quilt push -a + zcat /proc/config.gz >.config + +config IKPATCHSET_PROC + bool "Enable access to through /proc/" + depends on IKPATCHSET & PROC_FS + select IKCONFIG_PROC + help + This option enables access to the patchset used when building the + current kernel through /proc/. Thus, the following command sequence will create a + patched kernel source tree from which an identical kernel can be + rebuilt (assumes that IKPATCHSET_PROC is also configured): + tar zxf /proc/ baseversion + major=`cut -d. The vanilla kernel version on which the + patchset is based is available in the file "baseversion" of the + archive. It is also + possible to extract the patchset from a running kernel via + /proc/. The patchset can be extracted from a kernel image + file using the script scripts/extract-ikpatchset. +config IKPATCHSET + tristate "Kernel patchset support" + depends on PROC_FS + select IKCONFIG + select BUILD_BIN2C + help + This option enables the complete patchset, if any, to be saved + in the kernel. This option enables access to the kernel configuration file Is much better than making available nothing. Tar zxf /proc/ baseversionīTW: Making the kernel sources available through this mechanism does notĮntirely fulfill the disclosure obligations of the GPL, but it certainly Reproduce the source tree that was used for a particular kernel, use the This patch now provides a mechanism to store the current patchset in theīinary kernel in a very similar way as it is done with the config file. (If a patchset cannot be obtained with reasonableĮffort, the board vendor, of course, is in breach of the Linux kernel Large patchset that often is difficult to obtain, the saved config file In modern times, however, when myriads of (mostly ARM based) computerīoards are inundating the market every year most of which require a This made it possible to reproduce a kernel from Them, it was an excellent idea to save the current kernel configuration Released per year and mainline kernel support was available for most of In the good old days when only a small number of computer boards were ![]() Vermagic: 5.10.Subject: Save the current patchset in the kernel $ sudo modinfo dahdi_dummy filename: /lib/modules/5.10.0-8-amd64/updates/dkms/dahdi_dummy.ko Installing to /lib/modules/5.10.0-8-amd64/updates/dkms/ No original module exists within this kernel Loading new dahdi-~dfsg-7.4 DKMS files.īuilding initial module for 5.10.0-8-amd64 ĭkms: running auto installation service for kernel 5.10.0-8-amd64. New modules will be automatically signed. ![]() Already built modules need to be rebuilt, to be signed by the newly created and enrolled certificate. After this has been done, the sign_tool line in /etc/dkms/nf must be uncommented. This will require a restart and actively importing the certificate using the EFI MOK Manager interface. First, create a private key /root/dkms.key and a matching certificate /root/r with openssl, and enroll it with the mokutil -import /root/r command (please read /usr/share/doc/dkms/README.md.gz for details). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |