Messages in this thread | | | From | Grant Edwards <> | Subject | Re: Sharing code between Linux and bootloader (U-boot) ? | Date | Fri, 20 May 2016 15:08:56 +0000 (UTC) |
| |
On 2016-05-20, Sebastian Frias <sf84@laposte.net> wrote:
> Some bootloaders (like U-boot) support several HW devices: serial, > network, NAND, USB, etc. most of which are also supported by Linux. > > So the question is: is code shared?
A little bit -- sort of. I've seen chunks of code that have been copied from Linux to U-Boot, and chunks of code in Linux and U-Boot that appear to have come from the same place at some silicon vendor or other. And there are bits of code I've written that ended up in both places.
But Linux and U-Boot don't share actual files, and any changes to the "common" code has to be done twice.
-- Grant Edwards grant.b.edwards Yow! Are we THERE yet? at gmail.com
| |