Ok, let me put it, this way:
From
/usr/src
I want to pull, in variables:
Code:
# List of all valid 'device' entries that can go in KERNCONF
devices=''
# List of all valid 'option' entries, that can go in KERNCONF
options=''
# List of all valid 'modules' that can go in make's option MODULES_OVERRIDE, WITHOUT_MODULES
modules=''
Additionally, what drives me nuts is naming inconsistency ..., i.e;
The only way to REALLY get, all possible KERNCONF's 'device' entries, is to get all modules...,
BUT, firmware for my 'ral' is in modules named 'rt2561s' and in 'device' entry 'rt2561sfw'?!
And if I want to pull all ral's firmwares I just add 'device ralfw' - retrieved from modules.
However, there is also issue regarding devices/options that can exist ONLY as a modules (linux), for which I need additional flagging ...
And to also mention naming scheme in KERNCONF:
KERNCONF's 'options' AND 'devices' BOTH exist as MODULES
Modules are ALL lovercase, BUT
devices are lovercase, while options are uppercase ('options CD9660' is in modules selected as 'cd9660')
ALSO, i.e: 'bwn' is refered to 'if_bwn.ko' when exist as module and 'device bwn' when in KERNCONF or just 'bwn', when in make's option MODULES_OVERRIDE, WITHOUT_MODULES
BUT, on the other hand, 'device ndis', must be selected as 'if_ndis' in MODULES_OVERRIDE, WITHOUT_MODULES
This is a total mess to get a clean coding logic here.
Can anyone show me (or give me an '/bin/sh' code)