kmodloader: add modinfo support for builtin modules
authorTony Ambardar <itugrok@yahoo.com>
Thu, 14 Dec 2023 07:18:53 +0000 (23:18 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Tue, 16 Jan 2024 01:54:35 +0000 (17:54 -0800)
commitba3908351232d4166cfc89c23c5c629e4092169d
treed68445feaa95418b80010d738ebe205782119073
parent4ffc29e4041ca1b5d6b0f007859394c23fba034e
kmodloader: add modinfo support for builtin modules

Enable parsing of 'modules.builtin.modinfo' for better handling of builtin
modules, including support for aliases and showing basic builtin module
details, e.g.

  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>
kmodloader.c