Fix cmake build with sdk inside a script 79/15179/2
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Tue, 10 Jul 2018 12:05:49 +0000 (14:05 +0200)
committerStéphane Desneux <stephane.desneux@iot.bzh>
Wed, 11 Jul 2018 08:45:36 +0000 (08:45 +0000)
commit2b589e939424eb2e235a07ef5a0a00c505b24f6d
tree655e7e4751ff9e48abd131f4abffe0f44c346309
parent34ea320758041bd7104b9d19c1658a71d59516d1
Fix cmake build with sdk inside a script

For the sdk build the cmake config file is source:
sysroots/x86_64-aglsdk-linux/environment-setup.d/cmake.sh

But use "alias" :
alias cmake="cmake ..."

Unfortunatly alias is not expand inside a script.

using an environnement variable for "CMAKE_TOOLCHAIN_FILE" solve the
issue.

This Fix is a port of the yocto FIX 139551:
https://patchwork.openembedded.org/patch/139551/
Unfortunatly this patch is not include in yocto upstream

Bug-AGL: SPEC-1530

Change-Id: Ica80f66cbe976a6ccb1acb7d96b4c4ce4252d4f3
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend [new file with mode: 0644]
meta-agl-profile-core/recipes-devtools/cmake/files/0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch [new file with mode: 0644]
meta-agl-profile-core/recipes-devtools/cmake/files/environment.d-cmake-agl.sh [new file with mode: 0644]