aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 18:30:04 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 19:48:07 +0500
commitf9afe54232f8b00393932b2d2f1e9fdebd0e4a2b (patch)
tree0dff7d5bf209124c8c1c41de90eeb90415c0582f /meta-amd-bsp
parentb2dc440440a64fd134b093a4b47e0186f25bd911 (diff)
downloadmeta-amd-f9afe54232f8b00393932b2d2f1e9fdebd0e4a2b.tar.gz
meta-amd-f9afe54232f8b00393932b2d2f1e9fdebd0e4a2b.tar.bz2
meta-amd-f9afe54232f8b00393932b2d2f1e9fdebd0e4a2b.zip
meta-amd-bsp: move amdvlk recipe here from v1000/recipes-graphics
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp')
-rw-r--r--meta-amd-bsp/recipes-graphics/amdvlk/amdvlk_1.0.bb23
-rw-r--r--meta-amd-bsp/recipes-graphics/amdvlk/files/amd_icd64.json8
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-graphics/amdvlk/amdvlk_1.0.bb b/meta-amd-bsp/recipes-graphics/amdvlk/amdvlk_1.0.bb
new file mode 100644
index 00000000..42074425
--- /dev/null
+++ b/meta-amd-bsp/recipes-graphics/amdvlk/amdvlk_1.0.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "AMD Vulkan ICD Library"
+LICENSE = "BSD"
+RDEPENDS_${PN} = "libdrm vulkan"
+
+LIC_FILES_CHKSUM = "file://amd_icd64.json;md5=10cb7871f46c13ca7d2c9547969347b6"
+
+SRC_URI = "file://amdvlk64.so \
+ file://amd_icd64.json \
+"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${D}/${sysconfdir}/vulkan/icd.d
+ install -m 0644 ${S}/amd_icd64.json ${D}/${sysconfdir}/vulkan/icd.d/
+ install -vd ${D}/${libdir}
+ install -m 0755 ${S}/amdvlk64.so ${D}/${libdir}
+}
+
+INSANE_SKIP_${PN} += "already-stripped ldflags file-rdeps"
+
+FILES_${PN} += "${libdir}"
+FILES_SOLIBSDEV = ""
diff --git a/meta-amd-bsp/recipes-graphics/amdvlk/files/amd_icd64.json b/meta-amd-bsp/recipes-graphics/amdvlk/files/amd_icd64.json
new file mode 100644
index 00000000..15c0c973
--- /dev/null
+++ b/meta-amd-bsp/recipes-graphics/amdvlk/files/amd_icd64.json
@@ -0,0 +1,8 @@
+{
+ "file_format_version": "1.0.0",
+ "ICD": {
+ "library_path": "/usr/lib64/amdvlk64.so",
+ "api_version": "1.1.96"
+ }
+}
+