[LEDE-DEV] kernel: remove switch driver kmod packages

Felix Fietkau nbd at nbd.name
Thu Sep 1 09:00:45 PDT 2016


On 2016-09-01 17:00, Tim Harvey wrote:
> Felix,
> 
> In a5c32a1f1996f4f75504c4a9abd1c99eaa598df1 you removed
> kernel/linux/modules/dsa.mk claiming that targets needing switch
> drivers should select them in their kernel configs thus preventing
> bloat creeping into targets that don't need switchdev/dsa.
Right.

> What that implies is that every target board of a given target arch
> gets bloated. For example, for the imx6 targets there are wandboard
> and ventana. Ventana can benefit from switchdev/dsa (if the user is
> using a GW16083 expansion card I might add - the switch is 'not' on
> the baseboards) but for Wandboard including switchdev/dsa in the
> kernel config is bloat.
In my opinion, nobody really cares about a tiny bit of kernel bloat for
the Wandboard. That device is not exactly space constrained.

> Is there some way that I'm not aware of to per-target kernel config or
> do you have any thoughts to support such a thing?
Since we build all devices of a subtarget with the same kernel image, a
per-device kernel config is not going to happen.

I think that for all the targets where using the GW16083 makes sense,
the available storage space is big enough to justify unconditionally
enabling the drivers.

- Felix



More information about the Lede-dev mailing list