Skip to content

Commit

Permalink
package/spirv-tools: new package
Browse files Browse the repository at this point in the history
This package is required by mesa3d for building rusticl:

https://docs.mesa3d.org/rusticl.html

As the version needs to be kept in sync between spirv-headers and
spirv-tools, we add a small comment about this in each package.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  • Loading branch information
RomainNaour authored and tpetazzoni committed Oct 1, 2023
1 parent 4947445 commit 0a01085
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ comment "Graphic applications"
source "package/pngquant/Config.in"
source "package/qt5cinex/Config.in"
source "package/rrdtool/Config.in"
source "package/spirv-tools/Config.in"
source "package/stellarium/Config.in"
source "package/sway/Config.in"
source "package/swaybg/Config.in"
Expand Down
1 change: 1 addition & 0 deletions package/spirv-headers/spirv-headers.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
################################################################################

# Keep in sync with spirv-tools version
SPIRV_HEADERS_VERSION = 1.3.261.1
SPIRV_HEADERS_SITE = $(call github,KhronosGroup,SPIRV-Headers,sdk-$(SPIRV_HEADERS_VERSION))
SPIRV_HEADERS_LICENSE = MIT
Expand Down
8 changes: 8 additions & 0 deletions package/spirv-tools/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
config BR2_PACKAGE_SPIRV_TOOLS
bool "spirv-tools"
select BR2_PACKAGE_SPIRV_HEADERS
help
The SPIR-V Tools project provides an API and commands for
processing SPIR-V modules.

https://github.com/KhronosGroup/SPIRV-Tools
3 changes: 3 additions & 0 deletions package/spirv-tools/spirv-tools.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Locally calculated
sha256 ead95c626ad482882a141d1aa0ce47b9453871f72c42c0b28d39c82f60a52008 spirv-tools-1.3.261.1.tar.gz
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
21 changes: 21 additions & 0 deletions package/spirv-tools/spirv-tools.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
################################################################################
#
# spirv-tools
#
################################################################################

# Keep in sync with spirv-headers version
SPIRV_TOOLS_VERSION = 1.3.261.1
SPIRV_TOOLS_SITE = $(call github,KhronosGroup,SPIRV-Tools,sdk-$(SPIRV_TOOLS_VERSION))
SPIRV_TOOLS_LICENSE = Apache-2.0
SPIRV_TOOLS_LICENSE_FILES = LICENSE
SPIRV_TOOLS_DEPENDENCIES = spirv-headers
SPIRV_TOOLS_INSTALL_STAGING = YES

SPIRV_TOOLS_CONF_OPTS = \
-DSPIRV-Headers_SOURCE_DIR=$(STAGING_DIR)/usr \
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
-DSPIRV_SKIP_TESTS=ON \
-DSPIRV_WERROR=OFF

$(eval $(cmake-package))

0 comments on commit 0a01085

Please sign in to comment.