diff options
author | 2018-07-10 14:05:49 +0200 | |
---|---|---|
committer | 2018-07-11 08:45:36 +0000 | |
commit | 2b589e939424eb2e235a07ef5a0a00c505b24f6d (patch) | |
tree | 655e7e4751ff9e48abd131f4abffe0f44c346309 /meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend | |
parent | 34ea320758041bd7104b9d19c1658a71d59516d1 (diff) |
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>
Diffstat (limited to 'meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend')
-rw-r--r-- | meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend b/meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend new file mode 100644 index 000000000..22f8163fe --- /dev/null +++ b/meta-agl-profile-core/recipes-devtools/cmake/cmake_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/files" + +SRC_URI_append_class-nativesdk = " \ + file://0001-CMakeDetermineSystem-use-oe-environment-vars-to-load.patch \ + file://environment.d-cmake-agl.sh \ +" + +do_install_append_class-nativesdk() { + install -m 644 ${WORKDIR}/environment.d-cmake-agl.sh ${D}${SDKPATHNATIVE}/environment-setup.d/cmake-agl.sh +} |