diff options
author | Ankit Navik <ankit.tarot@gmail.com> | 2018-12-28 09:26:23 +0530 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-01-02 10:28:18 -0800 |
commit | c5f551f84149e53583ff83aef2a2c7d0b8c67e47 (patch) | |
tree | 87241ac8440154d595f2870bd9934338a2bc258b | |
parent | aa5cf52fd4b7ede275d437543d18c67e65f6f448 (diff) | |
download | meta-openembedded-c5f551f84149e53583ff83aef2a2c7d0b8c67e47.tar.gz |
spirv-tools: Initial recipe for spirv tools
Add generic recipe for spirv tools.
Signed-off-by: Ankit Navik <ankit.tarot@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch | 24 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/spir/spirv-tools_git.bb | 32 |
2 files changed, 56 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch b/meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch new file mode 100644 index 0000000000..e9a45c24fc --- /dev/null +++ b/meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 03127fd5a6eff5ae2ebea2e9c6c01fbf1a0a421a Mon Sep 17 00:00:00 2001 | ||
2 | From: Ankit Navik <ankit.tarot@gmail.com> | ||
3 | Date: Tue, 25 Dec 2018 14:34:09 +0530 | ||
4 | Subject: [PATCH] tools/lesspipe: Allow generic shell | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/KhronosGroup/SPIRV-Tools/pull/2255] | ||
7 | Signed-off-by: Ankit Navik <ankit.tarot@gmail.com> | ||
8 | --- | ||
9 | tools/lesspipe/spirv-lesspipe.sh | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/tools/lesspipe/spirv-lesspipe.sh b/tools/lesspipe/spirv-lesspipe.sh | ||
13 | index 81e3355..f955259 100644 | ||
14 | --- a/tools/lesspipe/spirv-lesspipe.sh | ||
15 | +++ b/tools/lesspipe/spirv-lesspipe.sh | ||
16 | @@ -1,4 +1,4 @@ | ||
17 | -#!/bin/bash | ||
18 | +#!/usr/bin/env sh | ||
19 | # Copyright (c) 2016 The Khronos Group Inc. | ||
20 | |||
21 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
22 | -- | ||
23 | 2.7.4 | ||
24 | |||
diff --git a/meta-oe/recipes-graphics/spir/spirv-tools_git.bb b/meta-oe/recipes-graphics/spir/spirv-tools_git.bb new file mode 100644 index 0000000000..aae11dffcd --- /dev/null +++ b/meta-oe/recipes-graphics/spir/spirv-tools_git.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "The SPIR-V Tools project provides an API and commands for \ | ||
2 | processing SPIR-V modules" | ||
3 | DESCRIPTION = "The project includes an assembler, binary module parser, \ | ||
4 | disassembler, validator, and optimizer for SPIR-V." | ||
5 | LICENSE = "Apache-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
7 | SECTION = "graphics" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | DEST_DIR = "${S}/external" | ||
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;name=spirv-tools \ | ||
12 | file://0001-tools-lesspipe-Allow-generic-shell.patch \ | ||
13 | git://github.com/KhronosGroup/SPIRV-Headers.git;name=spirv-headers;destsuffix=${DEST_DIR}/spirv-headers \ | ||
14 | git://github.com/google/effcee.git;name=effcee;destsuffix=${DEST_DIR}/effcee \ | ||
15 | git://github.com/google/re2.git;name=re2;destsuffix=${DEST_DIR}/re2 \ | ||
16 | git://github.com/google/googletest.git;name=googletest;destsuffix=${DEST_DIR}/googletest \ | ||
17 | " | ||
18 | SRCREV_spirv-tools = "167f1270a9ee641b17c016a545741e4aadfabe86" | ||
19 | SRCREV_spirv-headers = "4618b86e9e4b027a22040732dfee35e399cd2c47" | ||
20 | SRCREV_effcee = "8f0a61dc95e0df18c18e0ac56d83b3fa9d2fe90b" | ||
21 | SRCREV_re2 = "2cf86e5ab6dcfe045a1f510c2b9a8b012a4158cd" | ||
22 | SRCREV_googletest = "150613166524c474a8a97df4c01d46b72050c495" | ||
23 | |||
24 | inherit cmake python3native | ||
25 | |||
26 | do_install_append() { | ||
27 | install -d ${D}/${includedir}/spirv | ||
28 | install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/1.2/* ${D}/${includedir}/spirv | ||
29 | } | ||
30 | |||
31 | FILES_SOLIBSDEV = "" | ||
32 | FILES_${PN} += "${libdir}/*.so" | ||