From e09891e0b094888ce4e12931ed3bd61521a7577f Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 25 Nov 2024 21:11:25 +0100 Subject: [PATCH] spirv-headers: add package Add SPIRV headers required to build Intel Vulkan driver. Signed-off-by: Daniel Golle --- libs/spirv-headers/Makefile | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libs/spirv-headers/Makefile diff --git a/libs/spirv-headers/Makefile b/libs/spirv-headers/Makefile new file mode 100644 index 0000000..da69f0a --- /dev/null +++ b/libs/spirv-headers/Makefile @@ -0,0 +1,48 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=spirv-headers +PKG_VERSION:=1.3.296.0 + +PKG_SOURCE:=SPIRV-Headers-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/KhronosGroup/SPIRV-Headers/tar.gz/vulkan-sdk-$(PKG_VERSION)? +PKG_HASH:=1423d58a1171611d5aba2bf6f8c69c72ef9c38a0aca12c3493e4fda64c9b2dc6 + +PKG_BUILD_DIR:=$(BUILD_DIR)/SPIRV-Headers-vulkan-sdk-$(PKG_VERSION) +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/SPIRV-Headers-vulkan-sdk-$(PKG_VERSION) + +CMAKE_BINARY_SUBDIR := build +#PKG_BUILD_DEPENDS:=llvm +#HOST_BUILD_DEPENDS:=llvm/host + +CMAKE_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/cmake.mk + +CMAKE_HOST_OPTIONS += \ + -DSPIRV_HEADERS_ENABLE_TESTS=OFF \ + -DSPIRV_HEADERS_ENABLE_INSTALL=ON + +CMAKE_OPTIONS += \ + -DSPIRV_HEADERS_ENABLE_TESTS=OFF \ + -DSPIRV_HEADERS_ENABLE_INSTALL=ON + +define Package/spirv-headers + SECTION:=devel + CATEGORY:=Development + TITLE:=SPIR-V Headers + URL:=https://github.com/KhronosGroup/SPIRV-Headers + BUILDONLY:=1 +endef + +define Package/spirv-headers/description +The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. +endef + +define Package/spirv-headers/install +true +endef + +$(eval $(call BuildPackage,spirv-headers)) +$(eval $(call HostBuild)) -- 2.30.2