From d971a4230d54069c996bca78b6ed6a6a23377821 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 15 Nov 2018 13:54:49 -0800 Subject: loader: Factor out the common driver opening logic from each loader. I copied the code from egl_dri2.c, but the functionality was equivalent between all the loaders other than their particular environment variables. v2: Drop the logging function equivalent to loader_default_logger() (requested by Eric, Emil). Move the SCons workaround across. Drop the now-unused driGetDriverExtensions() declaration that was lost in a rebase. Reviewed-by: Eric Engestrom (v1) Reviewed-by: Emil Velikov (v1) --- src/loader/SConscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/loader/SConscript') diff --git a/src/loader/SConscript b/src/loader/SConscript index f70654f43ae..6a315642c2c 100644 --- a/src/loader/SConscript +++ b/src/loader/SConscript @@ -12,6 +12,8 @@ if env['drm']: env.PkgUseModules('DRM') env.Append(CPPDEFINES = ['HAVE_LIBDRM']) +env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"']) + # parse Makefile.sources sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES') -- cgit v1.2.3