[OpenWrt-Devel] Module option in Makefile?

John Crispin blogic at openwrt.org
Fri Feb 13 02:09:39 EST 2015


Hi Matti,

On 12/02/2015 20:34, Matti Laakso wrote:
> Hi,
> 
> Is there a way to specify in a Makefile for a kernel module that the entry
> under /etc/modules.d should be created with a specific option? For example
> 
> mymodule option=1
>

that syntax is already supported by kmodloader


> I looked through ModuleAutoLoad in include/kernel.mk, but couldn't figure
> out a way...
> 
yes, missing feature inside the makefiles.
i would suggest adding a 3rd parameter to probe_module and a 4th
parameter to add_module and then extend the echo call inside the 2 for
loops to also print the value to the files in /etc/modules.d/




> Matti Laakso
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list