From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 26 Aug 2021 14:26:31 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mJESl-0000XM-P3 for lore@lore.pengutronix.de; Thu, 26 Aug 2021 14:26:31 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mJESl-0005OU-HF; Thu, 26 Aug 2021 14:26:31 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJESE-0005NW-MG for ptxdist@pengutronix.de; Thu, 26 Aug 2021 14:26:02 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.thorsis.com (Postfix) with ESMTP id BE8828A for ; Thu, 26 Aug 2021 14:25:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.thorsis.com Received: from mail.thorsis.com ([127.0.0.1]) by localhost (mail.thorsis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yWpmOLs7wW5V for ; Thu, 26 Aug 2021 14:25:57 +0200 (CEST) Received: by mail.thorsis.com (Postfix, from userid 109) id 9E4A31BF5; Thu, 26 Aug 2021 14:25:57 +0200 (CEST) Date: Thu, 26 Aug 2021 14:25:49 +0200 From: Alexander Dahl To: ptxdist@pengutronix.de Message-ID: Mail-Followup-To: ptxdist@pengutronix.de, Guillermo Rodriguez Garcia References: <20210826084842.21421-1-ada@thorsis.com> Content-Disposition: inline In-Reply-To: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH 0/2] Add u-boot template X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Guillermo Rodriguez Garcia MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hello Guillermo, Am Thu, Aug 26, 2021 at 01:43:25PM +0200 schrieb Guillermo Rodriguez Garcia: > Hi Alexander, > = > El jueves, 26 de agosto de 2021, Alexander Dahl escribi= =F3: > = > > Hei hei, > > > > I crafted this in the last weeks for a DistroKit based generic BSP, > > which uses U-Boot for half a dozen boards. Maybe someone else finds it > > useful? > = > = > What does this do exactly, and how does it work? This adds a new package type 'u-boot' to the `ptxdist newpackage` command. That newpackage command uses templates to create the necessary rule files for a new package. You can write your own templates and add it to your BSP, too. So why a package type 'u-boot' if there's already an u-boot package? I had the idea when working with DistroKit [1] as a base layer for another generic BSP. You can build a BSP with a rootfs common to different SoCs of the armv7 family and use a common kernel as well. However bootloaders for different SoC families differ, so for such a generic BSP you need to build different bootloaders, and what you do then is duplicate those bootloaders packages in ptxdist with slighty changed names/variables making them unique. DistroKit for example has multiple barebox packages. Creating such packages by copy and paste and search and replace is cumbersome and error prone, so I thought why not doing the same thing pengutronix did with barebox for u-boot as well?! Greets Alex [1] https://www.pengutronix.de/de/software/distrokit.html _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@p= engutronix.de