kernel-config: Do not include kernel version in every generated file

This is stupid and it will cause meaningless diffs in version control
(like this commit does :( ).

Remove the kernel version from the generated XML files.  Add
kernel.version file into git to track the kernel version.
This commit is contained in:
Xi Ruoyao 2023-07-30 18:05:31 +08:00
parent d67d543479
commit 4e37f01a45
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
23 changed files with 22 additions and 22 deletions

View File

@ -1,3 +1,2 @@
__pycache__
s-kernel-version
kernel.version

View File

@ -245,6 +245,6 @@ kver = kernel_version.kernel_version(path)
print('''<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">''')
print('<!-- Automatically generated by kernel-config.py for Linux', kver)
print('<!-- Automatically generated by kernel-config.py')
print(' DO NOT EDIT! -->')
print('<screen><literal>' + '\n'.join(buf) + '</literal></screen>')

View File

@ -0,0 +1 @@
6.4.7

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; Btrfs filesystem support [BTRFS_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; Reiserfs support (deprecated) [REISERFS_FS]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
DOS/FAT/EXFAT/NT Filesystems ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; FUSE (Filesystem in Userspace) support [FUSE_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; FUSE (Filesystem in Userspace) support [FUSE_FS]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; JFS filesystem support [JFS_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
&lt;*/M&gt; RAM block device support [BLK_DEV_RAM]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
[*] Multiple devices driver support (RAID and LVM) ---&gt; [MD]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; FUSE (Filesystem in Userspace) support [FUSE_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
DOS/FAT/EXFAT/NT Filesystems ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
SCSI device support ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; Reiserfs support (deprecated) [REISERFS_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Processor type and features ---&gt;
[*] EFI runtime service support [EFI]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>File systems ---&gt;
&lt;*/M&gt; XFS filesystem support [XFS_FS]</literal></screen>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
Input device support ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
Input device support ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
Graphics support ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
[*] HID bus support ---&gt; [HID_SUPPORT]

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
Graphics support ---&gt;

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!-- Automatically generated by kernel-config.py for Linux 6.4.7
<!-- Automatically generated by kernel-config.py
DO NOT EDIT! -->
<screen><literal>Device Drivers ---&gt;
Firmware Drivers ---&gt;