From patchwork Fri Nov 7 22:24:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 40454 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C51E5218C0 for ; Fri, 7 Nov 2014 23:25:28 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf2432273wgh.7 for ; Fri, 07 Nov 2014 15:25:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=AR41ePZINhPlkmsMF8hs8Cqk0v0KDzYcfEJKwswePvU=; b=EozbXK63VcxfUs/z/7vSB8khrrQ8ndTzYKOS1PKtkao1szegKgTLHyH62C/zhApt7R yEsdXPka4mfXighZ9GK6WQk9NXHT+PIbyh8xhpNMj1bCkp1DCPHHqg1X+pq+KfhWffNH 16FX2asnlmbU3uWi5cOyZfDaPZ+KKTIjP2zKAHHdS8x2Gdiyw7msQCM/V3dGMRD2p1vK NZfUzLVwDsTzpkG0wZ24YZbUP7HWwgALWxkpyDnlsPB2RUYeLe76m+fEjV4CbT+nu3Jd sxn+QNQ8QW4exl1BmhBJXdAQRVF6FmIOHWvJ24sR3JNQcePrh/vSdxEikIyoQSjv2GKk C3Ow== X-Gm-Message-State: ALoCoQn9W7nDCQh1W+G366CyX9Bfa5MbhK/2fjlElSh61tOCa/Vy+SSUIK/i4z8jk1+DDPYGG834 X-Received: by 10.181.11.193 with SMTP id ek1mr1326765wid.0.1415402728019; Fri, 07 Nov 2014 15:25:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.5 with SMTP id f5ls260072lah.62.gmail; Fri, 07 Nov 2014 15:25:27 -0800 (PST) X-Received: by 10.112.254.162 with SMTP id aj2mr14191091lbd.70.1415402727591; Fri, 07 Nov 2014 15:25:27 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id lm12si3648412lac.44.2014.11.07.15.25.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Nov 2014 15:25:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id u10so3390318lbd.39 for ; Fri, 07 Nov 2014 15:25:27 -0800 (PST) X-Received: by 10.152.9.201 with SMTP id c9mr13841031lab.38.1415402727081; Fri, 07 Nov 2014 15:25:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp286916lbc; Fri, 7 Nov 2014 15:25:26 -0800 (PST) X-Received: by 10.66.147.227 with SMTP id tn3mr15499910pab.108.1415402725577; Fri, 07 Nov 2014 15:25:25 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id fh17si10343068pac.143.2014.11.07.15.25.24 for ; Fri, 07 Nov 2014 15:25:25 -0800 (PST) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1D9AD6B7CA; Fri, 7 Nov 2014 23:25:20 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by mail.openembedded.org (Postfix) with ESMTP id 6618065D3C for ; Fri, 7 Nov 2014 23:25:13 +0000 (UTC) Received: from gandalf.denix.org ([108.18.33.160]) by vms173019.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPSA id <0NEO003WSWXV4FI0@vms173019.mailsrvcs.net> for openembedded-core@lists.openembedded.org; Fri, 07 Nov 2014 16:25:08 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=LdSLMYbn c=1 sm=1 tr=0 a=A8KAnipHuDHkz1LiHkTZyg==:117 a=0gcC27t9AAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=sozttTNsAAAA:8 a=FH3FK6_BR53TtrhpQn4A:9 Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 4E4882008C; Fri, 7 Nov 2014 17:25:07 -0500 (EST) From: Denys Dmytriyenko To: openembedded-core@lists.openembedded.org Date: Fri, 07 Nov 2014 17:24:49 -0500 Message-id: <1415399089-27578-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.1.2 Cc: Denys Dmytriyenko Subject: [OE-core] [RFC][PATCH] u-boot-mkimage: allow building target version of the tool X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: denis@denix.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Denys Dmytriyenko u-boot doesn't really support building its tools for the target, as they are built with HOSTCC compiler, which is also used to compile fixdep utility that gets executed during the build. Since it might be beneficial to have a target version of mkimage, let's hack it to build fixdep in a separate step. Signed-off-by: Denys Dmytriyenko --- meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb index 7c05215..eabf680 100644 --- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb +++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2014.07.bb @@ -20,6 +20,8 @@ do_compile () { # Make sure the recompile is OK rm -f ${B}/tools/.depend + make HOSTCC="${BUILD_CC}" HOSTLD="${BUILD_LD}" HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTSTRIP=true dot-config=0 scripts_basic + sed 's/^tools-only: scripts_basic /tools-only: /' -i Makefile oe_runmake tools-only }