diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-11-27 14:26:28 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-11-27 16:48:11 -0200 |
commit | faeeea9f6e8a9cdaaae4777feebfeda4e75c8f8b (patch) | |
tree | 572c5e7448a09082e921f8de7c47efd3bda7ca15 | |
parent | d328f75dd05e25de37fcda049030910b364007a7 (diff) | |
download | meta-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.inc | 7 |
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" | |||
5 | SECTION = "multimedia" | 5 | SECTION = "multimedia" |
6 | DEPENDS = "virtual/kernel" | 6 | DEPENDS = "virtual/kernel" |
7 | 7 | ||
8 | INC_PR = "r3" | 8 | INC_PR = "r4" |
9 | 9 | ||
10 | LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" | 10 | LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" |
11 | 11 | ||
@@ -17,6 +17,11 @@ PLATFORM_mx5 = "IMX51" | |||
17 | PARALLEL_MAKE="-j 1" | 17 | PARALLEL_MAKE="-j 1" |
18 | EXTRA_OEMAKE = "" | 18 | EXTRA_OEMAKE = "" |
19 | 19 | ||
20 | do_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 | |||
20 | do_compile () { | 25 | do_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 \ |