From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sun, 4 Sep 2016 10:53:49 +0200 Subject: [U-Boot] Building u-boot.imx and SPL simultaneously In-Reply-To: References: <226b38f1-0f0f-a997-2272-5bb13d0856bc@jikos.cz> <24f0546a-7a65-45ac-5128-667ff6fb87fa@jikos.cz> <11f4e24d-17c2-69a6-ba59-078e3bbfe09f@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Otavio, On 03/09/2016 22:27, Otavio Salvador wrote: > On Sat, Sep 3, 2016 at 6:40 AM, Stefano Babic wrote: >> On 03/09/2016 01:15, Petr Kulhavy wrote: >>> You are saying that in order to cover my use case(s) I need two >>> defconfigs. Well, ok... >>> But how do I integrate this into Buildroot? For the sake of >>> maintainability, simplification, reducing chance for an error during >>> build I want to have one Buildroot defconfig, run one build command and >>> get all the necessary images. >>> How do I do that with two U-boot defconfigs? >> >> I am noit a Buildroot expert, someone else can better point you in the >> right direction. I will expect that you need a second target. If I had >> to do thuis in Yoct, I will tend to add a new recipe to build .imx variant. > > On OpenEmbedded-based systems, as is the case of Yocto Project, we > introduced the UBOOT_CONFIG mechanism for this. So for example in: > > https://github.com/Freescale/meta-fsl-arm/blob/master/conf/machine/imx6slevk.conf#L15 > > The UBOOT_CONFIG is changed, in local.conf for a machine, to: > > UBOOT_CONFIG = "spinor sd" > > Both as build. > Thanks for the hint - this is an elegant solution for Yocto. Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================