summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-11-27 14:26:28 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2012-11-27 16:48:11 -0200
commitfaeeea9f6e8a9cdaaae4777feebfeda4e75c8f8b (patch)
tree572c5e7448a09082e921f8de7c47efd3bda7ca15
parentd328f75dd05e25de37fcda049030910b364007a7 (diff)
downloadmeta-fsl-arm-faeeea9f6e8a9cdaaae4777feebfeda4e75c8f8b.tar.gz
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 <otavio@ossystems.com.br>
-rw-r--r--recipes-multimedia/imx-lib/imx-lib.inc7
1 files changed, 6 insertions, 1 deletions
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"
5SECTION = "multimedia" 5SECTION = "multimedia"
6DEPENDS = "virtual/kernel" 6DEPENDS = "virtual/kernel"
7 7
8INC_PR = "r3" 8INC_PR = "r4"
9 9
10LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" 10LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e"
11 11
@@ -17,6 +17,11 @@ PLATFORM_mx5 = "IMX51"
17PARALLEL_MAKE="-j 1" 17PARALLEL_MAKE="-j 1"
18EXTRA_OEMAKE = "" 18EXTRA_OEMAKE = ""
19 19
20do_configure_append () {
21 # FIXME: The build system does not allow CC and AR to be overriden
22 find ${S} -name Makefile | xargs sed -i 's,^\(CC\|AR\)=,\1 ?=,g'
23}
24
20do_compile () { 25do_compile () {
21 INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ 26 INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
22 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \ 27 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \