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 6/6] piglit: new package
Date: Mon, 1 Feb 2016 15:43:01 +0100	[thread overview]
Message-ID: <20160201144301.GF14307@pengutronix.de> (raw)
In-Reply-To: <1454002028-12486-6-git-send-email-l.stach@pengutronix.de>

On Thu, Jan 28, 2016 at 06:27:08PM +0100, Lucas Stach wrote:
> Piglit is the opensource OpenGL/OpenCL test suite.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  rules/piglit.in   | 47 +++++++++++++++++++++++++++++++++++++++++
>  rules/piglit.make | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 110 insertions(+)
>  create mode 100644 rules/piglit.in
>  create mode 100644 rules/piglit.make
> 
> diff --git a/rules/piglit.in b/rules/piglit.in
> new file mode 100644
> index 000000000000..2039afd4f7f6
> --- /dev/null
> +++ b/rules/piglit.in
> @@ -0,0 +1,47 @@
> +## SECTION=test_suites
> +
> +menuconfig PIGLIT
> +	tristate
> +	prompt "piglit"
         -------------^
add spaces to align the "-->" in the menu.

> +	select HOST_CMAKE
> +	select HOST_PYTHON
> +	select HOST_PYTHON_SIX
> +	select HOST_PYTHON_NUMPY
> +	select HOST_PYTHON_SETUPTOOLS
> +	select PYTHON
> +	select PYTHON_MAKO
> +	select WAFFLE
> +	select FREEGLUT if PIGLIT_TESTS_OPENGL
> +	help
> +	  Piglit is the opensource OpenGL/OpenCL test suite.
> +
> +if PIGLIT
> +
> +# OpenGL tests need some more dependencies sorted out
> +
> +config PIGLIT_TESTS_OPENGL
> +	bool
> +	prompt "build OpenGL tests"
> +	depends on MESALIB_OPENGL

See my comments for waffle.

Michael

> +
> +config PIGLIT_TESTS_OPENGLES1
> +	bool
> +	prompt "build OpenGL ES1 tests"
> +	depends on MESALIB_GLES1
> +
> +config PIGLIT_TESTS_OPENGLES2
> +	bool
> +	prompt "build OpenGL ES2 tests"
> +	depends on MESALIB_GLES2
> +
> +config PIGLIT_TESTS_OPENGLES3
> +	bool
> +	prompt "build OpenGL ES3 tests"
> +	depends on BROKEN
> +
> +config PIGLIT_TESTS_OPENCL
> +	bool
> +	prompt "build OpenCL tests"
> +	depends on BROKEN
> +
> +endif
> diff --git a/rules/piglit.make b/rules/piglit.make
> new file mode 100644
> index 000000000000..f18ec4a43c8d
> --- /dev/null
> +++ b/rules/piglit.make
> @@ -0,0 +1,63 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2015 by Lucas Stach <l.stach@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PIGLIT) += piglit
> +
> +#
> +# Paths and names
> +#
> +PIGLIT_VERSION	:= 8de771e67db8
> +PIGLIT_MD5	:= 7a32e68e30865d12524157a9213226d3
> +PIGLIT		:= piglit-$(PIGLIT_VERSION)
> +PIGLIT_SUFFIX	:= tar.xz
> +PIGLIT_URL	:= http://anongit.freedesktop.org/git/piglit.git;tag=$(PIGLIT_VERSION)
> +PIGLIT_SOURCE	:= $(SRCDIR)/$(PIGLIT).$(PIGLIT_SUFFIX)
> +PIGLIT_DIR	:= $(BUILDDIR)/$(PIGLIT)
> +PIGLIT_LICENSE	:= unknown
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PIGLIT_BUILD_OOT	:= NO
> +PIGLIT_CONF_TOOL	:= cmake
> +
> +PIGLIT_CONF_OPT	:= $(CROSS_CMAKE_USR) \
> +	-DPIGLIT_USE_WAFFLE=1 \
> +	-DPIGLIT_BUILD_GL_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGL,1,0) \
> +	-DPIGLIT_BUILD_GLES1_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES1,1,0) \
> +	-DPIGLIT_BUILD_GLES2_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES2,1,0) \
> +	-DPIGLIT_BUILD_GLES3_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENGLES3,1,0) \
> +	-DPIGLIT_BUILD_CL_TESTS=$(call ptx/ifdef, PTXCONF_PIGLIT_TESTS_OPENCL,1,0)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/piglit.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, piglit)
> +	@$(call install_fixup, piglit,PRIORITY,optional)
> +	@$(call install_fixup, piglit,SECTION,base)
> +	@$(call install_fixup, piglit,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
> +	@$(call install_fixup, piglit,DESCRIPTION,missing)
> +
> +	@$(call install_copy, piglit, 0, 0, 755, -, /usr/bin/piglit)
> +	@$(call install_tree, piglit, 0, 0, -, /usr/lib/piglit)
> +
> +	@$(call install_finish, piglit)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.7.0.rc3
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2016-02-01 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28 17:27 [ptxdist] [PATCH 1/6] python: install python2 symlink Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 2/6] host-python-six: new package Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 3/6] host-python-numpy: " Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 4/6] python-mako: " Lucas Stach
2016-01-28 17:27 ` [ptxdist] [PATCH 5/6] waffle: " Lucas Stach
2016-02-01 14:39   ` Michael Olbrich
2016-01-28 17:27 ` [ptxdist] [PATCH 6/6] piglit: " Lucas Stach
2016-02-01 14:43   ` Michael Olbrich [this message]
2016-02-11 11:26 ` [ptxdist] [PATCH 1/6] python: install python2 symlink Michael Olbrich

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=20160201144301.GF14307@pengutronix.de \
    --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