From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix bootloader selection - wip patch Date: Tue, 02 Aug 2016 11:49:45 +0200 Message-ID: <87eg67zeiu.fsf@gnu.org> References: <20160721223501.3a989d55@scratchpost.org> <877fc815wg.fsf@gnu.org> <20160727113248.2ee9087c@scratchpost.org> <20160727222924.07209026@scratchpost.org> <874m7aj601.fsf@gnu.org> <20160729102155.26d0083d@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUWLH-0000YQ-VV for guix-devel@gnu.org; Tue, 02 Aug 2016 05:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUWLB-0007pW-3f for guix-devel@gnu.org; Tue, 02 Aug 2016 05:50:30 -0400 In-Reply-To: <20160729102155.26d0083d@scratchpost.org> (Danny Milosavljevic's message of "Fri, 29 Jul 2016 10:21:55 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel Danny Milosavljevic skribis: >> Really, installing U-Boot is as simple as this? If it is, that=E2=80=99s >> perfect. :-) > > Nope, it's just a placeholder :) > > But ideally U-Boot would provide something like that. > > I'm looking into writing u-boot-install.c and maybe contributing it to U-= Boot - let's see how bad it is. I think we should adapt to whatever U-Boot provides for installation. (I installed it years ago on a plug computer but forgot all the details.) >> I see three separate things here: >>=20 >> 1. Replacing =E2=80=9Cgrub=E2=80=9D by =E2=80=9Cbootloader=E2=80=9D in= the API (cosmetic change); >>=20 >> 2. Adding the build-side code to install U-Boot; >>=20 >> 3. Adding the host-side code to handle and do >> the right thing. >>=20 >> To facilitate review, could you separate these three things? > > As far as they are in different files, yes. Not everything is in separate files I think, but =E2=80=98git rebase -i=E2= =80=99 or similar should facilitate the operation. > Which part is the build-side, which part is the host-side? The =E2=80=9Cbuild side=E2=80=9D is the (gnu build =E2=80=A6) and (guix bui= ld =E2=80=A6) modules: they contain code that is executed as part of build processes, or at run time. The =E2=80=9Chost side=E2=80=9D is the rest, which contains package declara= tions, OS declarations, service declarations, and code that drives the compilation of all that. (See =E2=80=9CG-Expressions=E2=80=9D in the manual for a discussion of this= .) Thanks, Ludo=E2=80=99.