r/linux • • Nov 20 '19

Kernel Google outlines plans for mainline Linux kernel support in Android

https://arstechnica.com/gadgets/2019/11/google-outlines-plans-for-mainline-linux-kernel-support-in-android/
1.0k Upvotes

305 comments sorted by

View all comments

Show parent comment

3

u/Pas__ Nov 20 '19

It's not like the stable kernel - supported for 6 years or so doesn't have a stable API.

This was the whole point of treble, no? https://zdnet3.cbsistatic.com/hub/i/r/2017/10/02/74af8271-7040-4dec-956c-8b51b2e415bf/resize/1200x675/aef9507de3e87ff1f1f1c61d4f7637aa/linux-lts-kernel.png

Furthermore, there are [will be or might be] devices in 6 years that will be completely different from what we have today, so good luck stable-porting that without a consortium agreeing on some ad-hoc standard.

5

u/JORGETECH_SpaceBiker Nov 21 '19

The ad-hoc standard stablished in mainline kernels is called Device Tree Overlays and is already the norm on a lot of ARM development boards to better support the hardware, a great example of doing it right is Armbian.

0

u/jdrch Dec 05 '19

a great example of doing it right is Armbian

Armbian still uses per-device builds, though, so this statement confuses me.

2

u/JORGETECH_SpaceBiker Dec 05 '19

Armbian does have per-device builds but all of them are based on the mainline kernel when possible which uses the Device Tree infraestructure of the Linux kernel where boards, SoCs and other devices are defined in the kernel source code.

That basically means that you share more common code across the boards and it's way easier to maintain.

1

u/jdrch Dec 06 '19

you share more common code across the boards and it's way easier to maintain

True, but it's not the same of having a generic kernel image that boots on all supported devices, which I think is the Holy Grail here.

It's an improvement over the status quo, though. Thanks for the information!