[meta-freescale] [meta-fsl-arm][PATCH 5/5] imx-lib: Fix build system to allow override of CC and AR commands

Otavio Salvador otavio at ossystems.com.br
Tue Nov 27 09:21:45 PST 2012


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 <otavio at ossystems.com.br>
---
 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




More information about the meta-freescale mailing list