From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 210A0E01420 for ; Fri, 6 Sep 2013 05:39:27 -0700 (PDT) Received: by mail.free-electrons.com (Postfix, from userid 106) id 2A992916; Fri, 6 Sep 2013 14:39:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.3.2 Received: from [10.0.0.61] (unknown [80.245.18.66]) by mail.free-electrons.com (Postfix) with ESMTPSA id A8B1B821; Fri, 6 Sep 2013 14:39:26 +0200 (CEST) Message-ID: <5229CCFD.6010602@free-electrons.com> Date: Fri, 06 Sep 2013 14:39:25 +0200 From: Alexandre Belloni Organization: Free Electrons User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Daiane Angolini References: <1378416122-16832-1-git-send-email-alexandre.belloni@free-electrons.com> <1378416122-16832-2-git-send-email-alexandre.belloni@free-electrons.com> <5229C29B.7000702@freescale.com> In-Reply-To: <5229C29B.7000702@freescale.com> X-Enigmail-Version: 1.4.6 Cc: meta-freescale@yoctoproject.org, Maxime Ripard , jimwall@q.com, brian@crystalfontz.com Subject: Re: [meta-fsl-arm-extra][PATCH 1/8] linux-cfa: always use cfa10036 as MACHINE for the kernel link 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: Fri, 06 Sep 2013 12:39:29 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 06/09/2013 13:55, Daiane Angolini wrote: > On 09/05/2013 06:21 PM, Alexandre Belloni wrote: >> Barebox is configured to always look for a kernel image named >> zImage-cfa10036. >> >> Signed-off-by: Alexandre Belloni >> --- >> recipes-kernel/linux/linux-cfa_3.10.bb | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/recipes-kernel/linux/linux-cfa_3.10.bb >> b/recipes-kernel/linux/linux-cfa_3.10.bb >> index 2c2a723..bccca1c 100644 >> --- a/recipes-kernel/linux/linux-cfa_3.10.bb >> +++ b/recipes-kernel/linux/linux-cfa_3.10.bb >> @@ -26,7 +26,7 @@ pkg_postinst_kernel-devicetree_append () { >> } >> >> pkg_postinst_kernel-image_append () { >> - update-alternatives --install >> /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${MACHINE} >> ${KERNEL_IMAGETYPE}-${MACHINE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} >> ${KERNEL_PRIORITY} || true >> + update-alternatives --install >> /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-cfa10036 >> ${KERNEL_IMAGETYPE}-cfa10036 ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} >> ${KERNEL_PRIORITY} || true > > why do you need to explicitly use cfa10036 if your bbappend is > COMPATIBLE_MACHINE on "cfa10036"? > > will you use zImage-cfa10036 for other boards with a different name? > And when you include a that new machine will increase the > COMPATIBLE_MACHINE string? Actually, barebox is looking for a kernel named zImage-cfa10036 for all the cfa-10036 based boards (that means all the crystalfontz boards for now). Then, it is reading an eeprom to know what exactly is the board and will load the DT accordingly. I don't have to change COMPATIBLE_MACHINE because I'm adding cfa10036 to the MACHINEOVERRIDES for those cfa-10036 based boards. > >> } >> >> COMPATIBLE_MACHINE = "cfa10036" >> > > -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com