From: Wolfgang Denk Date: Sat, 25 Feb 2012 00:37:20 +0100 Subject: [U-Boot] exports.h and the GPL In-Reply-To: <201202242048.51624.michael@walle.cc> References: <201202241910.36058.michael@walle.cc> <201202241417.20408.vapier@gentoo.org> <201202242048.51624.michael@walle.cc> Message-ID: <20120224233720.A2383B6F26@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Michael Walle, In message <201202242048.51624.michael@walle.cc> you wrote: > > > which is why the exported funcs are "high level" and not ones that get into > > low level stuff that would necessitate passing structs. the other problem > > with struct passing is that they tend to break the ABI layer. > > -mike > > Then i guess there is no way to support a board which has only evil closed > source drivers for its networking card. That is, i can't export eth_register() > to register my ops defined in the blob without violating the GPL. As Mike already explained, this is correct. And it is intentional. > Even if the headers for the "struct eth_device" were public domain, this > mechanism would be sth like 'linking' against the uboot, wouldn't it? Yes, indeed. You are not supposed to mix closed-source drivers with GPL code. The best approach is probably to re-write the drivers under GPL. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The price of curiosity is a terminal experience. - Terry Pratchett, _The Dark Side of the Sun_