Return-Path: Received: from mail-gh0-f176.google.com (mail-gh0-f176.google.com [209.85.160.176]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CFAD8E011AF for ; Tue, 27 Nov 2012 09:19:38 -0800 (PST) Received: by mail-gh0-f176.google.com with SMTP id g10so1280042ghb.35 for ; Tue, 27 Nov 2012 09:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=8Ey3ovkryyqpCIbt9ime0ijhyuR6pEsj5kq3YVSslKs=; b=rDUGuWxK0BlmlarTAYx9ZRZJCWp7MQ1f0O05vqnxpJLYbIenu8zFTvqBO8YEINLuuy z4AU2pJZH3PyqNeun5oT6HyVY/d4wyiZUxsl5WMjOnlT/7PG3tilJ9eKYLp5mPgArqvN t2Zm5m9OYsrA0CPgzh+nK0m8tl/cpG5LlkpJIWvlh2xnWxyHzHLl0Rg8vnr2EK8PGB8m FGjPdvWCMBOLAJ/oFsjSYMtWEmu4+83uXdrPZgdgd0DHAIbiZGQUjUAYBNOay0jmXRVN HucTUTLkgWf1+oFstMNUhNguGEYwAO/xMG0m2KzVG/WBtuAE5H0EI+jFR88f4vF5BJWq CCOQ== Received: by 10.236.89.107 with SMTP id b71mr15523168yhf.86.1354036778405; Tue, 27 Nov 2012 09:19:38 -0800 (PST) Received: from nano.lab.ossystems.com.br.lab.ossystems.com.br ([177.100.163.15]) by mx.google.com with ESMTPS id f15sm18904833yhi.11.2012.11.27.09.19.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2012 09:19:37 -0800 (PST) Sender: Otavio Salvador From: Otavio Salvador To: meta-freescale@yoctoproject.org Date: Tue, 27 Nov 2012 15:21:45 -0200 Message-Id: <1354036905-24789-5-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1354036905-24789-1-git-send-email-otavio@ossystems.com.br> References: <1354036905-24789-1-git-send-email-otavio@ossystems.com.br> Cc: Otavio Salvador Subject: [meta-fsl-arm][PATCH 5/5] imx-lib: Fix build system to allow override of CC and AR commands 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: Tue, 27 Nov 2012 17:19:39 -0000 The build system should use CC and AR from environment if those are set; this is need to allow cross building to work as it might need to set sysroot options for gcc calls. Change-Id: I8296709c59f0054eca830a06c3853893b88a5789 Signed-off-by: Otavio Salvador --- recipes-multimedia/imx-lib/imx-lib.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes-multimedia/imx-lib/imx-lib.inc b/recipes-multimedia/imx-lib/imx-lib.inc index 9dae521..7847bbe 100644 --- a/recipes-multimedia/imx-lib/imx-lib.inc +++ b/recipes-multimedia/imx-lib/imx-lib.inc @@ -5,7 +5,7 @@ LICENSE = "LGPLv2.1" SECTION = "multimedia" DEPENDS = "virtual/kernel" -INC_PR = "r3" +INC_PR = "r4" LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" @@ -17,6 +17,11 @@ PLATFORM_mx5 = "IMX51" PARALLEL_MAKE="-j 1" EXTRA_OEMAKE = "" +do_configure_append () { + # FIXME: The build system does not allow CC and AR to be overriden + find ${S} -name Makefile | xargs sed -i 's,^\(CC\|AR\)=,\1 ?=,g' +} + do_compile () { INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \ -- 1.7.10.4