From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1iyuro-0008H0-Nf for ptxdist@pengutronix.de; Tue, 04 Feb 2020 10:51:36 +0100 From: Philipp Zabel Date: Tue, 4 Feb 2020 10:51:34 +0100 Message-Id: <20200204095134.7115-4-p.zabel@pengutronix.de> In-Reply-To: <20200204095134.7115-1-p.zabel@pengutronix.de> References: <20200204095134.7115-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v3 4/4] vulkan-validationlayers: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Add Vulkan standard validation layer package. Signed-off-by: Philipp Zabel --- Changes since v2: - version bump 1.1.130 -> 1.2.131.1 --- rules/vulkan-validationlayers.in | 22 ++++++++++ rules/vulkan-validationlayers.make | 66 ++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 rules/vulkan-validationlayers.in create mode 100644 rules/vulkan-validationlayers.make diff --git a/rules/vulkan-validationlayers.in b/rules/vulkan-validationlayers.in new file mode 100644 index 000000000000..f7eb3e9f68b7 --- /dev/null +++ b/rules/vulkan-validationlayers.in @@ -0,0 +1,22 @@ +## SECTION=multimedia_libs + +config VULKAN_VALIDATIONLAYERS + tristate + prompt "vulkan-validationlayers" + select HOST_CMAKE + select HOST_GLSLANG + select VULKAN_LOADER + select GLSLANG if BUILDTIME + select SPIRV_TOOLS if BUILDTIME + select LIBXCB if VULKAN_VALIDATIONLAYERS_XCB + select WAYLAND if VULKAN_VALIDATIONLAYERS_WAYLAND + help + Vulkan Validation Layers + +config VULKAN_VALIDATIONLAYERS_XCB + bool + default y if VULKAN_LOADER_XCB + +config VULKAN_VALIDATIONLAYERS_WAYLAND + bool + default y if VULKAN_LOADER_WAYLAND diff --git a/rules/vulkan-validationlayers.make b/rules/vulkan-validationlayers.make new file mode 100644 index 000000000000..d19da0b84c3a --- /dev/null +++ b/rules/vulkan-validationlayers.make @@ -0,0 +1,66 @@ +# -*-makefile-*- +# +# Copyright (C) 2020 by Philipp Zabel +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_VULKAN_VALIDATIONLAYERS) += vulkan-validationlayers + +# +# Paths and names +# +VULKAN_VALIDATIONLAYERS_VERSION := 1.2.131.1 +VULKAN_VALIDATIONLAYERS_MD5 := 359b7a2ed430c59a31fa20388508b120 +VULKAN_VALIDATIONLAYERS := vulkan-validationlayers-$(VULKAN_VALIDATIONLAYERS_VERSION) +VULKAN_VALIDATIONLAYERS_SUFFIX := tar.gz +VULKAN_VALIDATIONLAYERS_URL := https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$(VULKAN_VALIDATIONLAYERS_VERSION).$(VULKAN_VALIDATIONLAYERS_SUFFIX) +VULKAN_VALIDATIONLAYERS_SOURCE := $(SRCDIR)/$(VULKAN_VALIDATIONLAYERS).$(VULKAN_VALIDATIONLAYERS_SUFFIX) +VULKAN_VALIDATIONLAYERS_DIR := $(BUILDDIR)/$(VULKAN_VALIDATIONLAYERS) +VULKAN_VALIDATIONLAYERS_LICENSE := Apache-2.0 +VULKAN_VALIDATIONLAYERS_LICENSE_FILES := file://LICENSE.txt;md5=7dbefed23242760aa3475ee42801c5ac + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +VULKAN_VALIDATIONLAYERS_CONF_TOOL := cmake +VULKAN_VALIDATIONLAYERS_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_LAYERS=ON \ + -DBUILD_LAYER_SUPPORT_FILES=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_WSI_WAYLAND_SUPPORT=$(call ptx/onoff, PTXCONF_VULKAN_VALIDATIONLAYERS_WAYLAND) \ + -DBUILD_WSI_XCB_SUPPORT=$(call ptx/onoff, PTXCONF_VULKAN_VALIDATIONLAYERS_XCB) \ + -DBUILD_WSI_XLIB_SUPPORT=OFF \ + -DGLSLANG_INSTALL_DIR=$(PTXDIST_SYSROOT_HOST)/bin + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/vulkan-validationlayers.targetinstall: + @$(call targetinfo) + + @$(call install_init, vulkan-validationlayers) + @$(call install_fixup, vulkan-validationlayers, PRIORITY, optional) + @$(call install_fixup, vulkan-validationlayers, SECTION, base) + @$(call install_fixup, vulkan-validationlayers, AUTHOR, "Philipp Zabel ") + @$(call install_fixup, vulkan-validationlayers, DESCRIPTION, Vulkan Validation Layers) + + @$(call install_lib, vulkan-validationlayers, 0, 0, 0644, libVkLayer_khronos_validation) + + @$(call install_copy, vulkan-validationlayers, 0, 0, 0644, -, /usr/share/vulkan/explicit_layer.d/VkLayer_khronos_validation.json) + @$(call install_copy, vulkan-validationlayers, 0, 0, 0644, -, /usr/share/vulkan/explicit_layer.d/VkLayer_standard_validation.json) + + @$(call install_finish, vulkan-validationlayers) + + @$(call touch) + +# vim: syntax=make -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de