Add new "canonical" path for binary Mali driver (#6054)

* Add new "canonical" path for binary Mali driver

This improves detection on "standard" setups of the Mali driver for platforms such as the Odroid XU4.

* Add another search location for Mali binary driver
This commit is contained in:
Cheaterman 2019-02-08 23:23:00 +01:00 committed by Mathieu Virbel
parent 23825f938f
commit c6cc83a38b
1 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,11 @@ if exists('/opt/vc/include/bcm_host.h'):
# use mesa video core drivers
if environ.get('VIDEOCOREMESA', None):
platform = 'vc'
if exists('/usr/lib/arm-linux-gnueabihf/libMali.so'):
mali_paths = (
'/usr/lib/arm-linux-gnueabihf/libMali.so',
'/usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so',
'/usr/local/mali-egl/libmali.so')
if any((exists(path) for path in mali_paths)):
platform = 'mali'
# -----------------------------------------------------------------------------