meson: fix the install path of amdgpu.ids
authorChristoph Haag <haagch@frickel.club>
Thu, 18 Jan 2018 18:01:55 +0000 (19:01 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 18 Jan 2018 18:13:43 +0000 (10:13 -0800)
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
amdgpu/meson.build

index 55ab9d1..8b04520 100644 (file)
@@ -19,7 +19,7 @@
 # SOFTWARE.
 
 
-datadir_amdgpu = join_paths(get_option('datadir'), 'libdrm', 'amdgpu.ids')
+datadir_amdgpu = join_paths(get_option('prefix'), get_option('datadir'), 'libdrm')
 
 libdrm_amdgpu = shared_library(
   'drm_amdgpu',
@@ -33,7 +33,7 @@ libdrm_amdgpu = shared_library(
   ],
   c_args : [
     warn_c_args,
-    '-DAMDGPU_ASIC_ID_TABLE="@0@"'.format(datadir_amdgpu),
+    '-DAMDGPU_ASIC_ID_TABLE="@0@"'.format(join_paths(datadir_amdgpu, 'amdgpu.ids')),
   ],
   include_directories : [inc_root, inc_drm],
   link_with : libdrm,