From af42f1243f27f8f3030efc14141f66c43d34908e Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Mon, 26 Jun 2017 17:25:13 +0300 Subject: [PATCH] mali450-userland: use hardlinks instead of symlinks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rpm doesn't set the correct arch for symlinks: https://github.com/96boards/meta-96boards/issues/156 Signed-off-by: Andrey Konovalov Signed-off-by: Daniel Díaz --- .../mali450-userland_r7p0_01rel0.bb | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/recipes-graphics/mali-userland/mali450-userland_r7p0_01rel0.bb b/recipes-graphics/mali-userland/mali450-userland_r7p0_01rel0.bb index 4b7cafe9..41844cc3 100644 --- a/recipes-graphics/mali-userland/mali450-userland_r7p0_01rel0.bb +++ b/recipes-graphics/mali-userland/mali450-userland_r7p0_01rel0.bb @@ -36,21 +36,24 @@ S = "${WORKDIR}/mali-450_r7p0-01rel0_linux_1+arm64/wayland-drm" do_configure[noexec] = "1" do_compile[noexec] = "1" +# rpm doesn't set the correct arch for symlinks: +# https://github.com/96boards/meta-96boards/issues/156 +# For this reason we have to use hardlinks vs symlinks. do_install() { install -m 755 -d ${D}/${libdir} install ${S}/libMali.so ${D}/${libdir} - (cd ${D}/${libdir} && ln -sf libMali.so libEGL.so.1.4 \ - && ln -sf libEGL.so.1.4 libEGL.so.1 \ - && ln -sf libEGL.so.1 libEGL.so) - (cd ${D}/${libdir} && ln -sf libMali.so libGLESv1_CM.so.1.1 \ - && ln -sf libGLESv1_CM.so.1.1 libGLESv1_CM.so.1 \ - && ln -sf libGLESv1_CM.so.1 libGLESv1_CM.so) - (cd ${D}/${libdir} && ln -sf libMali.so libGLESv2.so.2.0 \ - && ln -sf libGLESv2.so.2.0 libGLESv2.so.2 \ - && ln -sf libGLESv2.so.2 libGLESv2.so) - (cd ${D}/${libdir} && ln -sf libMali.so libgbm.so.1 \ - && ln -sf libgbm.so.1 libgbm.so) - (cd ${D}/${libdir} && ln -sf libMali.so libwayland-egl.so) + (cd ${D}/${libdir} && ln -f libMali.so libEGL.so.1.4 \ + && ln -f libEGL.so.1.4 libEGL.so.1 \ + && ln -f libEGL.so.1 libEGL.so) + (cd ${D}/${libdir} && ln -f libMali.so libGLESv1_CM.so.1.1 \ + && ln -f libGLESv1_CM.so.1.1 libGLESv1_CM.so.1 \ + && ln -f libGLESv1_CM.so.1 libGLESv1_CM.so) + (cd ${D}/${libdir} && ln -f libMali.so libGLESv2.so.2.0 \ + && ln -f libGLESv2.so.2.0 libGLESv2.so.2 \ + && ln -f libGLESv2.so.2 libGLESv2.so) + (cd ${D}/${libdir} && ln -f libMali.so libgbm.so.1 \ + && ln -f libgbm.so.1 libgbm.so) + (cd ${D}/${libdir} && ln -f libMali.so libwayland-egl.so) install -D -m0644 ${WORKDIR}/50-mali.rules \ ${D}/${base_prefix}/lib/udev/rules.d/50-mali.rules