From 4947445f278c1ca4476ca48220a5c1a7fb8ff9d4 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 25 Jul 2023 19:30:56 +0200 Subject: [PATCH] package/spirv-headers: new package These headers are required to build the pacakge spirv-tools which is requried by mesa3d for building rusticl: https://docs.mesa3d.org/rusticl.html Signed-off-by: Romain Naour Signed-off-by: Sebastian Weyer Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/spirv-headers/Config.in | 6 ++++++ package/spirv-headers/spirv-headers.hash | 3 +++ package/spirv-headers/spirv-headers.mk | 15 +++++++++++++++ 5 files changed, 26 insertions(+) create mode 100644 package/spirv-headers/Config.in create mode 100644 package/spirv-headers/spirv-headers.hash create mode 100644 package/spirv-headers/spirv-headers.mk diff --git a/DEVELOPERS b/DEVELOPERS index c1d9577ba580..c45e7315da7a 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2650,6 +2650,7 @@ N: Sebastian Weyer F: package/amlogic-boot-fip/ F: package/nushell/ F: package/rust-bindgen/ +F: package/spirv-headers/ F: support/testing/tests/package/sample_nu.nu F: support/testing/tests/package/test_nu.py diff --git a/package/Config.in b/package/Config.in index d6364f976a2c..d673f0616d89 100644 --- a/package/Config.in +++ b/package/Config.in @@ -370,6 +370,7 @@ comment "Graphic libraries" source "package/sdl2_mixer/Config.in" source "package/sdl2_net/Config.in" source "package/sdl2_ttf/Config.in" + source "package/spirv-headers/Config.in" source "package/tk/Config.in" source "package/vulkan-headers/Config.in" source "package/vulkan-loader/Config.in" diff --git a/package/spirv-headers/Config.in b/package/spirv-headers/Config.in new file mode 100644 index 000000000000..fd20f301d435 --- /dev/null +++ b/package/spirv-headers/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_SPIRV_HEADERS + bool "spirv-headers" + help + Machine-readable files for the SPIR-V Registry + + https://www.khronos.org/registry/spir-v diff --git a/package/spirv-headers/spirv-headers.hash b/package/spirv-headers/spirv-headers.hash new file mode 100644 index 000000000000..136f3df73366 --- /dev/null +++ b/package/spirv-headers/spirv-headers.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 32b4c6ae6a2fa9b56c2c17233c8056da47e331f76e117729925825ea3e77a739 spirv-headers-1.3.261.1.tar.gz +sha256 9b243f6f0bf44e295ff411a0f7b7642d1d0dff7cdc42507e9f7206f439e51b5a LICENSE diff --git a/package/spirv-headers/spirv-headers.mk b/package/spirv-headers/spirv-headers.mk new file mode 100644 index 000000000000..3ab506e0db89 --- /dev/null +++ b/package/spirv-headers/spirv-headers.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# spirv-headers +# +################################################################################ + +SPIRV_HEADERS_VERSION = 1.3.261.1 +SPIRV_HEADERS_SITE = $(call github,KhronosGroup,SPIRV-Headers,sdk-$(SPIRV_HEADERS_VERSION)) +SPIRV_HEADERS_LICENSE = MIT +SPIRV_HEADERS_LICENSE_FILES = LICENSE + +SPIRV_HEADERS_INSTALL_STAGING = YES +SPIRV_HEADERS_INSTALL_TARGET = NO + +$(eval $(cmake-package))