[LEDE-DEV] [PATCH RFC] mac80211: Don't check for platform files with external kernel trees

Hauke Mehrtens hauke at hauke-m.de
Thu Jan 11 11:42:09 PST 2018


On 01/08/2018 06:57 AM, Felix Fietkau wrote:
> 
> 
>> On 8. Jan 2018, at 10:31, Florian Fainelli <f.fainelli at gmail.com> wrote:
>>
>> When building with an external kernel tree, do not check the different
>> platform files since this is almost guaranteed they are going to differ.
>>
>> Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
> But that also means it’s almost always going to break if platform data is involved on the external kernel tree.
> 
> - Felix

If these files are just getting removed from backports, then it will use
the kernel versions, this way the structures used by kernel and
backports will be the same and it we will run into a compile error in
case some member of a structure is accessed which is not in the kernel.

This will allow to compile all drivers except ath5k, ath9k and rt2x00
with external kernels and for these drivers it will work when the
appropriate changes to the kernel were added before. This will be
similar to how we handle bcma and ssb.

Hauke



More information about the Lede-dev mailing list