aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 18:24:25 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 19:48:07 +0500
commitbfd1078a99380ad17a20c33acb6629db42abffa6 (patch)
treeacaa3b02b91580292f033112b73d89a0757f62a7 /meta-amd-bsp
parentb7c4db15e5ddd8ae038298a2ca1156c781c1b841 (diff)
downloadmeta-amd-bfd1078a99380ad17a20c33acb6629db42abffa6.tar.gz
meta-amd-bfd1078a99380ad17a20c33acb6629db42abffa6.tar.bz2
meta-amd-bfd1078a99380ad17a20c33acb6629db42abffa6.zip
meta-amd-bsp: move spirv-tools recipe here from r1000/recipes-devtools
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp')
-rw-r--r--meta-amd-bsp/recipes-devtools/spirv/spirv-tools/0002-spirv-lesspipe.sh-allow-using-generic-shells.patch27
-rw-r--r--meta-amd-bsp/recipes-devtools/spirv/spirv-tools_git.bb28
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-devtools/spirv/spirv-tools/0002-spirv-lesspipe.sh-allow-using-generic-shells.patch b/meta-amd-bsp/recipes-devtools/spirv/spirv-tools/0002-spirv-lesspipe.sh-allow-using-generic-shells.patch
new file mode 100644
index 00000000..40bc477a
--- /dev/null
+++ b/meta-amd-bsp/recipes-devtools/spirv/spirv-tools/0002-spirv-lesspipe.sh-allow-using-generic-shells.patch
@@ -0,0 +1,27 @@
+From f6c173b1c32e6dcbac510a4bcb60e6bb080c146a Mon Sep 17 00:00:00 2001
+From: Awais Belal <awais_belal@mentor.com>
+Date: Wed, 31 May 2017 12:26:04 +0500
+Subject: [PATCH 2/2] spirv-lesspipe.sh: allow using generic shells
+
+The script is harmless for any type of shell and
+shouldn't be tied with bash to allow catering
+more possibilities.
+
+Signed-off-by: Awais Belal <awais_belal@mentor.com>
+---
+ tools/lesspipe/spirv-lesspipe.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/lesspipe/spirv-lesspipe.sh b/tools/lesspipe/spirv-lesspipe.sh
+index 81e3355..f955259 100644
+--- a/tools/lesspipe/spirv-lesspipe.sh
++++ b/tools/lesspipe/spirv-lesspipe.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # Copyright (c) 2016 The Khronos Group Inc.
+
+ # Licensed under the Apache License, Version 2.0 (the "License");
+--
+2.11.1
+
diff --git a/meta-amd-bsp/recipes-devtools/spirv/spirv-tools_git.bb b/meta-amd-bsp/recipes-devtools/spirv/spirv-tools_git.bb
new file mode 100644
index 00000000..a4da04e2
--- /dev/null
+++ b/meta-amd-bsp/recipes-devtools/spirv/spirv-tools_git.bb
@@ -0,0 +1,28 @@
+SUMMARY = "SPIR-V Tools"
+DESCRIPTION = "SPIR-V is a binary intermediate language for representing \
+ graphical-shader stages and compute kernels for multiple \
+ Khronos APIs, such as OpenCL, OpenGL, and Vulkan."
+SECTION = "graphics"
+HOMEPAGE = "https://www.khronos.org/registry/spir-v"
+
+inherit cmake python3native
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+S = "${WORKDIR}/git"
+SPIRV_HEADERS_LOCATION = "${S}/external/spirv-headers"
+HEADERS_VERSION = "1.1"
+
+SRCREV_spirv-tools = "9e19fc0f31ceaf1f6bc907dbf17dcfded85f2ce8"
+SRCREV_spirv-headers = "ce309203d7eceaf908bea8862c27f3e0749f7d00"
+SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools;protocol=http;name=spirv-tools \
+ git://github.com/KhronosGroup/SPIRV-Headers;name=spirv-headers;destsuffix=${SPIRV_HEADERS_LOCATION} \
+ file://0002-spirv-lesspipe.sh-allow-using-generic-shells.patch"
+
+do_install_append() {
+ if test -d ${SPIRV_HEADERS_LOCATION}/include/spirv/${HEADERS_VERSION}; then
+ install -d ${D}/${includedir}/SPIRV
+ install -m 0644 ${SPIRV_HEADERS_LOCATION}/include/spirv/${HEADERS_VERSION}/* ${D}/${includedir}/SPIRV
+ fi
+}