Skip to contentSkip to conversation

imx-gpu-sdk: Don't change the build directory during install task

PATCH New Tom Hochstein 1 participant 1 message Jan 17, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx-gpu-sdk: Don't change the build directory during install task

The build script makefile target 'install' installs directly in the build folder, so it must be executed from the compile task. This manifested itself after a repo sync with compile time warnings and an install task error.

---
 recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_2.3.2.bb +2 -9
index 6b80baa..e1ec357 100644
@@ -34,21 +34,14 @@ do_compile () {
     export FSL_PLATFORM_NAME=Yocto
     export ROOTFS=${STAGING_DIR_HOST}
     if [ "${IMXGPU}" = "3d" ]; then
-        ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+        ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
     else
-        ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND}
+        ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
     fi
 }
 
 do_install () {
-    export FSL_GRAPHICS_SDK=${S}
-    export FSL_PLATFORM_NAME=Yocto
     install -d "${D}/opt/${PN}"
-    if [ "${IMXGPU}" = "3d" ]; then
-        ./build.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
-    else
-        ./build_OpenVG.sh -f GNUmakefile_Yocto EGLBackend=${BACKEND} install
-    fi
     cp -r bin/* "${D}/opt/${PN}"
 
     rm -rf ${D}/opt/${PN}/GLES2/S05_PrecompiledShader
Signature · 1 line
1.9.1