From faeeea9f6e8a9cdaaae4777feebfeda4e75c8f8b Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 27 Nov 2012 14:26:28 -0200 Subject: 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 --- recipes-multimedia/imx-lib/imx-lib.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'recipes-multimedia/imx-lib') 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 \ -- cgit v1.2.3-54-g00ecf