kernel: include modinfo for built-in modules
authorTony Ambardar <itugrok@yahoo.com>
Tue, 5 Dec 2023 09:09:46 +0000 (01:09 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Sat, 6 Jan 2024 16:34:18 +0000 (08:34 -0800)
commite1d8e576147d813398c6797ca866f9d8a41a350e
tree3a62247cd006a27a4dc51b62e7c53bb7f4104c67
parent29f6da43403c5131d0035de0bfc4107eee17953b
kernel: include modinfo for built-in modules

Add modules.builtin.modinfo to the kernel package, to support presence
testing using module aliases and printing module details with 'modinfo'.

With related kmodloader changes this adds ~2 KB to compressed image sizes.

     root@OpenWrt:/# modinfo unix
     name:           unix
     filename:       (builtin)
     alias:          net-pf-1
     license:        GPL

     root@OpenWrt:/# modprobe net-pf-1 && echo SUCCESS || echo FAIL
     SUCCESS

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
package/kernel/linux/Makefile