From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756073AbcETPJK (ORCPT ); Fri, 20 May 2016 11:09:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:36564 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756051AbcETPJH (ORCPT ); Fri, 20 May 2016 11:09:07 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Grant Edwards Subject: Re: Sharing code between Linux and bootloader (U-boot) ? Date: Fri, 20 May 2016 15:08:56 +0000 (UTC) Message-ID: References: <573F1F07.6040202@laposte.net> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net User-Agent: slrn/1.0.2 (Linux) Cc: u-boot@lists.denx.de, linux-arm-kernel@lists.infradead.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-05-20, Sebastian Frias 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