From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iyFwg-000457-Hg for ptxdist@pengutronix.de; Sun, 02 Feb 2020 15:09:54 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iyFwg-0003Nm-95 for ptxdist@pengutronix.de; Sun, 02 Feb 2020 15:09:54 +0100 Date: Sun, 2 Feb 2020 15:09:50 +0100 From: Michael Olbrich Message-ID: <20200202140950.GA1521828@localhost> References: <20200117100055.9110-1-p.zabel@pengutronix.de> <20200117100055.9110-7-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200117100055.9110-7-p.zabel@pengutronix.de> Subject: Re: [ptxdist] [PATCH v2 7/7] 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 On Fri, Jan 17, 2020 at 11:00:55AM +0100, Philipp Zabel wrote: > Add Vulkan standard validation layer package. > > Signed-off-by: Philipp Zabel > --- > New in v2. > --- > 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 HOST_GLSLANG missing. Michael > + 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..0432ca0a850e > --- /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.1.130 > +VULKAN_VALIDATIONLAYERS_MD5 := 25c9a2c34457ecf81c248e34c02ad983 > +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).0.$(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 > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de