bcm2835-driver: only filter out libEGL/libGL on RPi4

libopenmaxil links against libbrcmEGL.so and libbrcmGLESv2.so so
these libs should not be filtered out.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-06-25 22:54:32 +02:00
parent 63c2b8d23b
commit d561157d7b

View File

@ -39,7 +39,7 @@ make_target() {
cp -PRv ${PKG_FLOAT}/opt/vc/lib/*.a ${SYSROOT_PREFIX}/usr/lib
cp -PRv ${PKG_FLOAT}/opt/vc/lib/pkgconfig ${SYSROOT_PREFIX}/usr/lib
else
for f in $(cd ${PKG_FLOAT}/opt/vc/lib; ls *.so *.a | grep -v "GL"); do
for f in $(cd ${PKG_FLOAT}/opt/vc/lib; ls *.so *.a | grep -Ev "^lib(EGL|GL)"); do
cp -PRv ${PKG_FLOAT}/opt/vc/lib/$f ${SYSROOT_PREFIX}/usr/lib
done
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
@ -69,7 +69,7 @@ makeinstall_target() {
ln -sf /usr/lib/libbrcmGLESv2.so ${INSTALL}/usr/lib/libGLESv2.so
ln -sf /usr/lib/libbrcmGLESv2.so ${INSTALL}/usr/lib/libGLESv2.so.2
else
for f in $(cd ${PKG_FLOAT}/opt/vc/lib; ls *.so | grep -v "GL"); do
for f in $(cd ${PKG_FLOAT}/opt/vc/lib; ls *.so | grep -Ev "^lib(EGL|GL)"); do
cp -PRv ${PKG_FLOAT}/opt/vc/lib/$f ${INSTALL}/usr/lib
done
fi