[PATCH] [2/2] modinfo: Add -k option to use a different kernel version
Jeff Pohlmeyer
yetanothergeek at gmail.com
Wed Feb 7 13:57:16 UTC 2024
(These two patches are somewhat related but do not depend on each other and
can be applied separately.)
Support -k to use another kernel version (30 bytes)
Normally modinfo will use version information from the currently running
kernel (similar to `uname -r`). This patch adds a compile-time configuration
option to enable the -k switch, which allows specifying a different kernel
version. This can be useful with the -F {depends,softdep} options to determine
module dependencies when building a new initramfs aftera kernel upgrade.
function old new delta
modinfo_main 380 430 +50
.rodata 103911 103913 +2
packed_usage 34776 34754 -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 52/-22) Total: 30 bytes
text data bss dec hex filename
1180482 7435 4984 1192901 1233c5 busybox_old
1180512 7435 4984 1192931 1233e3 busybox_unstripped
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modinfo-add-set-version-option.patch
Type: text/x-patch
Size: 3029 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20240207/71d431a0/attachment.bin>
More information about the busybox
mailing list