From 7f2a98558baa5ddaee27b657a529e0449e9ac197 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 5 Nov 2013 15:26:33 -0200 Subject: [PATCH] imx-vpu (3.10.9-1.0.0): Fix build system to use OE build flags The build system needs to allow override of CC and AR variables so OE can pass proper flags for it; this includes a patch to allow it to happen and fix builds in O.S. Systems autobuilder. Change-Id: I974166244df3f743b21a00d705097602108449b2 Signed-off-by: Otavio Salvador --- ...uild-Allow-CC-and-AR-to-be-overriden.patch | 33 +++++++++++++++++++ .../imx-vpu/imx-vpu_3.10.9-1.0.0.bb | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu-3.10.9-1.0.0/build-Allow-CC-and-AR-to-be-overriden.patch diff --git a/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu-3.10.9-1.0.0/build-Allow-CC-and-AR-to-be-overriden.patch b/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu-3.10.9-1.0.0/build-Allow-CC-and-AR-to-be-overriden.patch new file mode 100644 index 00000000..1a014aa9 --- /dev/null +++ b/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu-3.10.9-1.0.0/build-Allow-CC-and-AR-to-be-overriden.patch @@ -0,0 +1,33 @@ +From 97cb0b711ce1a9d0dd3de51480d2e3a1399ce34c Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Tue, 5 Nov 2013 15:20:15 -0200 +Subject: [PATCH] build: Allow CC and AR to be overriden +Organization: O.S. Systems Software LTDA. + +This is need to allow proper building when using Yocto and multiple +machines sharing sstate-cache, otherwise the toolchain is going to +default to use the first build machine sysroot due lack of '-sysroot' +option. + +Upstream-Status: Pending + +Signed-off-by: Otavio Salvador +--- + vpu/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/vpu/Makefile b/vpu/Makefile +index b106631..dec2429 100644 +--- a/vpu/Makefile ++++ b/vpu/Makefile +@@ -1,5 +1,5 @@ +-CC=$(CROSS_COMPILE)gcc +-AR=$(CROSS_COMPILE)ar ++CC ?= $(CROSS_COMPILE)gcc ++AR ?= $(CROSS_COMPILE)ar + + # list of platforms which want this test case + INCLUDE_LIST:= IMX27ADS IMX51 IMX53 IMX6Q +-- +1.8.4.rc3 + diff --git a/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb b/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb index b288a6aa..c4705c76 100644 --- a/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb +++ b/meta-fsl-arm/recipes-bsp/imx-vpu/imx-vpu_3.10.9-1.0.0.bb @@ -3,6 +3,8 @@ require imx-vpu.inc PE = "1" +SRC_URI += "file://build-Allow-CC-and-AR-to-be-overriden.patch" + SRC_URI[md5sum] = "61331c9ed2d4c1b3aeab9c35fd034ac3" SRC_URI[sha256sum] = "5dd86a26c8d3013e0d78308b1ccd8815730818e465787f55013b492d2d3c7710" -- 2.40.1