[oe] [PATCH v2] spirv-tools: Initial recipe for spirv tools

Martin Jansa martin.jansa at gmail.com
Fri May 17 09:50:21 UTC 2019


It also installs the library in wrong path with multilib:
ERROR: QA Issue: spirv-tools: Files/directories were installed but not
shipped in any package:
  /usr/lib
  /usr/lib/libeffcee.a

On Fri, May 17, 2019 at 11:46 AM Martin Jansa <martin.jansa at gmail.com>
wrote:

> You should set the PV in the recipe, "git" as a version isn't very useful:
> spirv-tools-git-r0
>
> On Fri, Dec 28, 2018 at 4:54 AM Ankit Navik <ankit.tarot at gmail.com> wrote:
>
>> Add generic recipe for spirv tools.
>>
>> Signed-off-by: Ankit Navik <ankit.tarot at gmail.com>
>> ---
>>  .../0001-tools-lesspipe-Allow-generic-shell.patch  | 24 ++++++++++++++++
>>  meta-oe/recipes-graphics/spir/spirv-tools_git.bb   | 32
>> ++++++++++++++++++++++
>>  2 files changed, 56 insertions(+)
>>  create mode 100644
>> meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch
>>  create mode 100644 meta-oe/recipes-graphics/spir/spirv-tools_git.bb
>>
>> 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 0000000..e9a45c2
>> --- /dev/null
>> +++
>> b/meta-oe/recipes-graphics/spir/files/0001-tools-lesspipe-Allow-generic-shell.patch
>> @@ -0,0 +1,24 @@
>> +From 03127fd5a6eff5ae2ebea2e9c6c01fbf1a0a421a Mon Sep 17 00:00:00 2001
>> +From: Ankit Navik <ankit.tarot at gmail.com>
>> +Date: Tue, 25 Dec 2018 14:34:09 +0530
>> +Subject: [PATCH] tools/lesspipe: Allow generic shell
>> +
>> +Upstream-Status: Submitted [
>> https://github.com/KhronosGroup/SPIRV-Tools/pull/2255]
>> +Signed-off-by: Ankit Navik <ankit.tarot at gmail.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
>> ++#!/usr/bin/env sh
>> + # Copyright (c) 2016 The Khronos Group Inc.
>> +
>> + # Licensed under the Apache License, Version 2.0 (the "License");
>> +--
>> +2.7.4
>> +
>> 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 0000000..aae11df
>> --- /dev/null
>> +++ b/meta-oe/recipes-graphics/spir/spirv-tools_git.bb
>> @@ -0,0 +1,32 @@
>> +SUMMARY  = "The SPIR-V Tools project provides an API and commands for \
>> +processing SPIR-V modules"
>> +DESCRIPTION = "The project includes an assembler, binary module parser, \
>> +disassembler, validator, and optimizer for SPIR-V."
>> +LICENSE  = "Apache-2.0"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>> +SECTION = "graphics"
>> +
>> +S = "${WORKDIR}/git"
>> +DEST_DIR = "${S}/external"
>> +SRC_URI = "git://
>> github.com/KhronosGroup/SPIRV-Tools.git;name=spirv-tools \
>> +       file://0001-tools-lesspipe-Allow-generic-shell.patch \
>> +       git://
>> github.com/KhronosGroup/SPIRV-Headers.git;name=spirv-headers;destsuffix=${DEST_DIR}/spirv-headers
>> <http://github.com/KhronosGroup/SPIRV-Headers.git;name=spirv-headers;destsuffix=$%7BDEST_DIR%7D/spirv-headers>
>> \
>> +       git://
>> github.com/google/effcee.git;name=effcee;destsuffix=${DEST_DIR}/effcee
>> <http://github.com/google/effcee.git;name=effcee;destsuffix=$%7BDEST_DIR%7D/effcee>
>> \
>> +       git://
>> github.com/google/re2.git;name=re2;destsuffix=${DEST_DIR}/re2
>> <http://github.com/google/re2.git;name=re2;destsuffix=$%7BDEST_DIR%7D/re2>
>> \
>> +       git://
>> github.com/google/googletest.git;name=googletest;destsuffix=${DEST_DIR}/googletest
>> <http://github.com/google/googletest.git;name=googletest;destsuffix=$%7BDEST_DIR%7D/googletest>
>> \
>> +"
>> +SRCREV_spirv-tools = "167f1270a9ee641b17c016a545741e4aadfabe86"
>> +SRCREV_spirv-headers = "4618b86e9e4b027a22040732dfee35e399cd2c47"
>> +SRCREV_effcee = "8f0a61dc95e0df18c18e0ac56d83b3fa9d2fe90b"
>> +SRCREV_re2 = "2cf86e5ab6dcfe045a1f510c2b9a8b012a4158cd"
>> +SRCREV_googletest = "150613166524c474a8a97df4c01d46b72050c495"
>> +
>> +inherit cmake python3native
>> +
>> +do_install_append() {
>> +       install -d ${D}/${includedir}/spirv
>> +       install -m 0644 ${DEST_DIR}/spirv-headers/include/spirv/1.2/*
>> ${D}/${includedir}/spirv
>> +}
>> +
>> +FILES_SOLIBSDEV = ""
>> +FILES_${PN} += "${libdir}/*.so"
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>
>


More information about the Openembedded-devel mailing list