From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id ADF1BE00AAB; Mon, 25 Jan 2016 07:18:52 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.analogue-micro.com (mail.analogue-micro.com [217.144.149.242]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EA065E008F5 for ; Mon, 25 Jan 2016 07:18:47 -0800 (PST) Received: by mail.analogue-micro.com (Postfix, from userid 999) id E10B268A01A; Mon, 25 Jan 2016 15:18:46 +0000 (GMT) Received: from zeus.mlbassoc.com (unknown [10.8.0.2]) by mail.analogue-micro.com (Postfix) with ESMTP id D56E068A019; Mon, 25 Jan 2016 15:18:45 +0000 (GMT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by zeus.mlbassoc.com (Postfix) with ESMTP id 9B0456740CD9; Mon, 25 Jan 2016 16:18:45 +0100 (CET) To: Max Krummenacher References: <56A62CE0.1040003@mlbassoc.com> From: Gary Thomas Message-ID: <56A63CD5.70002@mlbassoc.com> Date: Mon, 25 Jan 2016 16:18:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: [meta-fsl-arm] Multiple U-Boot configurations X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 15:18:52 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 01/25/2016 03:42 PM, Max Krummenacher wrote: > Hi Gary > > > 2016-01-25 15:10 GMT+01:00 Gary Thomas : >> I have a board which can be deployed with either i.MX6Q or i.MX6solo >> I have U-Boot configurations for both. >> >> I'm trying to use a single build (bitbake u-boot-fslc) to create >> both U-Boot images, using >> UBOOT_MACHINE ?= "teton_p8303_config teton_p8303s_config" >> >> Sadly, it's failing: >> | Configuring for teton_p8303 - Board: teton_p8303, Options: >> IMX_CONFIG=board/amltd/teton_p8303/teton_p8303q.cfg,MX6Q,DDR_MB=2048 >> | Configuring for teton_p8303s - Board: teton_p8303, Options: >> IMX_CONFIG=board/amltd/teton_p8303/teton_p8303.cfg,MX6S,DDR_MB=1024 >> | ln: failed to create symbolic link 'asm/arch': File exists >> | Makefile:468: recipe for target 'teton_p8303_config' failed >> >> Obviously, I don't understand the mechanism and I don't see >> a working example in either meta-fsl-arm or meta-fsl-arm-extra >> >> Any pointers would be great >> > > Have you tried something like this: > https://github.com/Freescale/meta-fsl-arm-extra/blob/master/conf/machine/apalis-imx6.conf#L24 > > So in your .conf: > > UBOOT_CONFIG ??= "s" > UBOOT_CONFIG[q] = "teton_p8303_config" > UBOOT_CONFIG[s] = "teton_p8303s_config" > > Which I expect to build a u-boot.imx, u-boot.imx-s What if I want to build u-boot.imx-q and u-boot.imx-s? I want to build all possible versions and decide only when I install which to use. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------