mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 7/7] vulkan-validationlayers: new package
Date: Sun, 2 Feb 2020 15:09:50 +0100	[thread overview]
Message-ID: <20200202140950.GA1521828@localhost> (raw)
In-Reply-To: <20200117100055.9110-7-p.zabel@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 <p.zabel@pengutronix.de>
> ---
> 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 <p.zabel@pengutronix.de>
> +#
> +# 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 <p.zabel@pengutronix.de>")
> +	@$(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

      reply	other threads:[~2020-02-02 14:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17 10:00 [ptxdist] [PATCH v2 1/7] vulkan-loader: " Philipp Zabel
2020-01-17 10:00 ` [ptxdist] [PATCH v2 2/7] mesalib: enable zink gallium driver Philipp Zabel
2020-01-17 10:00 ` [ptxdist] [PATCH v2 3/7] mesalib: enable vulkan drivers Philipp Zabel
2020-01-17 10:00 ` [ptxdist] [PATCH v2 4/7] gst-plugins-bad1: enable vulkan plugin Philipp Zabel
2020-01-17 10:00 ` [ptxdist] [PATCH v2 5/7] glslang: new package Philipp Zabel
2020-02-02 14:46   ` Michael Olbrich
2020-01-17 10:00 ` [ptxdist] [PATCH v2 6/7] spirv-tools: " Philipp Zabel
2020-01-17 10:00 ` [ptxdist] [PATCH v2 7/7] vulkan-validationlayers: " Philipp Zabel
2020-02-02 14:09   ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200202140950.GA1521828@localhost \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox