nixpkgs/pkgs/os-specific/linux/kernel
Alyssa Ross d57568fcad
linuxManualConfig: install GDB scripts
These are required to debug kernel modules.  Since we're now able to
do that, there's another reason besides BTF to enable DEBUG_INFO, so
I've done that for pre-BTF kernel modules as well here.

For GDB to get configured correctly, vmlinux-gdb.py has to be two
directories up from scripts/gdb, and vmlinux has to be next to
vmlinux-gdb.py.  The least invasive way to satisfy these constraints
is to make vmlinux a symlink, which GDB will resolve before looking
for vmlinux-gdb.py.

Tested both ways of getting the scripts into GDB that I know of:

gdb /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/vmlinux \
    -iex 'add-auto-load-safe-path /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/lib/modules/6.1.19/build/vmlinux-gdb.py' \
    -ex 'lx-version' \
    -ex 'q'
gdb /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/vmlinux \
    -ex 'source /nix/store/7n77ijlxkxr6d613h02lr707kvjx6j1k-linux-6.1.19-dev/lib/modules/6.1.19/build/vmlinux-gdb.py' \
    -ex 'lx-version' \
    -ex 'q'

Also tested that the strip changes don't result in meaningful output
size changes (there's some small variation due to BTF data not always
coming out the same size, which is unrelated), and built every kernel
I can on x86_64 to make sure I'm not relying on build system behaviour
specific to newer kernels.
2023-03-20 00:09:52 +00:00
..
cpu-cgroup-v2-patches linux_4_9: remove 2022-11-08 16:30:14 +01:00
hardened Merge remote-tracking branch 'origin/master' into staging-next 2023-03-10 18:46:21 +00:00
perf linuxPackages_latest.perf: add libtraceevent to build depends 2023-03-02 23:16:46 +00:00
bridge-stp-helper.patch
common-config.nix linuxManualConfig: install GDB scripts 2023-03-20 00:09:52 +00:00
export-rt-sched-migrate.patch
fix-em-ice-bonding.patch linux_{5_15,6_1}: revert patch to fix Equinix Metal bonded networking with ice driver 2023-02-16 10:06:24 -08:00
generate-config.pl
generic.nix nixos/doc: update custom kernel instructions 2022-12-22 01:42:15 +01:00
gpio-utils.nix
htmldocs.nix linux-doc: remove Python overrides 2023-02-25 14:11:58 -08:00
linux-4.14.nix linux: 4.14.308 -> 4.14.309 2023-03-13 14:38:24 +03:00
linux-4.19.nix linux: 4.19.276 -> 4.19.277 2023-03-13 14:38:31 +03:00
linux-5.4.nix linux: 5.4.235 -> 5.4.236 2023-03-13 14:38:48 +03:00
linux-5.10.nix linux: 5.10.173 -> 5.10.174 2023-03-13 14:38:37 +03:00
linux-5.15.nix linux: 5.15.101 -> 5.15.102 2023-03-13 14:38:42 +03:00
linux-6.1.nix linux: 6.1.18 -> 6.1.19 2023-03-13 14:38:54 +03:00
linux-6.2.nix linux: 6.2.5 -> 6.2.6 2023-03-13 14:41:24 +03:00
linux-hardkernel-4.14.nix linuxPackages_hardkernel_latest.usbip: pull upstream fix for -fno-common toolchains 2022-06-04 08:11:56 +01:00
linux-libre.nix linux_latest-libre: 19049 -> 19102 2023-03-11 21:09:00 +01:00
linux-rpi.nix linux_rpi{0,1,2,3,4}: 5.15.74 -> 5.15.84 2023-01-08 11:07:13 -08:00
linux-rt-5.4.nix linux-rt_5_4: 5.4.221-rt79 -> 5.4.230-rt80 2023-02-22 15:31:51 +01:00
linux-rt-5.10.nix linux-rt_5_10: 5.10.165-rt81 -> 5.10.168-rt83 2023-02-22 15:31:24 +01:00
linux-rt-5.15.nix linux-rt_5_15: 5.15.95-rt60 -> 5.15.96-rt61 2023-03-03 08:34:28 -06:00
linux-testing-bcachefs.nix linuxKernel.kernels.linux_testing_bcachefs: add pedrohlc to maintainers 2023-02-02 20:29:59 -03:00
linux-testing.nix linux_testing: 6.2-rc6 -> 6.3-rc1 2023-03-12 13:42:10 +00:00
manual-config.nix linuxManualConfig: install GDB scripts 2023-03-20 00:09:52 +00:00
modinst-arg-list-too-long.patch
mptcp-config.nix
patches.nix Revert "linux: fix brcmfmac driver" 2023-03-13 14:38:06 +03:00
randstruct-provide-seed-5.19.patch kernel: port randstruct patch to 5.19 2022-07-22 15:04:50 +00:00
randstruct-provide-seed.patch
request-key-helper-updated.patch
request-key-helper.patch
rtl8761b-support.patch
update-libre.sh
update-rt.sh
update-zen.py linux_lqx, linux_zen: avoid unnecessary prefetch 2022-07-06 13:52:16 +02:00
update.sh
xanmod-kernels.nix linux_xanmod_latest: 6.2.2 -> 6.2.3 2023-03-12 13:44:24 +01:00
zen-kernels.nix linuxKernel.kernels.linux_zen: 6.2.5-zen2 -> 6.2.6-zen1 2023-03-13 14:18:25 -03:00