It contains the + * wrapped and compressed patchset. + * + * You should have received a copy of the GNU General Public License + * along with this program if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 Subject: Save the current patchset in the kernel
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |