From 08998a863cb7a17318ef5834fce3d27cf0f4e94b Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 27 Nov 2012 14:26:28 -0200 Subject: [PATCH] imx-lib: Fix build system to allow override of CC and AR commands 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 --- meta-fsl-arm/recipes-multimedia/imx-lib/imx-lib.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-fsl-arm/recipes-multimedia/imx-lib/imx-lib.inc b/meta-fsl-arm/recipes-multimedia/imx-lib/imx-lib.inc index 9dae5214..7847bbee 100644 --- a/meta-fsl-arm/recipes-multimedia/imx-lib/imx-lib.inc +++ b/meta-fsl-arm/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 \ -- 2.40.1