Guest User

Untitled

a guest
Apr 7th, 2016
342
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Vi0L0 <vi0l093@gmail.com>
  2. # - Altered by nirei <eipi1is0@gmail.com>
  3. # - to build x86_64 only, without altering the original
  4. # - installation path of the Ubuntu packages, but setting
  5. # - appropriate symlinks to the Xorg driver and libraries
  6. # - delivered by amdgpu-pro into /usr/lib
  7.  
  8. _kernver=`uname -r`
  9.  
  10. pkgname=amdgpu-pro
  11. pkgver=16.15.2
  12. pkgrel=1
  13. _amdver=16.15.2-277429
  14. pkgdesc="AMDGPU PRO (hybrid) driver for linux."
  15. arch=('x86_64')
  16. url="http://www.amd.com"
  17. license=('custom')
  18. options=('staticlibs' 'libtool' '!strip' '!upx')
  19. depends=('linux>4.4' 'linux-firmware' 'mesa>=10.1.0-4' 'xorg-server>1.17' 'xorg-server<1.19')
  20. makedepends=('gcc-libs' 'gcc>4.0.0' 'make' 'linux-headers')
  21. conflicts=('xf86-video-amdgpu' 'libdrm' 'libgl' 'catalyst' 'catalyst-daemon' 'catalyst-generator' 'catalyst-hook' 'catalyst-utils' 'libcl' 'catalyst-dkms' 'mesa-libgl' 'mesa-libgl-git')
  22. provides=('libdrm' 'libgl' "libatical=${pkgver}" "catalyst=${pkgver}" "catalyst-utils=${pkgver}" "catalyst-libgl=${pkgver}" "opencl-catalyst=${pkgver}" 'libcl' 'dri' 'libtxc_dxtn' 'mesa-libgl' 'mesa-libgl-git')
  23. install=amdgpu-pro.install
  24.  
  25. url_ref="http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Beta-Driver-for-Vulkan-Release-Notes.aspx"
  26. DLAGENTS="http::/usr/bin/curl --referer ${url_ref} -o %o %u"
  27.  
  28. source=(http://www2.ati.com/drivers/beta/amdgpu-pro_16.15.2-277429.tar.xz)
  29.  
  30. sha256sums=('e857cc74959706c276328b5876dfeba7d1ec0cbfacf966b607c50a748f7f5233')
  31.  
  32.  
  33. build() {
  34. cd ${srcdir}/amdgpu-pro-driver
  35. rm *i386*deb # build for x86_64 only
  36. for p in *.deb; do
  37. ar x $p
  38. tar -xf data.tar.xz
  39. done
  40. }
  41.  
  42. package() {
  43.  
  44. drvdir="${srcdir}/amdgpu-pro-driver"
  45.  
  46. # /etc/
  47. install -m755 -d "${pkgdir}/etc/OpenCL/vendors/"
  48. install -m755 -d "${pkgdir}/etc/amd/"
  49. install -m755 -d "${pkgdir}/etc/gbm/"
  50. install -m755 -d "${pkgdir}/etc/vulkan/icd.d/"
  51. etcarray=(
  52. '/etc/OpenCL/vendors/amdocl64.icd'
  53. '/etc/amd/amdapfxx.blb'
  54. '/etc/amd/amdrc'
  55. '/etc/gbm/gbm.conf'
  56. '/etc/vulkan/icd.d/amd_icd64.json'
  57. );
  58. for t in "${etcarray[@]}"; do
  59. install -m644 "${drvdir}$t" "${pkgdir}$t"
  60. done
  61.  
  62.  
  63. # /usr/bin/
  64. install -m755 -d ${pkgdir}/usr/bin/
  65. usrbinarray=(
  66. '/usr/bin/amdgpu_test'
  67. '/usr/bin/clinfo'
  68. '/usr/bin/kmstest'
  69. '/usr/bin/modeprint'
  70. '/usr/bin/modetest'
  71. '/usr/bin/proptest'
  72. '/usr/bin/vbltest'
  73. );
  74. for t in "${usrbinarray[@]}"; do
  75. install -m755 "${drvdir}$t" "${pkgdir}$t"
  76. done
  77.  
  78. # /usr/share/X11: install amdgpu-pro config
  79. install -m755 -d ${pkgdir}/etc/X11/xorg.conf.d/
  80. install -m644 \
  81. ${drvdir}/usr/share/X11/xorg.conf.d/01-amdgpu-pro.conf \
  82. ${pkgdir}/etc/X11/xorg.conf.d/01-amdgpu-pro.conf
  83.  
  84. # configs: ld paths to amdgpu-pro libs
  85. install -m755 -d ${pkgdir}/etc/ld.so.conf.d/
  86. install -m644 \
  87. ${drvdir}/lib/amdgpu-pro/ld.conf \
  88. ${pkgdir}/etc/ld.so.conf.d/amdgpu-ld.conf
  89. # modprobe config file to blacklist radeon and fglrx
  90. install -m755 -d ${pkgdir}/etc/modprobe.d/
  91. install -m644 \
  92. ${drvdir}/lib/amdgpu-pro/modprobe.conf \
  93. ${pkgdir}/etc/modprobe.d/amdgpu-pro.conf
  94.  
  95. # /usr/lib/
  96. # Xorg drivers and extensions of amdgpu-pro
  97. install -m755 -d \
  98. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/drivers/
  99. install -m755 -d \
  100. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/extensions/
  101. install -m755 \
  102. ${drvdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/drivers/* \
  103. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/drivers/
  104. install -m755 \
  105. ${drvdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/extensions/* \
  106. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/1.18/modules/extensions/
  107. ln -s 1.18 ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/xorg
  108.  
  109. # link new drivers and extensions to (existing) /usr/lib/xorg so Xorg finds everything
  110. install -m755 -d \
  111. ${pkgdir}/usr/lib/xorg/modules/drivers
  112. install -m755 -d \
  113. ${pkgdir}/usr/lib/xorg/modules/extensions
  114. ln -s \
  115. /usr/lib/x86_64-linux-gnu/amdgpu-pro/xorg/modules/drivers/amdgpu_drv.la \
  116. ${pkgdir}/usr/lib/xorg/modules/drivers/amdgpu_drv.la
  117. ln -s \
  118. /usr/lib/x86_64-linux-gnu/amdgpu-pro/xorg/modules/drivers/amdgpu_drv.so \
  119. ${pkgdir}/usr/lib/xorg/modules/drivers/amdgpu_drv.so
  120. ln -s \
  121. /usr/lib/x86_64-linux-gnu/amdgpu-pro/xorg/modules/extensions/libglx.so \
  122. ${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so
  123.  
  124. # amdgpu-pro library files
  125. # (put them in the directory where they are in Ubuntu)
  126. install -m755 -d ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/gbm/
  127. install -m755 -d ${pkgdir}/usr/lib/x86_64-linux-gnu/dri/
  128. install -m755 -d ${pkgdir}/usr/lib/x86_64-linux-gnu/vdpau/
  129. install -m755 -d ${pkgdir}/usr/lib/x86_64-linux-gnu/gbm/
  130. usrlibx86array=(
  131. '/usr/lib/x86_64-linux-gnu/amdvlk64.so'
  132. '/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so'
  133. '/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0.0'
  134. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/gbm/gbm_amdgpu.so'
  135. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libEGL.so.1'
  136. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1.2'
  137. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGLESv2.so.2'
  138. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libOpenCL.so.1'
  139. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl12cl64.so'
  140. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl64.so'
  141. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.la'
  142. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0'
  143. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.la'
  144. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0'
  145. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0'
  146. '/usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0'
  147. );
  148. for t in "${usrlibx86array[@]}"; do
  149. install -m755 ${drvdir}$t ${pkgdir}$t
  150. done
  151.  
  152. # from here on we put missing links to the new libs
  153. # into the amdgpu-pro directory and into /usr/lib
  154.  
  155. # link amdgpu-pro/dri/amdgpu_dri.so
  156. # to /usr/lib/dri and /usr/lib/xorg/modules/dri
  157. install -m755 -d ${pkgdir}/usr/lib/xorg/modules/dri/
  158. ln -s \
  159. /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so \
  160. ${pkgdir}/usr/lib/xorg/modules/dri/amdgpu_dri.so
  161. install -m755 -d ${pkgdir}/usr/lib/dri/
  162. ln -s \
  163. /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so \
  164. ${pkgdir}/usr/lib/dri/amdgpu_dri.so
  165.  
  166. # make missing link(s) for:
  167. #'/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so'
  168. #'/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1'
  169. #'/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0'
  170. ln -s \
  171. libvdpau_amdgpu.so.1.0.0 \
  172. ${pkgdir}/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0
  173. ln -s \
  174. libvdpau_amdgpu.so.1.0.0 \
  175. ${pkgdir}/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1
  176. ln -s \
  177. libvdpau_amdgpu.so.1.0.0 \
  178. ${pkgdir}/usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so
  179.  
  180. # link amdgpu-pro/vdpau/libvdpau_amdgpu.so to /usr/lib/vdpau
  181. install -m755 -d ${pkgdir}/usr/lib/vdpau/
  182. ln -s \
  183. /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0.0 \
  184. ${pkgdir}/usr/lib/vdpau/libvdpau_amdgpu.so.1.0.0
  185. ln -s \
  186. /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0.0 \
  187. ${pkgdir}/usr/lib/vdpau/libvdpau_amdgpu.so.1.0
  188. ln -s \
  189. /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0.0 \
  190. ${pkgdir}/usr/lib/vdpau/libvdpau_amdgpu.so.1
  191. ln -s \
  192. /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so.1.0.0 \
  193. ${pkgdir}/usr/lib/vdpau/libvdpau_amdgpu.so
  194.  
  195. # make missing link(s) for:
  196. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libEGL.so.1'
  197. ln -s \
  198. libEGL.so.1 \
  199. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libEGL.so
  200.  
  201. # make missing link(s) for:
  202. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1.2'
  203. ln -s \
  204. libGL.so.1.2 \
  205. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1
  206. ln -s \
  207. libGL.so.1.2 \
  208. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so
  209.  
  210. # link amdgpu-pro/libGL.so to /usr/lib
  211. ln -s \
  212. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1.2 \
  213. ${pkgdir}/usr/lib/libGL.so.1.2
  214. ln -s \
  215. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1.2 \
  216. ${pkgdir}/usr/lib/libGL.so.1
  217. ln -s \
  218. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libGL.so.1.2 \
  219. ${pkgdir}/usr/lib/libGL.so
  220.  
  221. # make missing link(s) for:
  222. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGLESv2.so.2'
  223. ln -s \
  224. libGLESv2.so.2 \
  225. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libGLESv2.so
  226.  
  227. # link amdgpu-pro/libGLESv2.so to /usr/lib
  228. ln -s \
  229. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libGLESv2.so.2 \
  230. ${pkgdir}/usr/lib/libGLESv2.so.2
  231. ln -s \
  232. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libGLESv2.so.2 \
  233. ${pkgdir}/usr/lib/libGLESv2.so
  234.  
  235. # make missing link(s) for:
  236. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libOpenCL.so.1'
  237. ln -s \
  238. amdgpu-pro/libOpenCL.so.1 \
  239. ${pkgdir}/usr/lib/x86_64-linux-gnu/libOpenCL.so
  240. # link amdgpu-pro/libOpenCL.so to /usr/lib
  241. ln -s \
  242. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libOpenCL.so.1 \
  243. ${pkgdir}/usr/lib/libOpenCL.so.1
  244. ln -s \
  245. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libOpenCL.so.1 \
  246. ${pkgdir}/usr/lib/libOpenCL.so
  247.  
  248. # make missing link(s) for:
  249. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0'
  250. ln -s \
  251. libdrm.so.2.4.0 \
  252. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4
  253. ln -s \
  254. libdrm.so.2.4.0 \
  255. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2
  256. ln -s \
  257. libdrm.so.2.4.0 \
  258. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so
  259. # link amdgpu-pro/libdrm.so to /usr/lib
  260. ln -s \
  261. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0 \
  262. ${pkgdir}/usr/lib/libdrm.so.2.4.0
  263. ln -s \
  264. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0 \
  265. ${pkgdir}/usr/lib/libdrm.so.2.4
  266. ln -s \
  267. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0 \
  268. ${pkgdir}/usr/lib/libdrm.so.2
  269. ln -s \
  270. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.so.2.4.0 \
  271. ${pkgdir}/usr/lib/libdrm.so
  272. # link amdgpu-pro/libdrm.la to /usr/lib
  273. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.la'
  274. ln -s \
  275. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm.la \
  276. ${pkgdir}/usr/lib/libdrm.la
  277.  
  278. # make missing link(s) for:
  279. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0'
  280. ln -s \
  281. libdrm_amdgpu.so.1.0.0 \
  282. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0
  283. ln -s \
  284. libdrm_amdgpu.so.1.0.0 \
  285. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1
  286. ln -s \
  287. libdrm_amdgpu.so.1.0.0 \
  288. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so
  289. # link amdgpu-pro/libdrm_amdgpu.so to /usr/lib
  290. ln -s \
  291. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0 \
  292. ${pkgdir}/usr/lib/libdrm_amdgpu.so.1.0.0
  293. ln -s \
  294. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0 \
  295. ${pkgdir}/usr/lib/libdrm_amdgpu.so.1.0
  296. ln -s \
  297. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0 \
  298. ${pkgdir}/usr/lib/libdrm_amdgpu.so.1
  299. ln -s \
  300. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.so.1.0.0 \
  301. ${pkgdir}/usr/lib/libdrm_amdgpu.so
  302. # link amdgpu-pro/libdrm_amdgpu.la to /usr/lib
  303. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.la'
  304. ln -s \
  305. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libdrm_amdgpu.la \
  306. ${pkgdir}/usr/lib/libdrm_amdgpu.la
  307.  
  308. # link amdgpu-pro amdvlk64.so to /usr/lib
  309. #'/usr/lib/x86_64-linux-gnu/amdvlk64.so'
  310. ln -s \
  311. /usr/lib/x86_64-linux-gnu/amdvlk64.so \
  312. ${pkgdir}/usr/lib/amdvlk64.so
  313.  
  314. # make missing link(s) for:
  315. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0'
  316. ln -s \
  317. libkms.so.1.0.0 \
  318. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0
  319. ln -s \
  320. libkms.so.1.0.0 \
  321. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1
  322. ln -s \
  323. libkms.so.1.0.0 \
  324. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so
  325. # link amdgpu-pro/libkms.so to /usr/lib
  326. ln -s \
  327. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0 \
  328. ${pkgdir}/usr/lib/libkms.so.1.0.0
  329. ln -s \
  330. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0 \
  331. ${pkgdir}/usr/lib/libkms.so.1.0
  332. ln -s \
  333. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0 \
  334. ${pkgdir}/usr/lib/libkms.so.1
  335. ln -s \
  336. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libkms.so.1.0.0 \
  337. ${pkgdir}/usr/lib/libkms.so
  338.  
  339. # link amdgpu-pro/libamdocl12cl64.so to /usr/lib
  340. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl12cl64.so'
  341. ln -s \
  342. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl12cl64.so \
  343. ${pkgdir}/usr/lib/libamdocl12cl64.so
  344.  
  345. # link amdgpu-pro/libamdocl64.so to /usr/lib
  346. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl64.so'
  347. ln -s \
  348. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libamdocl64.so \
  349. ${pkgdir}/usr/lib/libamdocl64.so
  350.  
  351.  
  352. # make missing link(s) for:
  353. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/gbm/libdummy.so'
  354. # pointing to '/usr/lib/x86_64-linux-gnu/amdgpu-pro/gbm/gbm_amdgpu.so'
  355. ln -s \
  356. gbm_amdgpu.so \
  357. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/gbm/libdummy.so
  358.  
  359. # make missing link(s) for:
  360. #'/usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0'
  361. ln -s \
  362. libgbm.so.1.0.0 \
  363. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0
  364. ln -s \
  365. libgbm.so.1.0.0 \
  366. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1
  367. ln -s \
  368. libgbm.so.1.0.0 \
  369. ${pkgdir}/usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so
  370. # TODO: during installation, hide existing /usr/lib/libgbm.so*
  371. # to avoid file collision ?
  372.  
  373. # link amdgpu-pro/libgbm.so to /usr/lib
  374. ln -s \
  375. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0 \
  376. ${pkgdir}/usr/lib/libgbm.so.1.0.0
  377. ln -s \
  378. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0 \
  379. ${pkgdir}/usr/lib/libgbm.so.1.0
  380. ln -s \
  381. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0 \
  382. ${pkgdir}/usr/lib/libgbm.so.1
  383. ln -s \
  384. /usr/lib/x86_64-linux-gnu/amdgpu-pro/libgbm.so.1.0.0 \
  385. ${pkgdir}/usr/lib/libgbm.so
  386.  
  387.  
  388. # put header files to /usr/include
  389. install -m755 -d ${pkgdir}/usr/include/amdgpu-pro/libdrm/
  390. install -m755 -d ${pkgdir}/usr/include/amdgpu-pro/libkms/
  391. usrincludearray=(
  392. '/usr/include/amdgpu-pro/libdrm/amdgpu.h'
  393. '/usr/include/amdgpu-pro/libdrm/amdgpu_drm.h'
  394. '/usr/include/amdgpu-pro/libdrm/drm.h'
  395. '/usr/include/amdgpu-pro/libdrm/drm_fourcc.h'
  396. '/usr/include/amdgpu-pro/libdrm/drm_mode.h'
  397. '/usr/include/amdgpu-pro/libdrm/drm_sarea.h'
  398. '/usr/include/amdgpu-pro/libdrm/i915_drm.h'
  399. '/usr/include/amdgpu-pro/libdrm/mach64_drm.h'
  400. '/usr/include/amdgpu-pro/libdrm/mga_drm.h'
  401. '/usr/include/amdgpu-pro/libdrm/nouveau.h'
  402. '/usr/include/amdgpu-pro/libdrm/nouveau_drm.h'
  403. '/usr/include/amdgpu-pro/libdrm/qxl_drm.h'
  404. '/usr/include/amdgpu-pro/libdrm/r128_drm.h'
  405. '/usr/include/amdgpu-pro/libdrm/r600_pci_ids.h'
  406. '/usr/include/amdgpu-pro/libdrm/radeon_bo.h'
  407. '/usr/include/amdgpu-pro/libdrm/radeon_bo_gem.h'
  408. '/usr/include/amdgpu-pro/libdrm/radeon_bo_int.h'
  409. '/usr/include/amdgpu-pro/libdrm/radeon_cs.h'
  410. '/usr/include/amdgpu-pro/libdrm/radeon_cs_gem.h'
  411. '/usr/include/amdgpu-pro/libdrm/radeon_cs_int.h'
  412. '/usr/include/amdgpu-pro/libdrm/radeon_drm.h'
  413. '/usr/include/amdgpu-pro/libdrm/radeon_surface.h'
  414. '/usr/include/amdgpu-pro/libdrm/savage_drm.h'
  415. '/usr/include/amdgpu-pro/libdrm/sis_drm.h'
  416. '/usr/include/amdgpu-pro/libdrm/tegra_drm.h'
  417. '/usr/include/amdgpu-pro/libdrm/via_drm.h'
  418. '/usr/include/amdgpu-pro/libdrm/vmwgfx_drm.h'
  419. '/usr/include/amdgpu-pro/libkms/libkms.h'
  420. '/usr/include/amdgpu-pro/xf86drm.h'
  421. '/usr/include/amdgpu-pro/xf86drmMode.h'
  422. );
  423. for t in "${usrincludearray[@]}"; do
  424. install -m644 ${drvdir}$t ${pkgdir}$t
  425. done
  426. # link new libdrm directory and two header files to /usr/include/
  427. ln -s \
  428. /usr/include/amdgpu-pro/libdrm/ \
  429. ${pkgdir}/usr/include/libdrm
  430. ln -s \
  431. /usr/include/amdgpu-pro/xf86drm.h \
  432. ${pkgdir}/usr/include/xf86drm.h
  433. ln -s \
  434. /usr/include/amdgpu-pro/xf86drmMode.h \
  435. ${pkgdir}/usr/include/xf86drmMode.h
  436.  
  437. # leave out DKMS, docs, man files and src for DKMS and firmware
  438.  
  439. # ubuntu specific?
  440. # ./usr/lib/x86_64-linux-gnu/amdgpu-pro/pkgconfig/
  441. # ./usr/lib/x86_64-linux-gnu/amdgpu-pro/pkgconfig/libdrm.pc
  442. # ./usr/lib/x86_64-linux-gnu/amdgpu-pro/pkgconfig/libdrm_amdgpu.pc
  443. # ./usr/lib/x86_64-linux-gnu/amdgpu-pro/pkgconfig/libkms.pc
  444.  
  445. # skip firmware
  446. # ./lib/firmware/
  447. # ./lib/firmware/amdgpu/
  448. # ./lib/firmware/amdgpu/amur_ce.bin
  449. # ./lib/firmware/amdgpu/amur_me.bin
  450. # ./lib/firmware/amdgpu/amur_mec.bin
  451. # ./lib/firmware/amdgpu/amur_pfp.bin
  452. # ./lib/firmware/amdgpu/amur_rlc.bin
  453. # ./lib/firmware/amdgpu/amur_sdma.bin
  454. # ./lib/firmware/amdgpu/baffin_ce.bin
  455. # ./lib/firmware/amdgpu/baffin_mc.bin
  456. # ./lib/firmware/amdgpu/baffin_me.bin
  457. # ./lib/firmware/amdgpu/baffin_mec.bin
  458. # ./lib/firmware/amdgpu/baffin_mec2.bin
  459. # ./lib/firmware/amdgpu/baffin_pfp.bin
  460. # ./lib/firmware/amdgpu/baffin_rlc.bin
  461. # ./lib/firmware/amdgpu/baffin_sdma.bin
  462. # ./lib/firmware/amdgpu/baffin_sdma1.bin
  463. # ./lib/firmware/amdgpu/baffin_smc.bin
  464. # ./lib/firmware/amdgpu/baffin_smc_sk.bin
  465. # ./lib/firmware/amdgpu/baffin_uvd.bin
  466. # ./lib/firmware/amdgpu/baffin_vce.bin
  467. # ./lib/firmware/amdgpu/carrizo_ce.bin
  468. # ./lib/firmware/amdgpu/carrizo_me.bin
  469. # ./lib/firmware/amdgpu/carrizo_mec.bin
  470. # ./lib/firmware/amdgpu/carrizo_mec2.bin
  471. # ./lib/firmware/amdgpu/carrizo_pfp.bin
  472. # ./lib/firmware/amdgpu/carrizo_rlc.bin
  473. # ./lib/firmware/amdgpu/carrizo_sdma.bin
  474. # ./lib/firmware/amdgpu/carrizo_sdma1.bin
  475. # ./lib/firmware/amdgpu/carrizo_uvd.bin
  476. # ./lib/firmware/amdgpu/carrizo_vce.bin
  477. # ./lib/firmware/amdgpu/ellesmere_ce.bin
  478. # ./lib/firmware/amdgpu/ellesmere_mc.bin
  479. # ./lib/firmware/amdgpu/ellesmere_me.bin
  480. # ./lib/firmware/amdgpu/ellesmere_mec.bin
  481. # ./lib/firmware/amdgpu/ellesmere_mec2.bin
  482. # ./lib/firmware/amdgpu/ellesmere_pfp.bin
  483. # ./lib/firmware/amdgpu/ellesmere_rlc.bin
  484. # ./lib/firmware/amdgpu/ellesmere_sdma.bin
  485. # ./lib/firmware/amdgpu/ellesmere_sdma1.bin
  486. # ./lib/firmware/amdgpu/ellesmere_smc.bin
  487. # ./lib/firmware/amdgpu/ellesmere_smc_sk.bin
  488. # ./lib/firmware/amdgpu/ellesmere_uvd.bin
  489. # ./lib/firmware/amdgpu/ellesmere_vce.bin
  490. # ./lib/firmware/amdgpu/fiji_ce.bin
  491. # ./lib/firmware/amdgpu/fiji_mc.bin
  492. # ./lib/firmware/amdgpu/fiji_me.bin
  493. # ./lib/firmware/amdgpu/fiji_mec.bin
  494. # ./lib/firmware/amdgpu/fiji_mec2.bin
  495. # ./lib/firmware/amdgpu/fiji_pfp.bin
  496. # ./lib/firmware/amdgpu/fiji_rlc.bin
  497. # ./lib/firmware/amdgpu/fiji_sdma.bin
  498. # ./lib/firmware/amdgpu/fiji_sdma1.bin
  499. # ./lib/firmware/amdgpu/fiji_smc.bin
  500. # ./lib/firmware/amdgpu/fiji_uvd.bin
  501. # ./lib/firmware/amdgpu/fiji_vce.bin
  502. # ./lib/firmware/amdgpu/stoney_ce.bin
  503. # ./lib/firmware/amdgpu/stoney_me.bin
  504. # ./lib/firmware/amdgpu/stoney_mec.bin
  505. # ./lib/firmware/amdgpu/stoney_pfp.bin
  506. # ./lib/firmware/amdgpu/stoney_rlc.bin
  507. # ./lib/firmware/amdgpu/stoney_sdma.bin
  508. # ./lib/firmware/amdgpu/stoney_uvd.bin
  509. # ./lib/firmware/amdgpu/stoney_vce.bin
  510. # ./lib/firmware/amdgpu/tonga_ce.bin
  511. # ./lib/firmware/amdgpu/tonga_mc.bin
  512. # ./lib/firmware/amdgpu/tonga_me.bin
  513. # ./lib/firmware/amdgpu/tonga_mec.bin
  514. # ./lib/firmware/amdgpu/tonga_mec2.bin
  515. # ./lib/firmware/amdgpu/tonga_pfp.bin
  516. # ./lib/firmware/amdgpu/tonga_rlc.bin
  517. # ./lib/firmware/amdgpu/tonga_sdma.bin
  518. # ./lib/firmware/amdgpu/tonga_sdma1.bin
  519. # ./lib/firmware/amdgpu/tonga_smc.bin
  520. # ./lib/firmware/amdgpu/tonga_uvd.bin
  521. # ./lib/firmware/amdgpu/tonga_vce.bin
  522. # ./lib/firmware/amdgpu/topaz_ce.bin
  523. # ./lib/firmware/amdgpu/topaz_mc.bin
  524. # ./lib/firmware/amdgpu/topaz_me.bin
  525. # ./lib/firmware/amdgpu/topaz_mec.bin
  526. # ./lib/firmware/amdgpu/topaz_mec2.bin
  527. # ./lib/firmware/amdgpu/topaz_pfp.bin
  528. # ./lib/firmware/amdgpu/topaz_rlc.bin
  529. # ./lib/firmware/amdgpu/topaz_sdma.bin
  530. # ./lib/firmware/amdgpu/topaz_sdma1.bin
  531. # ./lib/firmware/amdgpu/topaz_smc.bin
  532. # ./lib/firmware/radeon/
  533. # ./lib/firmware/radeon/bonaire_ce.bin
  534. # ./lib/firmware/radeon/bonaire_mc.bin
  535. # ./lib/firmware/radeon/bonaire_me.bin
  536. # ./lib/firmware/radeon/bonaire_mec.bin
  537. # ./lib/firmware/radeon/bonaire_pfp.bin
  538. # ./lib/firmware/radeon/bonaire_rlc.bin
  539. # ./lib/firmware/radeon/bonaire_sdma.bin
  540. # ./lib/firmware/radeon/bonaire_sdma1.bin
  541. # ./lib/firmware/radeon/bonaire_smc.bin
  542. # ./lib/firmware/radeon/bonaire_uvd.bin
  543. # ./lib/firmware/radeon/bonaire_vce.bin
  544. # ./lib/firmware/radeon/hawaii_ce.bin
  545. # ./lib/firmware/radeon/hawaii_mc.bin
  546. # ./lib/firmware/radeon/hawaii_me.bin
  547. # ./lib/firmware/radeon/hawaii_mec.bin
  548. # ./lib/firmware/radeon/hawaii_pfp.bin
  549. # ./lib/firmware/radeon/hawaii_rlc.bin
  550. # ./lib/firmware/radeon/hawaii_sdma.bin
  551. # ./lib/firmware/radeon/hawaii_sdma1.bin
  552. # ./lib/firmware/radeon/hawaii_smc.bin
  553. # ./lib/firmware/radeon/hawaii_uvd.bin
  554. # ./lib/firmware/radeon/hawaii_vce.bin
  555. # ./lib/firmware/radeon/kabini_ce.bin
  556. # ./lib/firmware/radeon/kabini_me.bin
  557. # ./lib/firmware/radeon/kabini_mec.bin
  558. # ./lib/firmware/radeon/kabini_pfp.bin
  559. # ./lib/firmware/radeon/kabini_rlc.bin
  560. # ./lib/firmware/radeon/kabini_sdma.bin
  561. # ./lib/firmware/radeon/kabini_sdma1.bin
  562. # ./lib/firmware/radeon/kabini_uvd.bin
  563. # ./lib/firmware/radeon/kabini_vce.bin
  564. # ./lib/firmware/radeon/kaveri_ce.bin
  565. # ./lib/firmware/radeon/kaveri_me.bin
  566. # ./lib/firmware/radeon/kaveri_mec.bin
  567. # ./lib/firmware/radeon/kaveri_mec2.bin
  568. # ./lib/firmware/radeon/kaveri_pfp.bin
  569. # ./lib/firmware/radeon/kaveri_rlc.bin
  570. # ./lib/firmware/radeon/kaveri_sdma.bin
  571. # ./lib/firmware/radeon/kaveri_sdma1.bin
  572. # ./lib/firmware/radeon/kaveri_uvd.bin
  573. # ./lib/firmware/radeon/kaveri_vce.bin
  574. # ./lib/firmware/radeon/mullins_ce.bin
  575. # ./lib/firmware/radeon/mullins_me.bin
  576. # ./lib/firmware/radeon/mullins_mec.bin
  577. # ./lib/firmware/radeon/mullins_pfp.bin
  578. # ./lib/firmware/radeon/mullins_rlc.bin
  579. # ./lib/firmware/radeon/mullins_sdma.bin
  580. # ./lib/firmware/radeon/mullins_sdma1.bin
  581. # ./lib/firmware/radeon/mullins_uvd.bin
  582. # ./lib/firmware/radeon/mullins_vce.bin
  583.  
  584. }
RAW Paste Data